VSCode Downloading package ‘C/C++ language components (Windows)’ Failed

VScode 更新c++插件时出现网络错误,无法在线更新c++插件

  1. 错误状态:Downloading package ‘C/C++ language components (Windows)’ Failed. Retrying… Failed. Retrying… Failed. Retrying…Waiting 8 seconds… Failed. Retrying…Waiting 16 seconds… Failed. Retrying… Done!
    Downloading package ‘ClangFormat (Windows)’ Failed. Retrying… Failed. Retrying… Failed. Retrying…Waiting 8 seconds… Failed. Retrying…Waiting 16 seconds… Failed. Retrying… Done!
    Downloading package ‘Visual Studio Windows Debugger’ Failed. Retrying… Failed. Retrying… Failed. Retrying…Waiting 8 seconds… Failed. Retrying…Waiting 16 seconds… Failed. Retrying… Done!

Installing package ‘C/C++ language components (Windows)’
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.

  1. 一看到这个错误我就感觉到事情不妙,因为我的网络没问题,梯子随便上,这还提示我网络原因,多半是网络代理出事了,解决办法可以很简单,自动忽视网络代理问题,直接采用VSCode提供的解决办法,离线安装VSIX。
    3.首先在https://github.com/Microsoft/vscode-cpptools/releases上下载c++extension,打开VScode,点击extension,在属性框右上角找到“Install form VSIX”
    Downloading package 'C/C++ language components (Windows)' Failed. Retrying... Failed. Retrying...
    再选中下载好的VSIX包即可安装,之后重启VSCode完事

相关文章:

  • 2022-12-23
  • 2021-08-03
  • 2022-12-23
  • 2021-09-25
  • 2022-12-23
  • 2022-03-09
  • 2021-12-27
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-31
  • 2021-10-22
  • 2021-10-25
  • 2022-12-23
  • 2022-12-23
  • 2021-07-09
相关资源
相似解决方案