The language server is unable to start and connect to Matlab properly in VS Code
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- vscode
- 領域
- devtools
調査の方向性
まず、Windows 10 上で VS Code 1.97.2 と MATLAB R2023b または R2024b を使用して失敗を再現し、その後、connection-data-file の作成と attach timeout に関する language-server と MATLAB の出力を調べます。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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 件 ·
-
Add progress handler オープン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
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
Crush オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md オープン
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
ElementsProject/cln-application#167 · コメント 1 件 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Quantco/pnpm-licenses#17 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100