Closed
Description
11:00:06.874 [error] LSP Exited.
Last message received: handle_info :publish
** (MatchError) no match of right hand side value: {:error, %{params: %{diagnostics: "expected a list of a %GenLSP.Structures.Diagnostic{}"}}}
(gen_lsp 0.1.2) lib/gen_lsp.ex:305: GenLSP.dump!/2
(gen_lsp 0.1.2) lib/gen_lsp.ex:209: GenLSP.notify/2
(next_ls 0.1.1) lib/next_ls.ex:252: anonymous fn/3 in NextLS.handle_info/2
(stdlib 4.3) maps.erl:411: :maps.fold_1/3
(next_ls 0.1.1) lib/next_ls.ex:251: NextLS.handle_info/2
(gen_lsp 0.1.2) lib/gen_lsp.ex:277: anonymous fn/4 in GenLSP.loop/3
(gen_lsp 0.1.2) lib/gen_lsp.ex:289: GenLSP.attempt/2
(stdlib 4.3) proc_lib.erl:240: :proc_lib.init_p_do_apply/3
11:00:06.876 [error] LSP Exited.
Last message received: handle_info {#Reference<0.2346312572.3890020356.4244>, [%Mix.Task.Compiler.Diagnostic{file: "<redacted>", severity: :warning, message: ["<redacted>", " is undefined (module ", "<redacted>", " is not available or is yet to be defined)"], position: 51, compiler_name: "Elixir", details: nil}, %Mix.Task.Compiler.Diagnostic{file: "<redacted>", severity: :warning, message: ["<redacted>", " is undefined (module ", "<redacted>", " is not available or is yet to be defined)"], position: 50, compiler_name: "Elixir", details: nil}, %Mix.Task.Compiler.Diagnostic{file: "<redacted>", severity: :warning, message: ["<redacted>", " is undefined (module ", "<redacted>", " is not available or is yet to be defined)"], position: 49, compiler_name: "Elixir", details: nil}]}
** (MatchError) no match of right hand side value: {:error, %{params: %{diagnostics: "expected a list of a %GenLSP.Structures.Diagnostic{}"}}}
(gen_lsp 0.1.2) lib/gen_lsp.ex:305: GenLSP.dump!/2
(gen_lsp 0.1.2) lib/gen_lsp.ex:209: GenLSP.notify/2
(next_ls 0.1.1) lib/next_ls.ex:252: anonymous fn/3 in NextLS.handle_info/2
(stdlib 4.3) maps.erl:411: :maps.fold_1/3
(next_ls 0.1.1) lib/next_ls.ex:251: NextLS.handle_info/2
(gen_lsp 0.1.2) lib/gen_lsp.ex:277: anonymous fn/4 in GenLSP.loop/3
(gen_lsp 0.1.2) lib/gen_lsp.ex:289: GenLSP.attempt/2
(stdlib 4.3) proc_lib.erl:240: :proc_lib.init_p_do_apply/3
Schematic should also output a better error than this.