question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support relative clangd path

See original GitHub issue

My 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:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jvilk-stripecommented, May 11, 2020

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!

1reaction
sam-mccallcommented, May 11, 2020

For the majority of our extensions we try to make use of the ${workspaceRoot} config variable but support for that seems to be extension dependent

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!).

Also wanted to take a moment just to thank all the awesome work you guys have been doing on clangd

That’s very gracious of you, especially after we just broke everything for you. I’m glad things are working well 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found