VSCode Downloading package ‘C/C++ language components (Windows)’ Failed
VScode 更新c++插件时出现网络错误,无法在线更新c++插件
- 错误状态: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.
2.我的网络没问题,梯子随便上,这还提示我网络原因,多半是网络代理出事了,解决办法可以很简单,自动忽视网络代理问题,直接采用VSCode提供的解决办法,离线安装VSIX。
3. 首先在https://github.com/Microsoft/vscode-cpptools/releases上下载c++extension,打开VScode,点击extension,在属性框右上角找到“Install form VSIX”
再选中下载好的VSIX包即可安装,之后重启VSCode完事