Error launching MATLAB on Neovim

Open
#33 16 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
32/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
neovim
Domain
devtools, tooling

Research direction

Reproduce the failure in Neovim with matlab_ls 1.1.7 on Arch Linux and start from the reported spawn matlab ENOENT error. Check how MATLAB is launched and verify the reported MATLAB R2023b environment; done means MATLAB launches successfully from the language server.

Written by the indexing model from the issue text.

Description

bug

System: ArchLinux

Editor: nvim with matlab_ls

Matlab version: R2023b

Matlab-language-server version: 1.1.7

Problem:

fail to launch matlab

(18:50:03) matlabls: Log Directory: /tmp/matlabls_10926
(18:50:03) matlabls: Launching MATLAB...
(18:50:03) matlabls - ERROR: Error launching MATLAB: spawn matlab ENOENT
(18:50:03) matlabls - ERROR: Error launching MATLAB: Error
(18:50:03) matlabls - ERROR: Error launching MATLAB: Error: spawn matlab ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:286:19)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
(18:50:03) matlabls: MATLAB process terminated

Works fine 2 months ago, but failed after updating Matlab-language-server

Dominant language
TypeScript
Stars
125
Forks
21
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mathworks/MATLAB-language-server

All issues in mathworks/MATLAB-language-server

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.