stackb / bazel-stack-vscode-cc

C/C++ Support For Bazel Stack VSCode Extension
Apache License 2.0
31 stars 7 forks source link

Cannot find bazel_vscode_compdb #19

Open haidongx opened 2 weeks ago

haidongx commented 2 weeks ago

The command

bazel build --override_repository=bazel_vscode_compdb=/Users/hdx/.vscode/extensions/stackbuild.bazel-stack-vscode-cc-1.2.0/compdb/ --aspects=@bazel_vscode_compdb//:aspects.bzl%compilation_database_aspect  ......

ERROR: Unable to find package for @@[unknown repo 'bazel_vscode_compdb' requested from @@]//:aspects.bzl: The repository '@@[unknown repo 'bazel_vscode_compdb' requested from @@]' could not be resolved: No repository visible as '@bazel_vscode_compdb' from main repository.

So, it just the the build rule cannot pick up the local bazel_vscode_compdb or the aspect. This command might need to be updated.

haidongx commented 1 week ago

A short term solution I used is, modify the --aspects flag: