-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
C/C++ extensions fail to install #694
Comments
@csteres-cpi We don't know yet why you're experiencing download/install failures, and a significant amount of other users are failing as well, so it's something we need to investigate more or provide some additional bundled .vsix link. However, the language server processes for C++ won't run on 32-bit Linux, so our extension wouldn't work for you even if you did download it successfully, unless you only intend to use the debugger. |
Also getting the same error:
Windows 7 64-bit |
I got the same error. vscode: 1.12.2
|
Updating C/C++ dependencies... Downloading package 'C/C++ language components (Windows)' (4663 KB) .................... Done! Installing package 'C/C++ language components (Windows)' Finished me too |
Updating C/C++ dependencies... Installing package 'C/C++ language components (Windows)' Finished I also face this error. This error show every time the VSCode startup. |
Updating C/C++ dependencies... Downloading package 'C/C++ language components (Windows)' (4663 KB) .................... Done! Installing package 'C/C++ language components (Windows)' Finished me too |
me too |
Updating C/C++ dependencies... Downloading package 'C/C++ language components (Windows)' (4663 KB) .................... Done! Installing package 'C/C++ language components (Windows)' Finished |
Updating C/C++ dependencies... Downloading package 'C/C++ language components (Windows)' (4922 KB) ............. Failed. Retrying...(4922 KB) .................... Done! Installing package 'C/C++ language components (Windows)' Finished |
Updating C/C++ dependencies... Downloading package 'C/C++ language components (Windows)' Failed. Retrying... Failed. Retrying... Failed. Retrying...Waiting 8 seconds... Failed. Retrying...Waiting 16 seconds... Failed. Retrying...Waiting 32 seconds... Finished |
The failure rate from these download errors is pretty low and some people report it working after retrying later, but we're still not sure why users are hitting this and we're investigating using different download mechanisms to improve the success rate. |
I've same problem for days..... Updating C/C++ dependencies... Downloading package 'C/C++ language components (Windows)' Failed. Retrying... Failed. Retrying... Failed. Retrying...Waiting 8 seconds... Failed. Retrying...Waiting 16 seconds... Failed. Retrying...Waiting 32 seconds... Finished |
Updating C/C++ dependencies... Downloading package 'C/C++ language components (Linux)' (7208 KB) .................... Done! Installing package 'C/C++ language components (Linux)' Finished |
Updating C/C++ dependencies... Downloading package 'C/C++ language components (Windows)' Failed. Retrying... Failed. Retrying... Failed. Retrying...Waiting 8 seconds... Failed. Retrying...Waiting 16 seconds... Failed. Retrying...Waiting 32 seconds... Finished installing dependencies |
If the extension is installed offline (using vsix) what are the steps to update the language components? |
@kubaroth It's not recommended to install the .vsix offline. You should install the .vsix online with a machine with a matching OS and then zip/tar the installed folder and unzip the installed folder to the extensions folder on the offline machine. Are you able to do that? If not, you'd need to open the package.json to find all the runtimeDependencies you need to manually download and unzip into the extension folder on the target machine and then add an install.lock file and maybe chmod to make the binary files executable. |
Thanks, I did try the latter - manual download but I had no luck. As I'm still not familiar with the process I wasn't sure if all the dependencies should be copied in the ./bin directory. Does the package.json specifies the exact destination? |
@kubaroth The files should be unzipped into the main extension directory. The zip files have the folders inside them already, such as bin. Different Linux distros should be acceptable for the 1st solution as long as the bitness matches. |
@csteres-cpi We're shipping a offline .vsix option with all the OS dependencies pre-included with our next update (0.14.4) so people can just download/install that if they're having problems downloading/installing the dependencies via the "online" installer. We're using #298 to track that. |
Fixed with 0.14.4. Offline installers are at https://github.com/Microsoft/vscode-cpptools/releases . |
I was able to install version 0.14.5 using offline installers. Recently it was automatically updated to 0.14.6 and i again got this error message: "Updating C/C++ dependencies... Downloading package 'C/C++ language components (Windows)' Failed. Retrying... Failed. Retrying... Failed. Retrying...Waiting 8 seconds... Failed. Retrying...Waiting 16 seconds... Failed. Retrying...Waiting 32 seconds... If you work in an offline environment or repeatedly see this error, try downloading a version of the extension with all the dependencies pre-included from https://github.com/Microsoft/vscode-cpptools/releases, then use the "Install from VSIX" command in VS Code to install it." Installing VSIX for version 0.14.6 didn't help. |
@valkuzn I think you want to set "extensions.autoUpdate" to false. What do you mean by installing the 0.14.6 vsix didn't help? Did you uninstall the previous online version? What error is shown with the 0.14.6 offline installer? |
@sean-mcmanus Right, so finally i disabled auto-update, uninstalled 0.14.6 and installed 0.14.5. And it's how it works right now. Again:
|
@valkuzn I'm not sure how to fix this, because I tried all your repro steps exactly, but the 0.14.6 VSIX installed successfully with no error, with no internet connection. My best guess is that the online 0.14.6 failed to uninstall fully, somehow blocking the offline 0.14.6 from installing. You might want to check |
Also getting the same error: Downloading package 'C/C++ language components (Windows)' Failed. Retrying... Failed. Retrying... Failed. Retrying...Waiting 8 seconds... Failed. Retrying...Waiting 16 seconds... Failed to download https://go.microsoft.com/fwlink/?linkid=874916 win10 64bit ms-vscode.cpptools-0.17.4 |
@jellydengjiali We have an offline vsix available for download for those cases: https://github.com/Microsoft/vscode-cpptools/releases . |
I've been having this issue too and I found at least a couple possible causes:
I think additional output logging in the download progress would be helpful for users to troubleshoot this issue. |
win10 64bit ms-vscode.cpptools-0.23.0 Downloading package 'C/C++ language components (Windows)' Failed. Retrying... Failed. Retrying... Failed. Retrying...Waiting 8 seconds... Failed. Retrying...Waiting 16 seconds... Failed. Retrying... Done! Installing package 'C/C++ language components (Windows)' If you work in an offline environment or repeatedly see this error, try downloading a version of the extension with all the dependencies pre-included from https://github.com/Microsoft/vscode-cpptools/releases, then use the "Install from VSIX" command in VS Code to install it. |
@AbhishekS-2099 Can you download https://github.com/microsoft/vscode-cpptools/releases/download/0.29.0/cpptools-osx.vsix and run the "Install from VSIX" command in VS Code? We don't know what is causing that particular permission denied error. |
I tried that, but the error was persistent. I tried running VS Code as a root user and it got fixed. The present extensions work now. I still can't add new extensions though. |
From @csteres-cpi on May 5, 2017 1:14
Version 1.12.1
Commit f6868fce3eeb16663840eb82123369dec6077a9b
Date 2017-05-04T21:21:43.120Z
Shell 1.6.6
Renderer 56.0.2924.87
Node 7.4.0
Ubuntu (note this is running in a VirtualBox guest VM under Windows 10)
% uname -a
Linux CSteresUbuntu32 4.4.0-77-generic Unable to start debugging. No terminal is available to launch the debugger. Please install Gnome Terminal or XTerm. #98-Ubuntu SMP Wed Apr 26 08:33:44 UTC 2017 i686 i686 i686 GNU/Linux
Steps to Reproduce:
Updating C/C++ dependencies...
Downloading package 'C/C++ language components (Linux)' (6972 KB) .................... Done!
Downloading package 'ClangFormat (Linux)' (731 KB) .................... Done!
Downloading package 'Mono Framework Assemblies' (4751 KB) ....................Failed at stage: downloadPackages
Error: read ECONNRESET
at exports._errnoException (util.js:1022:11)
at TLSWrap.onread (net.js:572:26)
Finished
3b: sometimes it manages to download all four package dependencies but fails on the install of one of them, for example:
Updating C/C++ dependencies...
Downloading package 'C/C++ language components (Linux)' (6972 KB) .................... Done!
Downloading package 'ClangFormat (Linux)' (731 KB) .................... Done!
Downloading package 'Mono Framework Assemblies' (4751 KB) .................... Done!
Downloading package 'Mono Runtime (Linux / x86)' (1420 KB) .................... Done!
Installing package 'C/C++ language components (Linux)'
Installing package 'ClangFormat (Linux)'
Installing package 'Mono Framework Assemblies'
Failed at stage: installPackages
Error: end of central directory record signature not found
Finished
[6:11:53 PM] Connection to server is erroring. Shutting down server.
[6:11:53 PM] Connection to server is erroring. Shutting down server.
[6:11:53 PM] Connection to server is erroring. Shutting down server.
Copied from original issue: microsoft/vscode#25960
The text was updated successfully, but these errors were encountered: