-
-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
I have the feeling this might be a duplicate and been already reported. I was browsing issues for the word formatting.ex and got plenty results
After starting Zed I can format a source file just fine. But the second call does nothing. Something is wrong with/blocking the document store? Just a wild guess
Expert:
Erlang/OTP 27 [erts-15.2.7] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit:ns]
Elixir 1.18.4 (compiled with Erlang/OTP 27)
Project:
Erlang/OTP 28 [erts-16.1.1] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit:ns]
Elixir 1.19.1 (compiled with Erlang/OTP 28)
Project.log:
06:08:26.458 [error] Child :undefined of Supervisor :expert_task_queue terminated
** (exit) {:exception, {:noproc, {GenServer, :call, [{:via, :global, {XPForge.Document.Store, 2572}}, {:fetch, "file:///home/elixir-dev/projects/ganymed/lib/backend/pdf/generate.ex", :analysis}, 5000]}}}
Pid: #PID<0.518.0>
Start Call: Task.Supervised.start_link/?
Restart: :temporary
Shutdown: 5000
Type: :worker
06:08:27.893 [error] Task #PID<0.520.0> started from XPExpert terminating
** (stop) {:exception, {:noproc, {:gen_statem, :call, [XPEngine.Api.Proxy, {:drop, {:mfa, XPEngine.CodeMod.Format, :edits, [#XPForge.Document<path: "/home/elixir-dev/projects/ganymed/lib/backend/pdf/generate.ex", version: 10, dirty?: true, lines: %Lines<"defmodule Backend.PDF.PDFGenerator do..."(354 lines)>, ...>], -576460752303423418}, {:ok, %XPForge.Document.Changes{document: #XPForge.Document<path: "/home/elixir-dev/projects/ganymed/lib/backend/pdf/generate.ex", version: 10, dirty?: true, lines: %Lines<"defmodule Backend.PDF.PDFGenerator do..."(354 lines)>, ...>, edits: []}}}, :infinity]}}}
(kernel 10.2.7.1) erpc.erl:1366: :erpc.call/5
(xp_expert 0.1.0-2c2b7f4) lib/expert/provider/handlers/formatting.ex:16: XPExpert.Provider.Handlers.Formatting.handle/2
(xp_expert 0.1.0-2c2b7f4) lib/expert.ex:94: XPExpert.handle_request/2
(xp_gen_lsp 0.11.1) lib/gen_lsp.ex:369: anonymous fn/2 in XPGenLSP.loop/3
(xp_telemetry 1.3.0) /home/runner/work/expert/expert/apps/expert/deps/telemetry/src/telemetry.erl:324: :xp_telemetry.span/3
(xp_gen_lsp 0.11.1) lib/gen_lsp.ex:368: anonymous fn/5 in XPGenLSP.loop/3
(xp_gen_lsp 0.11.1) lib/gen_lsp.ex:592: anonymous fn/4 in XPGenLSP.attempt/4
(elixir 1.17.3) lib/task/supervised.ex:101: Task.Supervised.invoke_mfa/2
Function: #Function<0.109218301/0 in XPGenLSP.attempt/4>
Args: []
06:08:27.900 [error] Child :undefined of Supervisor :expert_task_queue terminated
** (exit) {:exception, {:noproc, {:gen_statem, :call, [XPEngine.Api.Proxy, {:drop, {:mfa, XPEngine.CodeMod.Format, :edits, [#XPForge.Document<path: "/home/elixir-dev/projects/ganymed/lib/backend/pdf/generate.ex", version: 10, dirty?: true, lines: %Lines<"defmodule Backend.PDF.PDFGenerator do..."(354 lines)>, ...>], -576460752303423418}, {:ok, %XPForge.Document.Changes{document: #XPForge.Document<path: "/home/elixir-dev/projects/ganymed/lib/backend/pdf/generate.ex", version: 10, dirty?: true, lines: %Lines<"defmodule Backend.PDF.PDFGenerator do..."(354 lines)>, ...>, edits: []}}}, :infinity]}}}
Pid: #PID<0.520.0>
Start Call: Task.Supervised.start_link/?
Restart: :temporary
Shutdown: 5000
Type: :worker
06:10:26.452 [debug] handled notification client -> server $/cancelRequest in 154µs
06:10:27.894 [debug] handled notification client -> server $/cancelRequest in 409µs
Metadata
Metadata
Assignees
Labels
No labels