Skip to content

Commit 1da8ce9

Browse files
terenceponceamiralies
authored andcommitted
Add instructions for troubleshooting ElixirLS (#5)
This adds some steps to fixing the problem with the plugin not being able to start the language server.
1 parent a91cbeb commit 1da8ce9

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,30 @@ Elixir language server extension based on [elixir-ls](https://github.com/JakeBec
2020
- Smart closing of code blocks
2121
- Code formatter
2222

23+
## Troubleshooting
24+
25+
### Server fails to start
26+
27+
If, for some reason, the language server fails to start, you can try doing a manual installation of [ElixirLS](https://github.com/JakeBecker/elixir-ls) to fix the problem.
28+
29+
Start by building a binary of ElixirLS from its source:
30+
31+
```
32+
git clone https://github.com/JakeBecker/elixir-ls.git ~/.elixir-ls
33+
cd ~/.elixir-ls
34+
mix deps.get && mix compile && mix elixir_ls.release -o release
35+
```
36+
37+
Afterwards, create or update your ~/.vim/coc-settings.json file and add this line:
38+
39+
```json
40+
{
41+
"elixir.pathToElixirLS": "~/.elixir-ls/release/language_server.sh"
42+
}
43+
```
44+
45+
Doing these steps should make this plugin work with [CoC](https://github.com/neoclide/coc.nvim).
46+
2347
## License
2448

2549
MIT

0 commit comments

Comments
 (0)