mattn / mattn/vim-lsp-settings
erlang-ls not works on macOS catalina
Nobody has claimed this yet.
- Dominant language
- Vim Script
- Stars
- 1.4k
- Forks
- 245
- Avg merge
- 3m
- Merged PRs (30d)
- 1
Description
"erlang-ls" doesn't work.
When I run ./local/share/vim-lsp-settings/servers/erlang-ls/erlang-ls directly, I get the following error:
escript: exception error: undefined function 'erlang-ls':main/1
in function escript:run/2 (escript.erl, line 758)
in call from escript:start/1 (escript.erl, line 277)
in call from init:start_em/1
in call from init:do_boot/3
If you execute ./local/share/vim-lsp-settings/servers/erlang-ls/_build/default/bin/erlang-ls directly, it will work normally, so the
following script is used as an emergency measure.
let g:lsp_settings = {
\ 'erlang-ls': {'cmd': $HOME . '/.local/share/vim-lsp-settings/servers/erlang-ls/_build/default/bin/erlang_ls --transport stdio '}
\}
I'm very happy when first aid is no longer needed.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the failing ./local/share/vim-lsp-settings/servers/erlang-ls/erlang-ls entry point with the working _build/default/bin/erlang-ls executable on macOS Catalina. Reproduce the escript error, then verify that the configured erlang-ls command works without the user's emergency lsp_settings override.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- erlang, vim
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100