The language server is unable to start and connect to Matlab properly in VS Code
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- vscode
- 领域
- devtools
调研方向
首先,在 Windows 10 上使用 VS Code 1.97.2 和 MATLAB R2023b 或 R2024b 重现该故障,然后检查 language-server 和 MATLAB 在创建 connection-data-file 以及 attach timeout 附近的输出。完成的标准是 language server 保持与 MATLAB 的连接,并且依赖功能能够正常工作,同时会话不会终止。
由索引模型根据 Issue 内容生成。
描述
I also reported this at mathworks/MATLAB-extension-for-vscode#226, but I didn't get a response, and figured it may actually be more relevant here.
Describe the bug
Whenever I open a matlab file, the extension shows the following popup:
And features which depend on a running matlab instance do not work. This is regardless of whether there is already currently a running instance of matlab. The output pane shows:
(11:39:30) matlabls: Log Directory: <...>
(11:39:30) matlabls: Launching MATLAB...
(11:39:36) matlabls: Started MATLAB (session 1)
(11:39:36) matlabls: MATLAB session 1 connected to R2024b
(11:39:36) matlabls: CWD set to: <...>
(11:39:36) matlabls: Adding workspace folder(s) to the MATLAB Path:
<...>
[Warn - 11:39:36 AM] (11:39:36) matlabls - WARNING: Error while communicating with MATLAB - disconnecting
(11:39:36) matlabls: Shutting down MATLAB session 1
(11:39:36) matlabls: MATLAB process (session 1) terminated
Timeout when attaching to release: 24b
Retrying attach
Timeout when attaching to release: 24b
Retrying attach
Timeout when attaching to release: 24b
Unable to attach after retries
The matlab log is:
To get started, type doc.
For product information, visit www.mathworks.com.
matlabls: Beginning initialization
matlabls: matlabroot is
C:\Program Files\MATLAB\R2024b
Printing connection data to file: <...>
matlabls: Initialization complete
For product information, visit www.mathworks.com.
There is no file named what is shown after "Printing connection data to file:". When I open task manager while pressing the "Connect to MATLAB" button, it shows an instance of the correct version of MATLAB appearing, and then disappearing shortly after (presumably because the language server has killed it when it prints "Shutting down MATLAB session 1"). Unfortunately it doesn't last long enough to follow the steps detailed in this comment. I'm wondering if maybe there is a flag that I can pass to Matlab manually that would let me check the steps listed in this comment?
Useful Information
- OS Version: Windows 10
- VS Code Version: 1.97.2 (not WSL)
- Matlab Version: R2023b/R2024b (Not WSL; Tried both)
I have no startup scripts, and typing matlab into a shell starts it up properly.
- 主要语言
- TypeScript
- 星标
- 125
- 派生
- 21
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
mathworks/MATLAB-language-server 的其他 Issue
-
documentation enhancement
难度 1/5 1-3 小时 新手友好度 62/100
mathworks/MATLAB-language-server#27 · 10 条评论 ·
-
bug
难度 4/5 3-5 天 新手友好度 35/100
mathworks/MATLAB-language-server#82 · 1 个 reaction ·
-
enhancement
难度 4/5 3-5 天 新手友好度 45/100
mathworks/MATLAB-language-server#81 · 4 条评论 ·
-
bug
难度 3/5 1-2 天 新手友好度 35/100
mathworks/MATLAB-language-server#79 · 7 条评论 ·
-
`--matlabLaunchCommandArgs` does not accept value starting with "-" (Not enough arguments following)未关闭bug
难度 2/5 1-3 小时 新手友好度 45/100
mathworks/MATLAB-language-server#78 · 8 条评论 ·
查看 mathworks/MATLAB-language-server 的全部 Issue
相似的 Issue
-
docs
难度 1/5 1 小时以内 新手友好度 68/100
remix-run/react-router#15558 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
solana-foundation/pay-kit#341 ·
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 88/100
supabase/agent-skills#607 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复