刚刚下载了Visual Studio代码,并尝试下载格式化c++代码的扩展,但无法完成下载,出现错误:
Updating C/C++ dependencies...
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扩展名:
https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools是网络上最受欢迎的网站。
我已经连接到互联网了,我的防火墙只是普通的windows安全系统。我不知道该做什么和从哪里开始,因为我对这种errors.Hope是新的,你来帮助我。
发布于 2021-08-12 02:28:59
在VS更新后,我也遇到了这个问题,并按照以下步骤修复了它。
安装它
如果VSIX文件已安装successfully.,
下一次VS启动后,C/C++扩展现在已经准备就绪。
发布于 2021-10-19 16:11:03
当您的主机无法访问internet连接时,通常会遇到此问题。手动安装语言服务器并安装cpptools-linux.vsix (对应于~/.vscode-/extensions中的插件版本号ms-vscode.cpptools-<>.vsix )后,就必须禁用更新。
这既来自microsoft (为了防止vs代码的客户端与主机的版本不匹配),也是为了防止它重复下载语言服务器的扩展。


发布于 2020-02-01 02:15:09
https://github.com/microsoft/vscode-cpptools/issues/694
这似乎有时会发生。将脱机安装程序与所有依赖项一起使用。这对我很管用。
https://stackoverflow.com/questions/56891226
复制相似问题