-
Notifications
You must be signed in to change notification settings - Fork 68
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
generate clangd index #456
Comments
一个短期的方法: 在BUILD.bazel中增加: load("@hedron_compile_commands//:refresh_compile_commands.bzl", "refresh_compile_commands")
refresh_compile_commands(
name = "refresh_compile_commands",
targets = {
"//yacl/...": "",
},
) 在MODULE.bazel中增加 bazel_dep(name = "hedron_compile_commands", dev_dependency = True)
git_override(
module_name = "hedron_compile_commands",
commit = "f5fbd4cee671d8d908f37c83abaf70fba5928fc7",
remote = "https://github.com/hedronvision/bazel-compile-commands-extractor.git",
) |
然后运行 |
好的谢谢 |
ERROR: no such package '@@rules_python~~python~python_3_11_aarch64-unknown-linux-gnu//': The current user is root, please run as non-root when using the hermetic Python interpreter 中间报了个这个错,麻烦问一下有啥解决方案吗,必须以非root运行? |
可以用conda创建一个虚拟环境试试 |
如果conda不行的话,可以参考:bazelbuild/rules_python#713 (comment) |
python = use_extension("@rules_python//python/extensions:python.bzl", "python") |
不过 psi 仓库的索引生成也会有这个python的问题,python = use_extension("@rules_python//python/extensions:python.bzl", "python") |
PSI没有引入rules_python这个dep,手动加一下即可 |
Here you are, added by @tyrone-yu in secretflow/devtools#87 |
Thanks ! |
你好,关于使用 bazel module 系统下的 clangd 索引该如何生成呢,去掉了 workspace 之前的方式无法使用
The text was updated successfully, but these errors were encountered: