我遇到的原因是:分析插件更新,但是下载一直不成功。
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完事
————————————————
版权声明:本文为CSDN博主「Jason_Gan」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/binuogan_c/article/details/90372885
另外,如何关闭自动更新
在setting里面搜索update,即可看到。