Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code lens crash in test #763

Closed
lukaszsamson opened this issue Nov 7, 2022 · 0 comments
Closed

Code lens crash in test #763

lukaszsamson opened this issue Nov 7, 2022 · 0 comments

Comments

@lukaszsamson
Copy link
Collaborator

GenServer ElixirLS.LanguageServer.Server terminating\n** (MatchError) no match of right hand side value: nil\n    (elixir 1.13.4) lib/kernel/parallel_compiler.ex:705: anonymous fn/3 in Kernel.ParallelCompiler.handle_deadlock/2\n    (elixir 1.13.4) lib/enum.ex:2396: Enum.\"-reduce/3-lists^foldl/2-0-\"/3\n    (elixir 1.13.4) lib/kernel/parallel_compiler.ex:701: Kernel.ParallelCompiler.handle_deadlock/2\n    (elixir 1.13.4) lib/kernel/parallel_compiler.ex:433: Kernel.ParallelCompiler.spawn_workers/7\n    (elixir 1.13.4) lib/kernel/parallel_compiler.ex:204: Kernel.ParallelCompiler.spawn_workers/5\n    (elixir 1.13.4) lib/kernel/parallel_compiler.ex:177: Kernel.ParallelCompiler.spawn_workers/3\n    (language_server 0.11.0) lib/language_server/build.ex:92: ElixirLS.LanguageServer.Build.reload_project/0\n    (language_server 0.11.0) lib/language_server/server.ex:1318: ElixirLS.LanguageServer.Server.maybe_rebuild/1\n    (language_server 0.11.0) lib/language_server/server.ex:1130: ElixirLS.LanguageServer.Server.set_settings/2\n    (language_server 0.11.0) lib/language_server/server.ex:187: ElixirLS.LanguageServer.Server.handle_cast/2\n    (stdlib 4.1.1) gen_server.erl:1123: :gen_server.try_dispatch/4\n    (stdlib 4.1.1) gen_server.erl:1200: :gen_server.handle_msg/6\n    (stdlib 4.1.1) proc_lib.erl:240: :proc_lib.init_p_do_apply/3

Reported upstream elixir-lang/elixir#12228
Fixed on elixir master, the fix will not be backported to 1.14

The problem is that we are building 2 times in short succession and that triggers race conditions in the compiler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant