Support relative clangd path
See original GitHub issueMy project (which has 100s of easily confused users) has a configured value for clangd.path
. When I start up vscode now it prompts asking if I want to install clangd. It would be great if the extension could skip prompting if the path is valid or provide a config option to disable the prompt.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Support deterministic relative include path in .clangd file
It seems there is no mechanism to support relative path expansion. For example CompileFlags: Add: - -Iinclude/path/relative/to/.clangd ...
Read more >D53481 [clangd] Support passing a relative path to
This is useful when using clangd with CMake based projects in Visual Studio Code since when using CMake the compile_commands.json file is ...
Read more >c++ - clang-tidy-10 and compile_commands.json does not ...
Short answer. No, the directory in compile_commands.json cannot be relative. It must be absolute to work with clang-tidy .
Read more >Path.cpp source code [clang-tools-extra/clangd/support/Path.cpp ...
// llvm::sys says "C:\" is absolute, and its parent is "C:" which is relative. 26, // This unhelpful behavior seems to have been...
Read more >c_cpp_properties.json reference - Visual Studio Code
Schema reference for C++ project settings in Visual Studio Code.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the quick fix! 😃 I was having the same issue with our vscode-clangd configuration for Sorbet; we use bazel to pull in clangd, which adds it to a subdirectory of the workspace root.
I look forward to the next version with the fix!
It’s probably best for us to support that, I’ll put together a patch ASAP (though it’s evening here and might need to get the kids to bed first!).
That’s very gracious of you, especially after we just broke everything for you. I’m glad things are working well 😃