Skip to content

LSP crashes #535

@kape1395

Description

@kape1395

Version - Engine available at: /home/karolis/.cache/expert/0.1.0-rc.6-1bbd0df/ex-1.19.5-erl-16.2.1/

2026-03-30 15:10:31.804 [info] [Error - 3:10:31 PM] Request textDocument/codeAction failed.
2026-03-30 15:10:31.804 [info]   Message: ** (FunctionClauseError) no function clause matching in XPExpert.Protocol.Conversions.to_elixir/2
    (xp_expert 0.1.0-rc.6-1bbd0df) lib/expert/protocol/conversions.ex:21: XPExpert.Protocol.Conversions.to_elixir(%XPGenLSP.Structures.Range{end: %XPGenLSP.Structures.Position{character: 51, line: 4}, start: %XPGenLSP.Structures.Position{character: 51, line: 4}}, nil)
    (xp_forge 0.1.0-rc.6-1bbd0df) lib/forge/protocol/convertible.ex:52: anonymous fn/4 in XPForge.Protocol.Convertible.Helpers.apply/3
    (elixir 1.17.3) lib/enum.ex:4858: Enumerable.List.reduce/3
    (elixir 1.17.3) lib/enum.ex:2585: Enum.reduce_while/3
    (xp_forge 0.1.0-rc.6-1bbd0df) lib/forge/protocol/convertible.ex:182: XPForge.Protocol.Convertible.Any.to_native/2
    (xp_expert 0.1.0-rc.6-1bbd0df) lib/expert/protocol/convert.ex:26: XPExpert.Protocol.Convert.to_native/1
    (xp_expert 0.1.0-rc.6-1bbd0df) lib/expert.ex:116: XPExpert.handle_request/2
    (xp_gen_lsp 0.11.3) lib/gen_lsp.ex:390: anonymous fn/2 in XPGenLSP.loop/3

  Code: -32603 

I'm not sure what triggers it.

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