bazel-contrib/vscode-bazel

v0.8.0 is breaking CodeLens

daivinhtran opened this issue · 1 comments

CodeLens features used to work in BUILD files but it has stopped working recently.

Here is the log from Extension Host (remote) when I open https://github.com/bazelbuild/rules_rust/blob/main/rust/toolchain/channel/BUILD.bazel on a window. The bazel query doesn't seem right.

2023-12-19 18:02:37.673 [error] [BazelBuild.vscode-bazel] provider FAILED
2023-12-19 18:02:37.673 [error] Error: Command failed: /usr/local/home/vinhdaitran/go/bin/bazelisk query kind(rule, ":channel.bzl", "rust_toolchain_channel_flag")

rust_toolchain_channel_flag(
    name = "channel",
    build_setting_default = "stable",
    visibility = [") --output=proto --proto:output_rule_attrs='' --noproto:rule_inputs_and_outputs --noproto:locations --noproto:default_values
Loading: 0 packages loaded
ERROR: Error while parsing 'kind(rule, ":channel.bzl", "rust_toolchain_channel_flag")

rust_toolchain_channel_flag(
    name = "channel",
    build_setting_default = "stable",
    visibility = [")': unclosed quotation
Loading: 0 packages loaded

	at ChildProcess.exithandler (node:child_process:420:12)
	at ChildProcess.emit (node:events:513:28)
	at maybeClose (node:internal/child_process:1091:16)
	at ChildProcess._handle.onexit (node:internal/child_process:302:5)

I believe this is caused by the recent release. I reverted to using v0.7.0 and CodeLens started working again.