Skip to content
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

folder setting of clangd.path has no effect #646

Open
braindevices opened this issue Jul 1, 2024 · 1 comment
Open

folder setting of clangd.path has no effect #646

braindevices opened this issue Jul 1, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@braindevices
Copy link

I have this in Folder settings.json

"clangd.path": "/usr/bin/clangd-17"

I complete restart the vscode instance, I also call clangd: restart language server
It only works if I put this in user settings or workspace setting.

I understand per each workspace it only start a single clangd instance, thus it only use the first workspace folder as working path, thus the folder setting actually has no effect.

If this is the case, why not just disable the folder setting completely? so far the only setting visible in folder setting window is the clangd.path. I think it should also get removed.

Logs

grep -A2 -B10 "bin/clangd" /tmp/clangd.log

    {
      "pid": 0,
      "ph": "i",
      "name": "Log",
      "ts": 279.94,
      "tid": 22463,
      "args": {
        "Message": "argv[0]: /home/user/.config/Code/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/16.0.2/clangd_16.0.2/bin/clangd"
      }

System information
Clangd version (from the log, or clangd --version):
clangd extension version: v0.1.28
Operating system: ubuntu 22.04

@braindevices braindevices added the bug Something isn't working label Jul 1, 2024
@braindevices
Copy link
Author

it may related to clangd/clangd#1549 i have no idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant