Skip to content

Error when getting token start position #11

@doorgan

Description

@doorgan

I got this error when working with Sourceror, which prevents Expert from providing completions:

17:55:58.342 [error] ** (FunctionClauseError) no function clause matching in LXical.Ast.Tokens.get_start_pos/1
    (lx_common 0.7.2) LXical.Ast.Tokens.get_start_pos([{:eol, {224, 23, 1}}, {:int, {225, 18, 2}, ~c"2"}, {:eol, {225, 19, 1}}])
    (lx_common 0.7.2) lib/lexical/ast/tokens.ex:158: anonymous fn/2 in LXical.Ast.Tokens.interpolation_ranges/1
    (elixir 1.18.3) lib/enum.ex:2546: Enum."-reduce/3-lists^foldl/2-0-"/3
    (lx_common 0.7.2) lib/lexical/ast/tokens.ex:151: LXical.Ast.Tokens.interpolation_ranges/1
    (lx_common 0.7.2) lib/lexical/ast/tokens.ex:97: LXical.Ast.Tokens.normalize_token/1
    (elixir 1.18.3) lib/stream.ex:626: anonymous fn/4 in Stream.map/2
    (elixir 1.18.3) lib/enum.ex:4968: Enumerable.List.reduce/3
    (elixir 1.18.3) lib/stream.ex:1612: Stream.do_list_resource/6

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions