ndrean
Error in MixProject with ElixirLS
Using VSCode with ElixirLS installed. I have a warning in MixProject. This doesn’t stop the code from running though. I uninstalled/reinstalled ElixirLS, and cleaned _build.
an exception was raised:
** (RuntimeError) build without intercepted logger []
(language_server 0.15.1) lib/language_server/build.ex:109: ElixirLS.LanguageServer.Build.reload_project/0
...
My file is completely standard:
use Mix.Project
def project do
[...
aliases: aliases(),
deps: deps()
]
end
def application do
[
mod: {PhxSolid.Application, []},
extra_applications: [:logger, :runtime_tools, :os_mon]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[...]
end
defp aliases do
[...]
end
Most Liked
NobbZ
Whenever I am facing any errors marked in mix.exs by the LSP, I delete .elixir_ls in the workspace root and restart the LS.
This procedure tends to solve those issues.
christhekeele
christhekeele
It’s a command available to me in the CMDShiftP command palette.
I hit CMDShiftP and start typing: elixir restart. This lets me preview the command and see a gear to set up a keyboard shortcut for it:
That takes me to the screenshot I shared above where I was able to enter in a keybinding.
lukaszsamson
If anyone faces this issue please report back in Logger interception can fail · Issue #947 · elixir-lsp/elixir-ls · GitHub










