-
Notifications
You must be signed in to change notification settings - Fork 4
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
Runic.AssertionError: nb != span(node)
#15
Comments
Thanks for the report. Are you on windows? I think this might be fixed by JuliaLang/JuliaSyntax.jl#455 in that case. I asked for a new release earlier (JuliaLang/JuliaSyntax.jl#455 (comment)). |
Yeah, on Windows. I'll try it again once that's released and see. |
Could also be related to:
I haven't really understood how line endings are handled by git on Windows. |
That was just me running the test again for making the issue sorry, I should've cleared it. That shouldn't be related. |
Or I'm wrong and it is related sorry. Just tried it again PS C:\Users\danjv\.julia\dev\DelaunayTriangulation.jl> julia -e 'using Runic; exit(Runic.main(ARGS))' -- --inplace 'src/DelaunayTriangulation.jl'
Formatting `src/DelaunayTriangulation.jl` .................................... ✖
ERROR: Runic.AssertionError: `nb != span(node)`. This is unexpected, please file an issue with a reproducible example at https://github.com/fredrikekre/Runic.jl/issues/new.
Stacktrace:
[1] trim_trailing_whitespace(ctx::Runic.Context, node::Runic.Node)
@ Runic C:\Users\danjv\.julia\packages\Runic\pOBbp\src\runestone.jl:22
[2] format_node!(ctx::Runic.Context, node::Runic.Node)
@ Runic C:\Users\danjv\.julia\packages\Runic\pOBbp\src\Runic.jl:301
[3] format_node_with_kids!(ctx::Runic.Context, node::Runic.Node)
@ Runic C:\Users\danjv\.julia\packages\Runic\pOBbp\src\Runic.jl:233
[4] format_node!(ctx::Runic.Context, node::Runic.Node)
@ Runic C:\Users\danjv\.julia\packages\Runic\pOBbp\src\Runic.jl:325
[5] format_node_with_kids!(ctx::Runic.Context, node::Runic.Node)
@ Runic C:\Users\danjv\.julia\packages\Runic\pOBbp\src\Runic.jl:233
PS C:\Users\danjv\.julia\dev\DelaunayTriangulation.jl> julia -e 'using Runic; exit(Runic.main(ARGS))' -- --inplace 'src/test12.jl'
Formatting `src/test12.jl` ................................................... ✖
ERROR: Runic.AssertionError: `nb != span(node)`. This is unexpected, please file an issue with a reproducible example at https://github.com/fredrikekre/Runic.jl/issues/new.
Stacktrace:
[1] trim_trailing_whitespace(ctx::Runic.Context, node::Runic.Node)
@ Runic C:\Users\danjv\.julia\packages\Runic\pOBbp\src\runestone.jl:22
[2] format_node!(ctx::Runic.Context, node::Runic.Node)
@ Runic C:\Users\danjv\.julia\packages\Runic\pOBbp\src\Runic.jl:301
[3] format_node_with_kids!(ctx::Runic.Context, node::Runic.Node)
@ Runic C:\Users\danjv\.julia\packages\Runic\pOBbp\src\Runic.jl:233
[4] format_node!(ctx::Runic.Context, node::Runic.Node)
@ Runic C:\Users\danjv\.julia\packages\Runic\pOBbp\src\Runic.jl:325
[5] format_node_with_kids!(ctx::Runic.Context, node::Runic.Node)
@ Runic C:\Users\danjv\.julia\packages\Runic\pOBbp\src\Runic.jl:233 Wouldn't be the complete issue I think since it breaks on a bunch of other files in my repo that I hadn't touched with Git first (unless Git is doing weird things that I'm unaware of, which is possible). |
I can't reproduce this even if I change all |
Without this patch `\r\n\r\n` would be tokenized as `\r\n\r` and `\n` instead of `\r\n` and `\r\n`. Fixes fredrikekre/Runic.jl#15.
Without this patch `\r\n\r\n` would be tokenized as `\r\n\r` and `\n` instead of `\r\n` and `\r\n`. Fixes fredrikekre/Runic.jl#15.
Without this patch `\r\n\r\n` would be tokenized as `\r\n\r` and `\n` instead of `\r\n` and `\r\n`. Fixes fredrikekre/Runic.jl#15. (cherry picked from commit a11e664, PR #460)
Great tool! I tried it out on DelaunayTriangulation.jl but I get an assertion error:
I'm not sure I quite understand it. The contents of
src/DelaunayTriangulation.jl
is simplybut when I put this into a new file, say
test5.jl
(as I was trying to do when making a smaller MWE for this issue..), everything works:Any ideas what's going wrong here? The tool works on other files in the repo like
src/setup.jl
, although the same error shows forsrc/exports.jl
.The text was updated successfully, but these errors were encountered: