The language server is unable to start and connect to Matlab properly in VS Code
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- vscode
- Ambito
- devtools
Direzione di ricerca
Inizia riproducendo il problema su Windows 10 con VS Code 1.97.2 e MATLAB R2023b o R2024b, quindi esamina l'output di language-server e MATLAB relativo alla creazione del connection-data-file e all'attach timeout. Il lavoro è completato quando il language server rimane connesso a MATLAB e le funzionalità dipendenti funzionano senza che la sessione termini.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- TypeScript
- Stelle
- 125
- Fork
- 21
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di mathworks/MATLAB-language-server
-
install/run instructions? Apertadocumentation enhancement
Difficoltà 1/5 1-3 ore Idoneità per principianti 62/100
mathworks/MATLAB-language-server#27 · 10 commenti ·
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
mathworks/MATLAB-language-server#82 · 1 reazione ·
-
Add progress handler Apertaenhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
mathworks/MATLAB-language-server#81 · 4 commenti ·
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
mathworks/MATLAB-language-server#79 · 7 commenti ·
-
`--matlabLaunchCommandArgs` does not accept value starting with "-" (Not enough arguments following) Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
mathworks/MATLAB-language-server#78 · 8 commenti ·
Tutte le issue di mathworks/MATLAB-language-server
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
mksglu/context-mode#1200 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
anthropics/claude-code#96687 ·
-
good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
AOSSIE-Org/DebateAI#582 · 2 commenti ·