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

Linux Can't Downloading components #4453

Closed
shudingbo opened this issue Oct 17, 2019 · 13 comments
Closed

Linux Can't Downloading components #4453

shudingbo opened this issue Oct 17, 2019 · 13 comments

Comments

@shudingbo
Copy link

shudingbo commented Oct 17, 2019

Type: General

Can't Downloading components:

notify like this:
c/c++ Extension: Downloading 1/4: C/C++ language componsnts(Linux x86_64)

Describe the bug

  • OS and Version: centos 7/8
  • VS Code Version: 1.39.1
  • C/C++ Extension Version: 0.25.*, 0.26 AND another
  • Other extensions you installed (and if the issue persists after disabling them):
  • A clear and concise description of what the bug is.

To Reproduce
Please include code sample and task.json files.
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here including log messages from the Output window.

@hajlyx
Copy link

hajlyx commented Oct 18, 2019

Same problem.
Stucked in "Downloading 1/4: C/C++ language componsnts" process.

  • OS and Version: Ubuntu 18.04

  • VS Code Version: 1.39.2

  • C/C++ Extension Version: 0.26

@bobbrow
Copy link
Member

bobbrow commented Oct 18, 2019

We're hoping to eliminate this step in the near future when the Marketplace adds support for OS-specific extension packages.

In the meantime, you can download the OS-specific packages directly from our releases page and use the Install from VSIX... command to install it.

@jkmartindale
Copy link

I've found that even when installing the VSIX on my remote, I get the downloading messages that run for a while before failing:

Updating C/C++ dependencies...

Downloading package 'C/C++ language components (Linux / x86_64)'  Failed. Retrying... Failed. Retrying... Failed. Retrying...Waiting 8 seconds... Failed. Retrying...Waiting 16 seconds... Failed. Retrying... Done!
Downloading package 'ClangFormat (Linux / x86_64)'  Failed. Retrying... Failed. Retrying... Failed. Retrying...Waiting 8 seconds... Failed. Retrying...Waiting 16 seconds... Failed. Retrying... Done!
Downloading package 'Mono Framework Assemblies'  Failed. Retrying... Failed. Retrying... Failed. Retrying...Waiting 8 seconds... Failed. Retrying...Waiting 16 seconds... Failed. Retrying... Done!
Downloading package 'Mono Runtime (Linux / x86_64)'  Failed. Retrying... Failed. Retrying... Failed. Retrying...Waiting 8 seconds... Failed. Retrying...Waiting 16 seconds... Failed. Retrying... Done!

Installing package 'C/C++ language components (Linux / x86_64)'
Failed at stage: installPackages
Error: end of central directory record signature not found

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.

@bobbrow
Copy link
Member

bobbrow commented Nov 6, 2019

@jkmartindale which VSIX did you download? This is the one you want: https://github.com/microsoft/vscode-cpptools/releases/download/0.26.1/cpptools-linux.vsix. It should be about 19.6 MB in size.

The standalone VSIX's on our Release page don't attempt to download anything.

@xni
Copy link

xni commented Jan 7, 2020

I have had the same issue and even installation from vsix didn't help. What helped:

  1. uninstall the extension
  2. remove ~/.vscode-server/extensions/ms-vscode.cpptools*
  3. install from .vsix

@bhanupatial
Copy link

I guess you are behind a proxy and because of SSL certificates; you are facing this issue.

"http.proxyStrictSSL": false in setting will surely help.

@ymh199478
Copy link

ymh199478 commented Jun 2, 2020

I also encountered the same problem, but when I close my agent(vpn) it works fine.

@yaohong772
Copy link

@ymh199478 how to close agent?

@ymh199478
Copy link

@yaohong772 I just mean I closed my vpn program, when the global vpn is turned on, it will cause an abnormal installation.

@Colengms
Copy link
Collaborator

This should get addressed by: microsoft/vscode#23251

@Colengms Colengms modified the milestones: Backlog, Tracking Feb 18, 2021
@XingLiu0923
Copy link

@ymh199478 works for me too, thanks

@xian-wen
Copy link

@ymh199478 Works for me too. Thanks

@bobbrow
Copy link
Member

bobbrow commented Dec 9, 2021

This will no longer be a problem when #8152 is completed in version 1.8.0.

@bobbrow bobbrow closed this as completed Dec 9, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jan 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests