-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Column info in Module.get_definition/2 #13029
Comments
Can you please provide a small app or script that reproduces this btw? :) |
Yes, I'll get you that today! |
@josevalim luckily I already had a demo app that was 90% of the way there: https://github.com/mhanberg/tracer_demo Thanks! |
Thanks José! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Originally opened on the Elixir Forum (https://elixirforum.com/t/how-to-find-function-clause-column-information/59177), cross posting here at the request of Jose.
Currently I am able to acquire the line for a function clause definition using the
:on_module
tracer event, similar to the following codeWhen I eventually loop through each function and its clauses, I get a structure that looks like this:
which corresponds to the following code snippet:
As you can see here, the metadata includes the line
[line: 943]
, but not the column. I currently usecolumns: true
for the compiler options, but the column doesn't seem to show up here.Would you know if I'm doing something wrong here?
The text was updated successfully, but these errors were encountered: