-
Notifications
You must be signed in to change notification settings - Fork 118
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
Failed to start and restart clangd #406
Comments
When this happens, can you open Help --> Toggle Developer Tools, and copy what you see in the Console tab? Hopefully there is a stack trace there that gives more information about this error. |
Here are logs, but I can't find anything related to clang(d)... Hope it will help you. |
Thanks, I can reproduce the original error now. Steps to reproduce:
Now I get the error:
The source of the error is the This part is a vscode-clangd bug. As for Out of curiosity, do you not get the first dialog (from step 2) when starting vscode, which says "The clangd binary 'D:\LLVM\bin\clangd' was not found. Would you like to download and install clangd 15.0.3"? |
Yes, I've never seen the dialog even if the path doesn't exist. |
The code is in node-clangd |
I have tried my best but still have no idea.
|
Ok I finally figured it out. It's a network and timeout problem. My vscode can't access github smoothly because of unknown reasons, and there is also no timeout parameter set in latestRelease function which is called by |
Thanks for investigating! That sounds like a second bug that we should fix in node-clangd. |
(I'm going to reopen this issue and use it to track fixes for the two vscode-clangd/node-clangd bugs we have identified.) |
this.client may not have been set if activate() failed for some reason (e.g. the clangd executable could not be found and the user opted not to install it via auto-install) Partially fixes clangd#406
Fix for the first issue: #461 |
This avoids the auto-install process hanging if the github website is unresponsive for some reason. Fixes the remaining issue in clangd/vscode-clangd#406
Fix for the second issue: clangd/node-clangd#23 (Though I could not reproduce the hang locally -- if I disconnect my internet then the |
this.client may not have been set if activate() failed for some reason (e.g. the clangd executable could not be found and the user opted not to install it via auto-install) Partially fixes #406
It works, thanks a lot!
I just found out that it is related to my network proxy. |
This avoids the auto-install process hanging if the github website is unresponsive for some reason. Fixes the remaining issue in clangd/vscode-clangd#406
This avoids the auto-install process hanging if the github website is unresponsive for some reason. Fixes the remaining issue in clangd/vscode-clangd#406
This avoids the auto-install process hanging if the github website is unresponsive for some reason. Fixes the remaining issue in clangd/vscode-clangd#406
Please describe the problem.
Simply translate: Command ... resulted in an error ...
But 0.1.22 works well.
Logs
No output
System information
Clangd version (from the log, or
clangd --version
):clangd extension version:
0.1.23
VScode version:
1.69.1
Operating system:
Win10
The text was updated successfully, but these errors were encountered: