Skip to content
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

ms-vscode.cpptools-0.25.0-insiders2 fails to run on Mac OS 10.12 #4096

Closed
UnlimitedApp opened this issue Aug 16, 2019 · 7 comments
Closed

ms-vscode.cpptools-0.25.0-insiders2 fails to run on Mac OS 10.12 #4096

UnlimitedApp opened this issue Aug 16, 2019 · 7 comments
Labels
bug fixed Check the Milestone for the release in which the fix is or will be available. insiders Currently only repros with our latest Insiders release. Language Service regression A bug that didn't exist in a previous release
Milestone

Comments

@UnlimitedApp
Copy link

Type: Debugger

Describe the bug

  • OS and Version:10.12.5 (16F73)
  • VS Code Version:1.37.1
  • C/C++ Extension Version:0.25.0-insiders2

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.
@sean-mcmanus
Copy link
Contributor

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.

@sean-mcmanus sean-mcmanus added bug insiders Currently only repros with our latest Insiders release. Language Service regression A bug that didn't exist in a previous release labels Aug 16, 2019
@sean-mcmanus sean-mcmanus added this to the 0.25.0 milestone Aug 16, 2019
@sean-mcmanus sean-mcmanus added the fixed Check the Milestone for the release in which the fix is or will be available. label Aug 16, 2019
@navyxliu
Copy link

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.

@sean-mcmanus
Copy link
Contributor

@navyxliu You can set C_Cpp.updateChannel to "Default" to avoid getting updated to our latest "insider" vsix's.

@nygymankussainov
Copy link

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.

@csujedihy
Copy link

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.

@sean-mcmanus
Copy link
Contributor

@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?

@sean-mcmanus
Copy link
Contributor

The Mac 10.12 incompatibility issue is fixed with 0.25.0.

@sean-mcmanus sean-mcmanus unpinned this issue Aug 22, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Oct 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug fixed Check the Milestone for the release in which the fix is or will be available. insiders Currently only repros with our latest Insiders release. Language Service regression A bug that didn't exist in a previous release
Projects
None yet
Development

No branches or pull requests

5 participants