Skip to content

Commit

Permalink
set compiler options in case project left some garbage there
Browse files Browse the repository at this point in the history
Fixes #717
Workaround for elixir-lang/elixir#12159
  • Loading branch information
lukaszsamson committed Oct 1, 2022
1 parent a40581e commit 90752e8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/language_server/lib/language_server/build.ex
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ defmodule ElixirLS.LanguageServer.Build do
# FIXME: Private API
Mix.ProjectStack.post_config(build_path: ".elixir_ls/build")

# we need to reset compiler options
# project may leave tracers after previous compilation and we don't woant them interfeering
# see https://github.com/elixir-lsp/elixir-ls/issues/717
set_compiler_options()

# We can get diagnostics if Mixfile fails to load
{status, diagnostics} =
case Kernel.ParallelCompiler.compile([mixfile]) do
Expand Down

0 comments on commit 90752e8

Please sign in to comment.