Open joe-noel-dev opened 5 months ago
I think this may have been caused by a conflict with the sswg.swift-lang extension. After disabling that extension, I no longer had problems with 'sticky' errors and no longer have the 'applyFix' error.
I will leave this open just in case the problem is with this extension, otherwise this can be closed.
An instance of the `command 'clangd.applyFix' already exists' error was fixed in https://github.com/clangd/vscode-clangd/issues/502, but the version of vscode-clangd that you're running (0.1.28) already contains that fix. So maybe the error can occur another way?
If you have a way to reproduce the error reliably, that would be helpful so it can be investigated further.
I think my repro steps were as follows:
I have since retried today and I see all the same problems I was seeing except the last one. I can no longer repro the 'clangd.applyFix' error.
If I disable the Swift extension, it fixes the 'sticky' errors that I was seeing.
Thanks.
I have not been able to reproduce this. But then again I'm not on Mac, and I don't have a Swift toolchain installed, maybe those are needed to reproduce.
I'm going to leave this bug open, in case someone else is able to reproduce the issue and would like to investigate it.
I think this may have been caused by a conflict with the sswg.swift-lang extension. After disabling that extension, I no longer had problems with 'sticky' errors and no longer have the 'applyFix' error.
I will leave this open just in case the problem is with this extension, otherwise this can be closed.
Yeah, this did the job for me.
I also reproduced the issue and was able to get it back to normal by disabling sswg.swift-lang
I'm having the same problem, but the simple solution of disabling sswg.swift-lang does not work for me because I'm working on a swift-C++ mixed project.
I noticed that clang errors are accumulating as I type and not being cleared.
When I try to restart the language server, I get an error:
When I look in the logs, I see:
Logs
System information
clangd version: Apple clangd version 15.0.0 (clang-1500.3.9.4) Extension version: v0.1.28 OS version: macOS 14.4.1
VSCode version:
Version: 1.90.0 (Universal) Commit: 89de5a8d4d6205e5b11647eb6a74844ca23d2573 Date: 2024-06-04T19:34:44.157Z (5 days ago) Electron: 29.4.0 ElectronBuildId: 9593362 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Darwin arm64 23.4.0