Could not establish connection to “xx.xx.xx.xx“:The VS Code Server faild to start.【重要解决方案】

简介: Could not establish connection to “xx.xx.xx.xx“:The VS Code Server faild to start.【重要解决方案】

⭐️ VScode远程开发

当你使用vscode进行远程开发遇到这个问题,尝试了删除服务器.vscode-server文件夹,重新链接了服务器,都不行,

而且服务器的日志文件还出现了如下报错:

error: Missing required dependencies.

那就检查一下你的vscode和服务器版本,vscode版本太高,就无法适应较低版本的操作系统。

我百度一通,没解决问题。最终是在stack overflow上找到的答案。

The release notes of the new VS-Code 1.86 (Jan 2024) reads:

From this release onwards, VS Code desktop is only compatible with Linux distributions based on glibc 2.28 or later, and glibcxx 3.4.25 or later, such as Debian 10, RHEL 8, or Ubuntu 20.04.

If you don’t have the required version of the mentioned programs on the server side, you better revert to the previous version of VS-Code (v1.85). To do so, you can use the setup files at the top of this page:

https://code.visualstudio.com/updates/v1_85

如果服务器版本不是很高,比如Ubuntu 18,就降低vscode的版本,不要用最新的vscode版本哦!

我一开始的vscode版本是1.86的,服务器是Ubuntu18,vscode访问不到远端服务器进行远程开发调试。将vscode版本换到1.85的,问题解决。

相关文章
|
1月前
|
C++
VS Code Server 离线安装(解决超时,XHR Failed等问题)
VS Code Server 离线安装(解决超时,XHR Failed等问题)
|
1月前
设置VSCode运行任务命令快捷键Alt+R,通常用于npm start(对频繁使用该命令可节省50%的输入命令行打字时间)
设置VSCode运行任务命令快捷键Alt+R,通常用于npm start(对频繁使用该命令可节省50%的输入命令行打字时间)
vscode中使用/deep/报错解决方案
vscode中使用/deep/报错解决方案
443 0
|
C++ 索引
vscode clangd c++开发常见问题和解决方案
vscode clangd c++开发常见问题和解决方案
2292 0
|
3天前
|
存储 前端开发 JavaScript
VSCode调试揭秘:Live Server助力完美测试Cookie与Session,远超“Open in Browser“!
VSCode调试揭秘:Live Server助力完美测试Cookie与Session,远超“Open in Browser“!
|
1月前
|
NoSQL C语言
vscode出现 ERROR: Unable to start debugging. Unexpected GDB output from command “-exec-run“.
vscode出现 ERROR: Unable to start debugging. Unexpected GDB output from command “-exec-run“.
692 0
|
Linux 网络安全 数据安全/隐私保护
[✔️]vscode通过ssh连接远程server
[✔️]vscode通过ssh连接远程server
213 0
|
Windows
vscode——无法从编辑器的终端运行项目的解决方案
无法从编辑器的终端运行项目的解决方案
118 0
|
JavaScript
VSCode 中,TS 提示 ”无法找到 *.vue 声明文件“ 的解决方案
在使用 VSCode 开发 Vue3 + TS 项目时,编辑器一直有一个报错,因为不影响编译和运行,所以就一直没在意,但这两天看着这红杠提示实在是太别扭,今天就来解决一下这个问题,还自己一个清爽的开发环境。
1050 0
VSCode 中,TS 提示 ”无法找到 *.vue 声明文件“ 的解决方案
|
1月前
sublime和vscode 推荐安装的插件
sublime和vscode 推荐安装的插件
31 0