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

Macro expansion causes incorrect line numbers in backtrace #13875

Closed
315234 opened this issue Nov 4, 2015 · 1 comment
Closed

Macro expansion causes incorrect line numbers in backtrace #13875

315234 opened this issue Nov 4, 2015 · 1 comment

Comments

@315234
Copy link
Contributor

315234 commented Nov 4, 2015

Example code:

@time nonexistent

Output:

$ julia --version
julia version 0.4.0

$ julia macro_line_numbers.jl
ERROR: LoadError: UndefVarError: nonexistent not defined
 in include at ./boot.jl:261
 in include_from_node1 at ./loading.jl:304
 in process_options at ./client.jl:308
 in _start at ./client.jl:411
while loading macro_line_numbers.jl, in expression starting on line 155

There is no line 155 in this file. Removing @time gives the correct line number (1).

@jakebolewski
Copy link
Member

Dup of #10595, #8701, #13725

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

2 participants