Skip to content

Task queue crashes when calling Api Proxy #168

@mhanberg

Description

@mhanberg

This happens after opening a file and entering some text.

09:13:17.172 [error] Task #PID<0.208.0> started from XPExpert terminating
** (stop) {:exception, {:noproc, {:gen_statem, :call, [XPEngine.Api.Proxy, {:buffer, {:mfa, XPEngine.Dispatch, :broadcast, [{:file_changed, "file:///Users/m.hanberg/src/xxx/path/to/file.ex", 10, 10, true}], -576460752303423420}, :ok}, :infinity]}}}
    (kernel 10.2.7.1) erpc.erl:1366: :erpc.call/5
    (xp_expert 0.1.0) lib/expert/state.ex:122: XPExpert.State.apply/2
    (xp_expert 0.1.0) lib/expert.ex:200: XPExpert.apply_to_state/2
    (xp_expert 0.1.0) lib/expert.ex:139: XPExpert.handle_notification/2
    (xp_gen_lsp 0.11.1) lib/gen_lsp.ex:519: anonymous fn/2 in XPGenLSP.loop/3
    (xp_telemetry 1.3.0) /Users/m.hanberg/src/other/expert/apps/expert/deps/telemetry/src/telemetry.erl:324: :xp_telemetry.span/3
    (xp_gen_lsp 0.11.1) lib/gen_lsp.ex:515: anonymous fn/4 in XPGenLSP.loop/3
    (xp_gen_lsp 0.11.1) lib/gen_lsp.ex:592: anonymous fn/4 in XPGenLSP.attempt/4
Function: #Function<0.109218301/0 in XPGenLSP.attempt/4>
    Args: []
09:13:17.174 [error] Child :undefined of Supervisor :expert_task_queue terminated
** (exit) {:exception, {:noproc, {:gen_statem, :call, [XPEngine.Api.Proxy, {:buffer, {:mfa, XPEngine.Dispatch, :broadcast, [{:file_changed, "file:///Users/m.hanberg/src/xxx/path/to/file.ex", 10, 10, true}], -576460752303423420}, :ok}, :infinity]}}}
Pid: #PID<0.208.0>

After this error, completions still seems to work, but formatting times out and stale diagnostics are present.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions