bazelbuild/vscode-bazel

ELI5 how to use this extension

Danl2620 opened this issue · 2 comments

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!

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?

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.