mattn / mattn/vim-lsp-settings

erlang-ls not works on macOS catalina

Open
#328 0 comments 2 reactions 0 assignees View on GitHub

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

  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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.