Skip to content

MATLAB Language server crashes on startup #291

@robertoffmoura

Description

@robertoffmoura

Describe the bug
The MATLAB Language server crashes as soon as the extension starts. See the screen capture attached:

broken.mp4

Output of MATLAB Language Server:

(11:36:26) matlabls: Log Directory: /tmp/matlabls_98394
(node:98394) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `code --trace-deprecation ...` to show where the warning was created)
(11:36:26) matlabls: Launching MATLAB...
(11:36:26) matlabls: Found MLM_LICENSE_FILE environment variable set to: <matlab license env var here>,. Using it for licensing MATLAB
[Error - 11:36:26] (11:36:26) matlabls - ERROR: Error finding mlint executable in /usr/local/bin
(11:36:37) matlabls: Started MATLAB (session 1)
(11:36:37) matlabls: MATLAB session 1 connected to R2024b
[Error - 11:36:40] (11:36:40) matlabls - ERROR: Timeout when attaching to release: 24b
(11:36:40) matlabls: Retrying attach
(11:36:40) matlabls: MVM attach success
(11:36:40) matlabls: Adding workspace folder(s) to the MATLAB Path: 
	<project folder here>
(11:36:42) matlabls: CWD set to: <project folder here>
node:internal/process/promises:392
      new UnhandledPromiseRejection(reason);
      ^

UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "undefined".
    at throwUnhandledRejectionsMode (node:internal/process/promises:392:7)
    at processPromiseRejections (node:internal/process/promises:475:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:106:32) {
  code: 'ERR_UNHANDLED_REJECTION'
}

Node.js v22.15.1
[Info  - 11:36:43] Connection to server got closed. Server will restart.
true
(11:36:43) matlabls: Log Directory: /tmp/matlabls_99978
(node:99978) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `code --trace-deprecation ...` to show where the warning was created)
(11:36:43) matlabls: Launching MATLAB...
(11:36:43) matlabls: Found MLM_LICENSE_FILE environment variable set to: <matlab license env var here>,. Using it for licensing MATLAB
[Error - 11:36:43] (11:36:43) matlabls - ERROR: Error finding mlint executable in /usr/local/bin

To Reproduce
See screen capture

Useful Information

  • MATLAB Version: '24.2.0.2740171 (R2024b) Update 1'
  • OS Version: OS: Linux x64 4.18.0-553.54.1.el8_10.x86_64
  • VS Code Version: 1.101.2
    Commit: 2901c5ac6db8a986a5666c3af51ff804d05af0d4
    Date: 2025-06-24T20:27:15.391Z
    Electron: 35.5.1
    ElectronBuildId: 11727614
    Chromium: 134.0.6998.205
    Node.js: 22.15.1
    V8: 13.4.114.21-electron.0

Additional context
This started happening recently. Maybe it only happens in version 1.101.2 of VS Code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions