ElixirLS cannot connect to server in VScode

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:

export KERL_CONFIGURE_OPTIONS="--without-javac --with-ssl=$(brew --prefix openssl@3"

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.

1 Like