-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Reinstate printing of :line Exprs #15309
Conversation
@tkelman: Sure, I can add a few tests. Just wanted to know if this was at all desired. |
Not sure. Was it bisected to see if the removal was intentional? |
Added some tests. |
The Travis OSX build passed, while all the others failed.
Anybody have any idea why that might trigger a loading error? I'd been slightly less surprised if the few lines just above it did, since they involve a macro definition. |
They are still given to the user in macro arguments, otherwise LineNumberNode seems to be used consistently.
Sorry, silly mistake in the tests.
To me this would indicate that the test code caused an unexpected exception, not that a test failed. The actual failure message was out of sight one screen higher up, with output from a lot of other threads in between. The test should hopefully pass this time. It seems that the reason that they passed on OSX was simply that the |
AppVeyor 64 bit failed in
Seems totally unrelated? |
That is odd, and certainly unrelated. |
I'm a little amazed |
This rand test fails in approximately 0.025% of the runs. |
Thanks for the info, @rfourquet! |
Reinstate printing of :line Exprs
Btw am I right that this would be a candidate for back porting to Julia 0.4? The problem exists on 0.4 as well, and I'd consider this a straight bug fix. |
Line numbers in ASTs are nowadays often represented with
LineNumberNode
s, but this at least doesn't hold for macro arguments, which caused trouble in #15299, and is demonstrated by the examplewhich prints
This patch reinstates printing of
:line
expressions as it existed in Julia 0.3.An alternative (and maybe preferable?) fix would be to consistently present
LineNumberNode
s to the user instead.