You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 20.04下VSCode反复弹出语言服务器崩溃错误求解决

VSCode C/C++语言服务频繁崩溃(Ubuntu 20.04)

在Ubuntu 20.04系统上使用VSCode时,反复弹出以下两个错误提示:
"Connection to server got closed. Server will not be restarted."
"The language server crashed 5 times in the last 3 minutes. It will not be restarted."
目前无法定位问题原因。

我已尝试以下操作:

  • 重启VSCode
  • 重启电脑
  • 在文件管理器打开目标文件夹,右键选择终端打开,输入code .启动VSCode
  • 卸载并重新安装C/C++ Extension
  • 降级C++扩展版本
  • 使用C++扩展的预发布版本
  • 修改c_cpp_properties.json配置

当前c_cpp_properties.json配置如下:

{
    "configurations": [
        {
            "name": "Linux",
            "includePath": [
                "${workspaceFolder}/**"
            ],
            "defines": [],
            "compilerPath": "/usr/bin/gcc",
            "cStandard": "gnu17",
            "cppStandard": "gnu++17",
            "intelliSenseMode": "linux-gcc-x64"
        }
    ],
    "version": 4
}

请问该问题的原因及解决方法是什么?

内容的提问来源于stack exchange,提问作者Whizbuzzer

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.17 08:45:46