89 words, 1 min read

After updating to ElixirLS 0.29, I started seeing formatter failures with the following error:

[Warn - 2:55:38 PM] Unable to get formatter options for /workspace/lib/path/to/file.ex: ** (Code.LoadError) could not load /workspace. Reason: eisdir
(elixir 1.18.3) lib/code.ex:2219: Code.find_file!/2
(elixir 1.18.3) lib/code.ex:1464: Code.eval_file/2
...

This is caused by a new setting: elixirLS.dotFormatter. If this is not set explicitly, formatting fails.

To fix it, add the following to your project’s .vscode/settings.json:

{
"elixirLS.dotFormatter": ".formatter.exs"
}

This should restore normal formatting behavior.

A bug report has been filed and can be tracked here.