Skip to content

VSCode: Message: ** (FunctionClauseError) no function clause matching in XPExpert.Protocol.Conversions.to_elixir/2 #274

@Terbium-135

Description

@Terbium-135

Update: Forgot to add the error message itself!

2025-12-20 20:35:43.165 [info] [Error - 8:35:43 PM] Request textDocument/codeAction failed.
2025-12-20 20:35:43.165 [info]   Message: ** (FunctionClauseError) no function clause matching in XPExpert.Protocol.Conversions.to_elixir/2
    (xp_expert 0.1.0) lib/expert/protocol/conversions.ex:22: XPExpert.Protocol.Conversions.to_elixir(%XPGenLSP.Structures.Range{end: %XPGenLSP.Structures.Position{character: 0, line: 0}, start: %XPGenLSP.Structures.Position{character: 0, line: 0}}, nil)
    (xp_forge 0.1.0) 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) lib/forge/protocol/convertible.ex:182: XPForge.Protocol.Convertible.Any.to_native/2
    (xp_expert 0.1.0) lib/expert/protocol/convert.ex:26: XPExpert.Protocol.Convert.to_native/1
    (xp_expert 0.1.0) lib/expert.ex:114: XPExpert.handle_request/2
    (xp_gen_lsp 0.11.2) lib/gen_lsp.ex:369: anonymous fn/2 in XPGenLSP.loop/3

  Code: -32603 

I get this error message once for every elixir source code tab I am switching to.

Erlang/OTP 28 [erts-16.1.2] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit:ns]
Elixir 1.19.4 (compiled with Erlang/OTP 28)

Elixir commit: 8a9fd3d

Using Lexical VSCode client pointing to a .bat file calling expert with the --stdio parameter

Looks like everything is working though.

Best regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions