2***@qq.com
2***@qq.com
  • 发布:2024-08-16 18:19
  • 更新:2024-08-16 18:21
  • 阅读:223

uts语言服务老时会挂掉是什么原因

分类:uts

下面是报错

复现步骤

语言服务报错内容

{
"api": "quickinfo",
"fileName": "e:/book/uni_modules/ns-tts/utssdk/app-android/index.uts",
"stack": "Error: <semantic> TypeScript Server Error (5.2.2)
Could not find source file: 'e:/book/uni_modules/ns-tts/utssdk/app-android/index.uts'.
Error: Could not find source file: 'e:/book/uni_modules/ns-tts/utssdk/app-android/index.uts'.
at getValidSourceFile (E:\HBuilderX\HBuilderX\plugins\hbuilderx-language-services\node_modules\typescript\lib\tsserverlibrary.js:141928:24)
at Object.getQuickInfoAtPosition (E:\HBuilderX\HBuilderX\plugins\hbuilderx-language-services\node_modules\typescript\lib\tsserverlibrary.js:142253:26)
at n.<computed> [as getQuickInfoAtPosition] (E:\HBuilderX\HBuilderX\plugins\hbuilderx-language-services\specialStringPlugin\out\TsServerSpecialStringsPlugin.js:1:1578)
at AndroidLanguageService.getQuickInfoAtPosition (E:\HBuilderX\HBuilderX\plugins\hbuilderx-language-services\uniapp\out\uts\uni_module_uts_plugin\android_support.js:1:7317)
at n.getQuickInfoAtPositionAsync (E:\HBuilderX\HBuilderX\plugins\hbuilderx-language-services\uniapp\out\uts\uni_module_uts_plugin\uts_plugin_policy.js:1:619)
at r.getQuickInfoAtPositionAsync (E:\HBuilderX\HBuilderX\plugins\hbuilderx-language-services\uniapp\out\uts\utsPlugin.js:1:8444)
at a.getQuickInfoAtPositionAsync (E:\HBuilderX\HBuilderX\plugins\hbuilderx-language-services\core\out\hxPluginCreateFactory.js:1:6729)
at n.getQuickInfoAtPositionAsync (E:\HBuilderX\HBuilderX\plugins\hbuilderx-language-services\core\out\plugins\TsServerApiI18nPlugin.js:1:2061)
at IOSession.getQuickInfoWorker (E:\HBuilderX\HBuilderX\plugins\hbuilderx-language-services\node_modules\typescript\lib\tsserverlibrary.js:181638:47)
at quickinfo (E:\HBuilderX\HBuilderX\plugins\hbuilderx-language-services\node_modules\typescript\lib\tsserverlibrary.js:179896:60)
at E:\HBuilderX\HBuilderX\plugins\hbuilderx-language-services\node_modules\typescript\lib\tsserverlibrary.js:182555:86
at IOSession.executeWithRequestIdAsync (E:\HBuilderX\HBuilderX\plugins\hbuilderx-language-services\node_modules\typescript\lib\tsserverlibrary.js:182547:26)
at IOSession.executeCommandAsync (E:\HBuilderX\HBuilderX\plugins\hbuilderx-language-services\node_modules\typescript\lib\tsserverlibrary.js:182555:41)
at IOSession.onMessage (E:\HBuilderX\HBuilderX\plugins\hbuilderx-language-services\node_modules\typescript\lib\tsserverlibrary.js:182606:63)
at IOSession.consumeMessage (E:\HBuilderX\HBuilderX\plugins\hbuilderx-language-services\node_modules\typescript\lib\tsserver.js:745:21)
at IOSession.addMessage (E:\HBuilderX\HBuilderX\plugins\hbuilderx-language-services\node_modules\typescript\lib\tsserver.js:733:18)
at IOSession.onMessage (E:\HBuilderX\HBuilderX\plugins\hbuilderx-language-services\node_modules\typescript\lib\tsserver.js:752:12)
at Interface.<anonymous> (E:\HBuilderX\HBuilderX\plugins\hbuilderx-language-services\node_modules\typescript\lib\tsserver.js:725:14)
at Interface.emit (node:events:517:28)
at [_onLine] [as _onLine] (node:internal/readline/interface:423:12)
at [_normalWrite] [as _normalWrite] (node:internal/readline/interface:617:22)
at Socket.ondata (node:internal/readline/interface:250:23)
at Socket.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:368:12)
at readableAddChunk (node:internal/streams/readable:341:9)
at Readable.push (node:internal/streams/readable:278:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
at TypeScriptServerError.create (E:\HBuilderX\HBuilderX\plugins\hbuilderx-language-services\jsservice\out\tsServer\serverError.js:1:224)
at ProcessBasedTsServer.dispatchResponse (E:\HBuilderX\HBuilderX\plugins\hbuilderx-language-services\jsservice\out\tsServer\server.js:1:3097)
at ProcessBasedTsServer.dispatchMessage (E:\HBuilderX\HBuilderX\plugins\hbuilderx-language-services\jsservice\out\tsServer\server.js:1:1906)
at E:\HBuilderX\HBuilderX\plugins\hbuilderx-language-services\jsservice\out\tsServer\server.js:1:1335
at e.fire (E:\HBuilderX\HBuilderX\plugins\plugin-manager\out.js:1:29989)
at Reader.onLengthData (E:\HBuilderX\HBuilderX\plugins\hbuilderx-language-services\jsservice\out\tsServer\serverProcess.electron.js:1:2411)
at Socket.<anonymous> (E:\HBuilderX\HBuilderX\plugins\hbuilderx-language-services\jsservice\out\tsServer\serverProcess.electron.js:1:2058)
at Socket.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:368:12)
at readableAddChunk (node:internal/streams/readable:341:9)"
}

2024-08-16 18:19 负责人:无 分享
已邀请:
DCloud_heavensoft

DCloud_heavensoft

ide的语法服务,负责代码提示和转到定义。这块有bug,按提示上报即可。我们会收集修复。
uts作为一个新语言,配套的语言服务还需要一段时间完善,但这个不影响编译和运行。

要回复问题请先登录注册