@admin 未使用EIDE插件打开工程时 CPPTOOL使用正常,插件打开工程后cpptool报错,然后工程内函数定义,变量定义,的查看、跳转、预览,功能都失效了,看代码会很不方便 报错提示如下:请帮忙分析是什么问题 [Error - 08:47:57] Connection to server got closed. Server will not be restarted.
aaron5117 [Error - 08:47:57] Connection to server got closed. Server will not be restarted.
请提供更详细的信息,截图,以及输出面板下 eide-cpptool-log, C/C++ 两种分类的日志
eide-cpptool-log
C/C++
admin 发生问题时截图如下
cpptools输出: [Error - 16:41:53] Connection to server got closed. Server will not be restarted. [Error - 16:41:53] Request textDocument/definition failed. Error: Connection got disposed. at Object.dispose (c:\Users\admin.vscode-insiders\extensions\ms-vscode.cpptools-1.10.2-win32-x64\dist\main.js:48383:25) at Object.dispose (c:\Users\admin.vscode-insiders\extensions\ms-vscode.cpptools-1.10.2-win32-x64\dist\main.js:49303:35) at LanguageClient.handleConnectionClosed (c:\Users\admin.vscode-insiders\extensions\ms-vscode.cpptools-1.10.2-win32-x64\dist\main.js:51385:42) at LanguageClient.handleConnectionClosed (c:\Users\admin.vscode-insiders\extensions\ms-vscode.cpptools-1.10.2-win32-x64\dist\main.js:52575:15) at closeHandler (c:\Users\admin.vscode-insiders\extensions\ms-vscode.cpptools-1.10.2-win32-x64\dist\main.js:51372:18) at CallbackList.invoke (c:\Users\admin.vscode-insiders\extensions\ms-vscode.cpptools-1.10.2-win32-x64\dist\main.js:47101:39) at Emitter.fire (c:\Users\admin.vscode-insiders\extensions\ms-vscode.cpptools-1.10.2-win32-x64\dist\main.js:47159:36) at closeHandler (c:\Users\admin.vscode-insiders\extensions\ms-vscode.cpptools-1.10.2-win32-x64\dist\main.js:47733:26) at CallbackList.invoke (c:\Users\admin.vscode-insiders\extensions\ms-vscode.cpptools-1.10.2-win32-x64\dist\main.js:47101:39) at Emitter.fire (c:\Users\admin.vscode-insiders\extensions\ms-vscode.cpptools-1.10.2-win32-x64\dist\main.js:47159:36) at StreamMessageReader.fireClose (c:\Users\admin.vscode-insiders\extensions\ms-vscode.cpptools-1.10.2-win32-x64\dist\main.js:48549:27) at Socket.<anonymous> (c:\Users\admin.vscode-insiders\extensions\ms-vscode.cpptools-1.10.2-win32-x64\dist\main.js:48589:46) at Socket.emit (node:events:402:35) at Pipe.<anonymous> (node:net:687:12)
eide-cpptools-log 输出: [init] register CustomConfigurationProvider done !
[folder] provideFolderBrowseConfiguration for 'd:\working\wy\git\M483\YK1003_HT-git' null
[source] cpptools request provideConfigurations for 'd:\working\wy\git\M483\YK1003_HT-git\User\app.c' [source] provideConfigurations
aaron5117
你的 C/C++ 扩展版本是 1.10.2 目前这个是预览版,不是稳定版;eide 向它提供配置的时候,它自己崩溃了
1.10.2
请换用 1.9.8 版本的 C/C++,这个是最新的正式版
1.9.8
还有你的 VsCode 也是内测版,请使用正式版的;
admin 抱歉再次打扰,在更换为正式版 VSCODE 正式版CPPTOOLS后,不再提示cpptools错误,但编译报错了,甚至用以前的环境也编译失败,输出如下: ERROR Load params failed: 'some arguments missing' ! System.Collections.Generic.KeyNotFoundException: The given key '-b' was not present in the dictionary. at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <32116eccb94d4ed685ca661d98e36637>:0 at unify_builder.Program.Main (System.String[] args) [0x00470] in <b9271b40b8c2421c89943586cdcc8f1f>:0 The terminal process "cmd.exe /C "mono C:\Users\admin.eide\bin\builder\bin\unify_builder.exe -p d:\working\wy\git\zhuoyuan\CT100B_V1065xx-git\Project\eide\build\CT100B_1061\builder.params"" terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.
ctrl+shift+p 打开命令面板,输入:reinstall, 选择重新安装 eide-binaries,等待更新完成就行了
ctrl+shift+p
reinstall
admin 按指示操作,已经解决问题,谢谢! EIDE插件功能强大,毋庸置疑。只是还不太熟悉,有时候遇到点小问题查不到资料,希望用户越来越多。 :