-
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 create connection to server with version 0.1.30 #725
Comments
I can reproduce this with 0.1.30, but not with 0.1.29. I believe the underlying cause is the same as #722, which was regressed in 0.1.30 and fixed in 0.1.31. That said, please note the following in the output:
Even with 0.1.31, the clangd server is going to ignore this flag. Clang-tidy checks can be enabled using the config file instead, e.g. Diagnostics:
ClangTidy:
Add: [
performance-*,
bugprone-*,
misc-*,
google-*,
modernize-*,
readability-*,
portability-*
] |
Oops! Sorry for the mix-up. This issue’s in version 0.1.30. |
Great! Then this is just a dupe of #722. |
The problem seems to be with the spaces in the command line option. These are not needed and if you remove them, this also works with version 0.1.30 |
Note that there are legitimate use cases for having spaces in command line options, e.g.:
There are users who have things like this in their settings today, and we don't want to break them, so it's important that a revised fix for #683 keeps things like this working. |
As described in #722 (comment), it seems that the
--clang-tidy-checks
argument causing the issue.Removing the argument or updating to 0.1.31 resolves the problem.
clangd output:
Settings in
.vscode/settings.json
:The text was updated successfully, but these errors were encountered: