bazelbuild / vscode-bazel

Bazel support for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=BazelBuild.vscode-bazel
Apache License 2.0
232 stars 76 forks source link

ELI5 how to use this extension #356

Closed Danl2620 closed 4 months ago

Danl2620 commented 4 months ago

Sorry for the basic questions but I'm stuck.

How can I use this extension to build a Bazel based project and jump to compile errors or, better yet, see the errors populate the "Problems" window pane? It seems like, for me, the extension just gives me a list of targets to build or test but leaves off VS Code support at that point.

Is there a Discord or Slack channel where I can ask some basic question?

Note I'm on Windows using a project within wsl2.

Thanks!

Danl2620 commented 4 months ago

It seems like my confusion regards features that are instead provided by https://github.com/hedronvision/bazel-compile-commands-extractor/blob/main/ImplementationReadme.md. Its not the intent of this extension to provide in-editor realtime compile errors, right?

Danl2620 commented 4 months ago

Ok, this is not a bazel issue. The fix was to follow instructions at that link ⬆️ and install the clangd extension and keep an up-to-date compile_commands.json. Closing this issue.