You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MathWorks published their own MATLAB language server, and it is now working with neovim (via nvim-lspconfig and mason. In the discussions under issue 4, people can compile the language server and interact with it through neovim. I tried to do the same thing with Helix, but failed. Here are my steps so far:
cd ~/.local/share/MATLAB-language-server && npm install . && npm run package
Verify that it is working via
node out/index.js --stdio
Make a short script matlab_ls as follows, mark it executable via chmod, and store it somewhere on the $PATH. Below, I am using mason installed version, but it should be the same.
Helix is able to talk to the language server just momentarily. :lsp-workspace-command can show two items, which are correct: matlabls.lint.suppress.line and matlabls.lint.suppress.file. However, the server is shutdown as above log shows.
Any suggestions / ideas? Thank you!
The text was updated successfully, but these errors were encountered:
Thanks for the info! I can confirm that it works properly in neovim. I cannot seem to find the documentation for config.<language>. Could you please elaborate?
Quick background
MathWorks published their own MATLAB language server, and it is now working with
neovim
(vianvim-lspconfig
andmason
. In the discussions under issue 4, people can compile the language server and interact with it throughneovim
. I tried to do the same thing withHelix
, but failed. Here are my steps so far:matlab_ls
as follows, mark it executable viachmod
, and store it somewhere on the$PATH
. Below, I am usingmason
installed version, but it should be the same.Helix
language settings, i.e.,<config_dir>/helix/languages.toml
.m
file under agit
-managed folder withhelix -v test.m
, and see if the language server is responding.Here are the relevant log files:
~/.cache/helix/helix.log
/tmp/matlabls_12345/languageServerLog.txt
:What I have observed
Helix
is able to talk to the language server just momentarily.:lsp-workspace-command
can show two items, which are correct:matlabls.lint.suppress.line
andmatlabls.lint.suppress.file
. However, the server is shutdown as above log shows.Any suggestions / ideas? Thank you!
The text was updated successfully, but these errors were encountered: