From c480ca9b813451543791b162120793926360181c Mon Sep 17 00:00:00 2001 From: Lukasz Samson Date: Mon, 6 May 2024 21:00:16 +0200 Subject: [PATCH] fix crash in dialyzer when dialyze is already in progress --- .../language_server/lib/language_server/dialyzer_incremental.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/language_server/lib/language_server/dialyzer_incremental.ex b/apps/language_server/lib/language_server/dialyzer_incremental.ex index deb4cb62c..d44a99608 100644 --- a/apps/language_server/lib/language_server/dialyzer_incremental.ex +++ b/apps/language_server/lib/language_server/dialyzer_incremental.ex @@ -167,7 +167,7 @@ defmodule ElixirLS.LanguageServer.DialyzerIncremental do {:noreply, state} end - def handle_cast({:analyze, _build_ref, _warn_opts, _warning_format} = msg, state) do + def handle_cast({:analyze, _build_ref, _warn_opts, _warning_format, _project_dir} = msg, state) do # analysis in progress - store last requested build # we will trigger one more time {:noreply, %{state | next_build: msg}}