Type: Debugger
Describe the bug
Error
dyld: Symbol not found: __ZTISt18bad_variant_access
Referenced from: /Users/lixiujie/.vscode/extensions/ms-vscode.cpptools-0.25.0-insiders2/bin/Microsoft.VSCode.CPP.Extension.darwin
Expected in: /usr/lib/libc++.1.dylib
in /Users/lixiujie/.vscode/extensions/ms-vscode.cpptools-0.25.0-insiders2/bin/Microsoft.VSCode.CPP.Extension.darwin
[Error - 11:45:45 AM] Connection to server got closed. Server will not be restarted.
Looks like Mac 10.12 doesn't support calling C++17 std::visit due to bad_variant_access being undefined: https://stackoverflow.com/questions/52310835/xcode-10-call-to-unavailable-function-stdvisit .
Looks like we'd need to re-write our code to not use std::visit (or some other fix). Until then, the workaround would be to use 0.25.0-insiders or 0.24.1 or upgrade your Mac to 10.14.
Thanks! I can confirm that '0.25.0-insiders' works on Macos 10.12.
I don't have a brave heart. Is it possible to tell vcode doesn't update preview or insiders revision for me? I'd like to stay on stable version.
@navyxliu You can set C_Cpp.updateChannel to "Default" to avoid getting updated to our latest "insider" vsix's.
I confirm that I have MacOS 10.12.6 version and I have this problem The C/Cpp Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted.
I am seeing the same problem on Windows.
The C/Cpp Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted.
@csujedihy That is the same symptom with a different root cause. Is this with the 0.25.0-insiders2 or 0.24.1? Can you attach a debugger to the Microsoft.VSCode.CPP.Extension.exe before the crash to get a call stack? If it crashes too early to attach, you could try simplifying the workspace to avoid the crash and then add back in the stuff that makes it crash?
The Mac 10.12 incompatibility issue is fixed with 0.25.0.
Most helpful comment
@navyxliu You can set C_Cpp.updateChannel to "Default" to avoid getting updated to our latest "insider" vsix's.