-
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
Getting 'couldn't create connection to server' after update to v0.1.30 #722
Comments
I see same issue with "clangd.path": "/usr/bin/clangd" and
On RedHat 8 on Intel CPU as well as
on ARM CPU. Same when only using "clangd.path" : "clangd". Working again after downgrading vscode-clangd to v0.1.29 |
I am experiencing the same issue after the vscode-clangd extension was automatically updated to version 0.1.30. After upgrading, I started seeing the following error when opening my C++ projects. Reverting back to version 0.1.29 and restarting VSCode resolves the issue. It seems that downgrading is the only workaround currently available. System details:
|
I got the same error It seems to be unrelated to the Clangd version, I tried Clangd v13, v16, v17, v18. |
The changes suspected of causing this regression have been backed out in 0.1.31. Please give that version a try and let me know if the issue is fixed there. |
clangd output:
Settings in
|
@Carryme1899 could you file a new ticket for that please? |
After I updated the version to 0.1.31, this issue disappeared. |
@0v3rt1r3d, @bburgerm, @lingkerio can you share the complete set of settings that are used for clangd? Especially "clangd.arguments"? |
@JVApen my full configuration is
but I had removed everything with 0.1.30 and had the same issues. Not with 0.1.31 (or with 0.1.29) all working OK again. |
"clangd.arguments": [
"--all-scopes-completion",
"--background-index",
"--clang-tidy",
"--clang-tidy-checks=performance-*, bugprone-*, misc-*, google-*, modernize-*, readability-*, portability-*",
"--compile-commands-dir=${workspaceFolder}/.vscode",
"--completion-parse=auto",
"--completion-style=detailed",
"--enable-config",
"--fallback-style=Webkit",
"--function-arg-placeholders=true",
"--header-insertion-decorators",
"--header-insertion=iwyu",
"--include-cleaner-stdlib",
"--log=verbose",
"--pch-storage=memory",
"--pretty",
"--ranking-model=decision_forest",
"-j=12"
],
"clangd.fallbackFlags": [
"-pedantic",
"-Wall",
"-Wextra",
"-Wcast-align",
"-Wdouble-promotion",
"-Wformat=2",
"-Wimplicit-fallthrough",
"-Wmisleading-indentation",
"-Wnon-virtual-dtor",
"-Wnull-dereference",
"-Wold-style-cast",
"-Woverloaded-virtual",
"-Wpedantic",
"-Wshadow",
"-Wunused",
"-pthread",
"-fuse-ld=lld",
"-fsanitize=address",
"-fsanitize=undefined"
],
"clangd.checkUpdates": false,
"clangd.onConfigChanged": "restart",
"clangd.serverCompletionRanking": true,
"clangd.detectExtensionConflicts": true, |
hi! thanks for such thorough report. i am wondering if in automatically updated, then how did you find the older version you had on your system? are there some logs etc stored by vscode? thanks. |
Configuration of @lingkerio can be explained with the spaces in the clang-tidy checks, similar to #725 I'm wondering what could cause the issue. Can it be these programs are symlinks? I'll test that later today |
Today my vscode-clangd plugin had been automatically updated from 0.1.29 to 0.1.30 and I began receiving the following error message for the c++ projects I'm working with (middle-sized c++ project, single directory in the workspace if that matters).
"Clang Language Server client: couldn't create connection to server."
As I can see nothing else changed in my system. Also switching back to 0.1.29 with complete restart of vscode helps (just reloading extensions doesn't).
Logs
System information
Clangd version (from the log, or
clangd --version
):clangd extension version: 0.1.30
Operating system: Mac OS Sequoia 15.0
The text was updated successfully, but these errors were encountered: