Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sourceror.get_range/1 creashes on :telemetry.execute call #170

Open
doorgan opened this issue Oct 29, 2024 · 0 comments
Open

Sourceror.get_range/1 creashes on :telemetry.execute call #170

doorgan opened this issue Oct 29, 2024 · 0 comments

Comments

@doorgan
Copy link
Owner

doorgan commented Oct 29, 2024

Calling Sourceror.get_range/1 on this:

{{:., [line: 167, column: 15], [:telemetry, :execute]},
 [
   end_of_expression: [newlines: 2, line: 171, column: 6],
   newlines: 1,
   closing: [line: 171, column: 5],
   line: 167,
   column: 16
 ],
 [
   [:auction, :join, :start],
   {:%{}, [closing: [line: 169, column: 17], line: 169, column: 8], [count: 1]},
   {:%{}, [closing: [line: 170, column: 30], line: 170, column: 8],
    [
      channel: {:@, [line: 170, column: 18],
       [{:channel_tag, [line: 170, column: 19], nil}]}
    ]}
 ]}

Blows up with this error:

** (FunctionClauseError) no function clause matching in Sourceror.get_start_position/2

    The following arguments were given to Sourceror.get_start_position/2:

        # 1
        :telemetry

        # 2
        [line: 1, column: 1]

    Attempted function clauses (showing 5 out of 5):

        def get_start_position({{:., _, [Access, :get]}, _, [left | _]}, default)
        def get_start_position({{:., _, [Kernel, :to_string]}, _, [left | _]}, default)
        def get_start_position({{:., _, [List, :to_charlist]}, meta, _}, default)
        def get_start_position({{:., _, [left | _]}, _, _}, default)
        def get_start_position({_, meta, _}, default)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant