首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >下载visual studio代码的C++扩展版时出错

下载visual studio代码的C++扩展版时出错
EN

Stack Overflow用户
提问于 2019-07-04 23:47:40
回答 3查看 4.6K关注 0票数 2

刚刚下载了Visual Studio代码,并尝试下载格式化c++代码的扩展,但无法完成下载,出现错误:

Updating C/C++ dependencies...

代码语言:javascript
复制
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是新的,你来帮助我。

EN

回答 3

Stack Overflow用户

发布于 2021-08-12 02:28:59

在VS更新后,我也遇到了这个问题,并按照以下步骤修复了它。

  1. https://github.com/microsoft/vscode-cpptools/releases下载相应版本的C/C++扩展vsix文件。我使用Windows上安装的VS访问Linux主机上的代码。所以我需要为Linux(Ubunutu)安装这个vsix文件。所以我下载了这个https://github.com/microsoft/vscode-cpptools/releases/download/1.5.1/cpptools-linux.vsix

  1. 在窗口中打开VS,按下shift+ctrl+p,然后点击"Extensions: Install from VSIX“。Brose到您的VSIX文件并通过VS.

安装它

如果VSIX文件已安装successfully.,

  1. 将会提示您重新加载窗口

下一次VS启动后,C/C++扩展现在已经准备就绪。

票数 2
EN

Stack Overflow用户

发布于 2021-10-19 16:11:03

当您的主机无法访问internet连接时,通常会遇到此问题。手动安装语言服务器并安装cpptools-linux.vsix (对应于~/.vscode-/extensions中的插件版本号ms-vscode.cpptools-<>.vsix )后,就必须禁用更新。

这既来自microsoft (为了防止vs代码的客户端与主机的版本不匹配),也是为了防止它重复下载语言服务器的扩展。

票数 1
EN

Stack Overflow用户

发布于 2020-02-01 02:15:09

https://github.com/microsoft/vscode-cpptools/issues/694

这似乎有时会发生。将脱机安装程序与所有依赖项一起使用。这对我很管用。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56891226

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档