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
Couldn't start client cpptools #1345
Comments
An interesting bunch of errors.
I can fix these two, but the underlying issue is that the extension process isn't running on your system and unfortunately, this log doesn't tell us why it failed to launch. You can try running that executable directly to see what error you get. There may be a dependency missing. |
I've never heard of the NixOS distro before, so that might be an issue. As mentioned by @bobbrow already, what does it say when you run the Microsoft.VSCode.CPP.Extension.linux process (and the .IntelliSense.Msvc one) from the command line at ( |
I have the same error with nixos-17.09 and nixos-unstable. Nixos does not rely on the Filesystem Hierarchy Standard. Packages are stored in /nix/store and user profiles are created using symbolic links. This implies that binaries must be relinked to libraries in the /nix/store. For example, vim is linked to
but the cpptools are still linked to
I think this is more a packaging problem so I opened an issue in the nixpkgs repo (NixOS/nixpkgs#35088). |
I had this problem on Raspbian Desktop and, I solved it by installing AMD64 version of libc ( Before I only had /lib/ld-linux.so.2 and now I have /lib64/ld-linux-x85-64.so.2 |
If you run into this, check out my comment on the related nixpkgs issue: NixOS/nixpkgs#35088 (comment) |
Is there still something we need to do to address this issue, or can it be closed? |
The solution I described is not ideal for me, as it seems that I need to package all my vscode extensions with nix if I go this route. But that's probably something the nixpkgs project could work out. Ideally, there would be a way for you to ship this binary without expecting that this linker is at this hardcoded location, but not sure how to do that short of not using any dynamically linked libraries. So I suppose you could close this. |
@tanvit8250 Our binaries are not compiled for ARM. |
@bobbrow @sean-mcmanus this is clearly NixOS packaging issue, so can be closed. Linked issue (NixOS/nixpkgs#35088) contains more links/details. |
I have NixOS 17.09 running, but am unable to get this extension working.
After installation and reload I get the error:
[Error - 10:41:56 AM] Starting client failed Launching server using command /home/almin/.vscode/extensions/ms-vscode.cpptools-0.14.4/bin/Microsoft.VSCode.CPP.Extension.linux failed.
This is the log from developer tools:
The text was updated successfully, but these errors were encountered: