Try clearing the cache, _build and deps in particular, it usually helps with that error.
_build
deps
I also used to get this error with elixir_ls, and deleting deps and _build before rebuilding worked there as well.
elixir_ls