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
相关产品推荐
相关产品推荐

