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

line numbers for errors during macro expansion #7180

Closed
RichMorin opened this issue Jun 9, 2014 · 1 comment
Closed

line numbers for errors during macro expansion #7180

RichMorin opened this issue Jun 9, 2014 · 1 comment

Comments

@RichMorin
Copy link
Contributor

Let's say my file (foo.jl) contains this code:

function main ()
  @printf("%s\n", "foo", "bar")
end

main()

Running this, I get a correct error message, followed by a broken stack trace:

ERROR: @printf: wrong number of arguments
 in include at boot.jl:238
 in include_from_node1 at loading.jl:114
 in process_options at client.jl:303
 in _start at client.jl:389
at /Volumes/Cutie/YAGO/bi_prep/foo.jl:0

Given that the error was in line 2 of the file, I think the error message should say so.

@JeffBezanson JeffBezanson changed the title misleading stack trace in @printf error message line numbers for errors during macro expansion Jun 9, 2014
@pao
Copy link
Member

pao commented Jun 9, 2014

We'd like that too! This is the longstanding issue #1334.

@pao pao closed this as completed Jun 9, 2014
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