Recently, VSCode intellisense feature for elixir has stopped working on my Mac. Code autocomplete, go to definition, function description... are all failed. My colleagues encounter the same problem.
After researching, I found the root cause is ElixirLS has crashed from launching.

I tried to disable ElixirLS, close the editor, open the editor again and enable ElixirLS but no luck. I also tried to reinstall ElixirLS but nothing changes.
So I went to ElixirLS Github homepage, move to Troubleshooting region and I found the solution:
- 
Remove .elixir_ls folder in project folder: 
 rm -rf .elixir_ls/
- Close VSCode. 
- And voila! 
Updated 2021-11-14:
If the above method does not work, you can try the final solution below:
- 
Get your elixir path 
 which elixir
- Edit the - launch.shfile of elixir-ls extension (the file path can be seen in the log above), add the export PATH="elixir/path/here" before- exec elixircommand.
  
This way has an inconvenience that is every time you update the extension, you need to modify the launch.sh file again.
 
 
              
 
                      
 
    
Top comments (1)
Updated 2023:
ElixirLS supports integration with ASDF.
github.com/elixir-lsp/elixir-ls/bl...