Emacs - Elixir Setup Configuration Wiki

I was updating my environment to use the latest versions of things and I hit a problem with elixir-ls. I figured out a quick fix so just posting here in case someone has the same problem. I’m using Ubuntu 18.04.

After updating elixir-ls and running $ mix elixir_ls.release I tried to connect from Emacs. But it didn’t work and I noticed this message in the elixir-ls::stderr buffer…

/opt/elixir-ls/release/language_server.sh: 8: /home/my_home/.asdf/asdf.sh: Bad substitution

This answer on SO pointed me in the right direction
https://stackoverflow.com/a/20616103/1502519

And so the quick fix was to change the first line in release/language_server.sh
from #!/usr/bin/env sh to #!/bin/bash

I think this only happens now because of a somewhat recent commit…
https://github.com/elixir-lsp/elixir-ls/commit/b2749e76a35c4e1a7ae7385fd60d06f1756b0583#diff-9b8bec26e21a66d10d7d863a16ddbf97

Actually, I just tested now and just removing the line from that commit also works as a quick fix.