The language server is unable to start and connect to Matlab properly in VS Code
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- vscode
- Área
- devtools
Línea de trabajo
Empieza reproduciendo el fallo en Windows 10 con VS Code 1.97.2 y MATLAB R2023b o R2024b; después, inspecciona la salida de language-server y MATLAB en torno a la creación del connection-data-file y al attach timeout. El trabajo estará terminado cuando el language server permanezca conectado a MATLAB y las funciones dependientes funcionen sin que finalice la sesión.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 125
- Forks
- 21
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de mathworks/MATLAB-language-server
-
install/run instructions? Abiertodocumentation enhancement
Dificultad 1/5 1-3 horas Aptitud para principiantes 62/100
mathworks/MATLAB-language-server#27 · 10 comentarios ·
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
mathworks/MATLAB-language-server#82 · 1 reacción ·
-
Add progress handler Abiertoenhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
mathworks/MATLAB-language-server#81 · 4 comentarios ·
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
mathworks/MATLAB-language-server#79 · 7 comentarios ·
-
`--matlabLaunchCommandArgs` does not accept value starting with "-" (Not enough arguments following) Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
mathworks/MATLAB-language-server#78 · 8 comentarios ·
Todos los issues de mathworks/MATLAB-language-server
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
vercel-labs/just-bash#464 ·
-
looksLikeSlug() is ASCII-only, so non-Latin entity slugs (e.g. Korean) skip exact match and collapse Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
TanStack/tanstack.com#1293 ·