I am not sure what has changed but now ElixirLS does not work for me anymore. I am using the latest vscode (1.77.3) and the latest elixir ls extension (0.14.3). I have elixir 14.2 and OTP 25 installed through asdf. I get the following messages when starting with the command code . :
ElixirLS - asc_enfusion client: couldn't create connection to server. The ElixirLS - asc_enfusion server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
I removed my .gitconfig file and now it works fine. Didn’t quite get to the bottom of this. I would try @Egis suggestion to see if it gives a different or more helpful error.
@karang v0.14.7 should surface the git error. In one report I’ve seen the reason was blocked connection to github in corporate network and incorrectly set git proxy.
I was just firing up elixir on a new laptop with a fresh install of VSCode and ran into this same problem with ElixirLS. I also had to revert back to v0.13.0. If I upgrade to even v0.14.0, it breaks again. Pretty weird.
I was able to solve this accidentally with the help of others while working on a different problem. I’m running on a Mac, which uses LibreSSL 3.3.6 instead of the regular openssl. This was causing the crypto module to be ignored when I installed erlang via asdf. The solution was to use Homebrew to install openssl, then tell KERL (which asdf uses) to use this version of openssl:
Then I reinstalled erlang via asdf and all is well now. The crypto module is no longer ignored during erlang installation and I can use the latest version of ElixirLS with no problem.
If this worked then the ElixirLS you cloned into a folder should compile. If not, see what error you are getting and go search - this is how I worked my way through this.
Only took 4 hours
It may not be the “correct” approach but at least it’s working for me now.