Downloading package ‘C/C++ language components (Windows)‘ Failed. Retrying... Failed. Retrying...

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.

2.我的网络没问题,梯子随便上,这还提示我网络原因,多半是网络代理出事了,解决办法可以很简单,自动忽视网络代理问题,直接采用VSCode提供的解决办法,离线安装VSIX。
3. 首先在https://github.com/Microsoft/vscode-cpptools/releases上下载c++extension,打开VScode,点击extension,在属性框右上角找到“Install form VSIX”
在这里插入图片描述
再选中下载好的VSIX包即可安装,之后重启VSCode完事

  • 6
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 9
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 9
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值