autotools-language-server icon indicating copy to clipboard operation
autotools-language-server copied to clipboard

Client autotools_ls quit with exit code 1 and signal 0

Open Mblakey opened this issue 1 year ago • 3 comments

Probably the same as the other closed issues, although different error messages in the logs on my end.

Ubuntu 24.04 LTS, installed through Mason. Nvim release version 0.10.1

[ERROR][2024-10-10 14:09:15] .../vim/lsp/rpc.lua:770 "rpc" "autotools-language-server" "stderr" ' MakeLanguageServer(NAME, version).start_io()\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/home/mikey/.local/share/nvim/mason/packages/autotools-language-server/venv/lib/python3.12/site-packages/make_language_server/server.py", line 55, in init\n self.parser = get_parser("make")\n ^^^^^^^^^^^^^^^^^^\n File "tree_sitter_languages/core.pyx", line 19, in tree_sitter_languages.core.get_parser\n File "tree_sitter_languages/core.pyx", line 14, in tree_sitter_languages.core.get_language\nTypeError: init() takes exactly 1 argument (2 given)\n'

Mblakey avatar Oct 10 '24 13:10 Mblakey

I think #8 and #11 should be the reason. Update to 0.0.19 should fix the problem.

Freed-Wu avatar Oct 10 '24 13:10 Freed-Wu

Is this available through Mason? Seems to only find the 0.0.18 release. No worries if not, can do it manually

Mblakey avatar Oct 10 '24 14:10 Mblakey

It should be finished manually, I think.

Freed-Wu avatar Oct 10 '24 15:10 Freed-Wu

The methods you mentioned in #8 and #11 are not working. Because:

Mason installs the language servers in its own directory, i.e., ~/.local/share/nvim/mason/packages/autotools-language-server/venv/; while, pip install them in ./local. So, even we installed 0.0.19, nvim Make language server is still running the one installed by mason, version 0.0.18.

wangxa avatar Nov 06 '24 10:11 wangxa

@wangxa you can move the files into Mason and do a custom install. But I agree, I won't be using this repo until Mason can install the current version properly.

Mblakey avatar Nov 06 '24 10:11 Mblakey

OK. Thnak you.

wangxa avatar Nov 06 '24 13:11 wangxa

pip install --prefix /the/path/you/want should work.

Freed-Wu avatar Nov 06 '24 13:11 Freed-Wu

same issue

cxwx avatar Dec 08 '24 02:12 cxwx

Yes, same as #11

Freed-Wu avatar Dec 08 '24 03:12 Freed-Wu