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

more specific line numbers in syntax errors #6632

Closed
XilinJia opened this issue Apr 25, 2014 · 2 comments
Closed

more specific line numbers in syntax errors #6632

XilinJia opened this issue Apr 25, 2014 · 2 comments

Comments

@XilinJia
Copy link

when there is for loop. Can that be amended?

for i in [1:10]
x=i*,2
end

julia> include("test1.jl")
ERROR: syntax: unexpected ,
in include at boot.jl:244
while loading ~/Coding/Julia/test1.jl, in expression starting on line 1

@JeffBezanson
Copy link
Sponsor Member

dup of #6179
The info is not wrong, just less accurate than you'd like (the error is in fact inside an expression that starts on line 1).

@JeffBezanson JeffBezanson changed the title error message doesn't report correct line number more specific line numbers in syntax errors Apr 25, 2014
@stevengj
Copy link
Member

closing in favor of 6179

@jiahao jiahao closed this as completed Apr 25, 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

4 participants