-
-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bazel queries fail after first bazel build #223
Comments
Same scenario, same error here. |
I am seeing a similar issue |
As a workaround you can set "bazel.queriesShareServer": true` in your settings.json. The issue stems from the extension setting a custom output_base which Bazel chokes on. Setting this option reuses the existing output_base which works fine. |
@allevato or @philwo could you (or any other contributor) please take a look? (I pinged you because you have the most commits and the most recent commits, respectively.)
Many thanks for the extension and for hopefully taking a look. |
@coeuvre Could you have a look at this one, when you have time? 😊 |
Duplicate of #216 |
Hello, thank you for all your hard work.
Pertinent info:
$ code --version 1.51.1 e5a624b788d92b8d34d1392e4c4d9789406efe8f x64 $ code --list-extensions --show-versions BazelBuild.vscode-bazel@0.4.0 be5invis.toml@0.5.1 bungcip.better-toml@0.3.2 casualjim.gotemplate@0.4.0 fcrespo82.markdown-table-formatter@2.1.3 gbasood.byond-dm-language-support@1.0.1 golang.go@0.18.1 jbockle.jbockle-format-files@3.0.0 lonefy.vscode-JS-CSS-HTML-formatter@0.2.3 ms-vscode-remote.remote-containers@0.148.1 ms-vscode-remote.remote-ssh@0.56.0 ms-vscode-remote.remote-ssh-edit@0.56.0 ms-vscode-remote.remote-wsl@0.51.3 ms-vscode-remote.vscode-remote-extensionpack@0.20.0 ms-vscode.cpptools@1.1.2 redhat.java@0.70.0 Stephanvs.dot@0.0.1 stkb.rewrap@1.13.0 thesofakillers.vscode-pbtxt@0.0.3 tintinweb.graphviz-interactive-preview@0.0.9 VisualStudioExptTeam.vscodeintellicode@1.2.10 vscjava.vscode-java-debug@0.29.0 vscjava.vscode-java-dependency@0.14.0 vscjava.vscode-java-pack@0.10.0 vscjava.vscode-java-test@0.26.0 vscjava.vscode-maven@0.25.0 vscodevim.vim@1.17.1 wayou.vscode-todo-highlight@1.0.4 xaver.clang-format@1.9.0 zxh404.vscode-proto3@0.5.2 % uname -a Darwin eikthyrnir.local 20.1.0 Darwin Kernel Version 20.1.0: Sat Oct 31 00:07:11 PDT 2020; root:xnu-7195.50.7~2/RELEASE_X86_64 x86_64 % bazel --version bazel 3.7.0-homebrew
I believe this is a minimum reproduction example: https://github.com/warriorstar-orion/bugs_vscode_bazelbuild_queryfailure
code .
⌘P BUILD ↵
⌘⇧P Bazel: Build Target ↵
At this point, the target
//:main
should now be in the command palette dropdown list. Press↵
.This time, instead of suggesting the target, an error occurs:
Removing
bazel-*
from the workspace will cause the query to succeed. My first hunch was that VSCode was trying to build something in them unintentionally, but the following settings failed to help:The text was updated successfully, but these errors were encountered: