Nathan Ridge
Nathan Ridge
Can you provide clangd logs which are more complete (also covering clangd startup, and the opening of the affected files)?
The command for `memory_utils_ops.cu` in `compile_commands.json` is an `nvcc` command. Clangd expects a `clang` command, or at least a command with compatible syntax that `clang` can recognize. In this case,...
@shadow150519: Every element in the array after `Add:` becomes a **single** command-line argument. Here, the array has a single element, so it's as if you had written `"-I/home/wtx/miniconda3/envs/dgl/lib/python3.10/site-packages/torch/include -I/home/wtx/miniconda3/envs/dgl/lib/python3.10/site-packages/torch/include/torch/csrc/api/include"` on...
By the way, you can look in the logs to see the synthesized command (with edits like `Add:` applied). Look for "ASTWorker building file".
> can you tell me why using cmake `include_directories()` can't make clangd find my include_dirs correctly? Clangd does not look at (or know about) cmake files directly. It looks at...
I'm sorry, it's not clear to me from your screenshots what the problem is. Can you please describe what you're expecting to happen, and what happens that's different from what...
Ah, I see. The reason the config file in the project root does not apply to system headers is that project config files are scoped to the directory they're located...
Ah, I overlooked you were using `compile_flags.txt`. I checked, `--compile-commands-dir` actually works with `compile_flags.txt` as well. So, just putting `-xc` into `compile_flags.txt` and using `--compile-commands-dir` should do it.
To clarify, are you looking for an option to disable code completion altogether, or an option to disable the insertion of `(` when accepting a function completion specifically?
Thanks for clarifying. (Not sure if it's relevant in your use case, but LLVM does have a set of APT packages (including a clangd package) that are updated daily at...