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

Makie file is not parseable by JuliaSyntax.jl? #492

Closed
Sixzero opened this issue Aug 10, 2024 · 1 comment
Closed

Makie file is not parseable by JuliaSyntax.jl? #492

Sixzero opened this issue Aug 10, 2024 · 1 comment

Comments

@Sixzero
Copy link

Sixzero commented Aug 10, 2024

The file:
~/.julia/packages/Makie/rEu75/src/Makie.jl:68:35
An MVP:

ex = JuliaSyntax.parsestmt(JuliaSyntax.SyntaxNode, """
using IntervalSets: IntervalSets, (..), OpenInterval, ClosedInterval, AbstractInterval, Interval, endpoints, leftendpoint, rightendpoint
""")

Error:

ERROR: ParseError:
# Warning @ line 1:35
using IntervalSets: IntervalSets, (..), OpenInterval, ClosedInterval, AbstractInterval, Interval, endpoints, leftendpoint, rightendpoint
#                                 └──┘ ── parentheses are not required here
Stacktrace:
 [1] _parse(rule::Symbol, need_eof::Bool, ::Type{…}, text::String, index::Int64; version::VersionNumber, ignore_trivia::Bool, filename::Nothing, first_line::Int64, ignore_errors::Bool, ignore_warnings::Bool, kws::@Kwargs{})
   @ JuliaSyntax ~/.julia/packages/JuliaSyntax/q0tWf/src/parser_api.jl:93
 [2] _parse (repeats 2 times)
   @ ~/.julia/packages/JuliaSyntax/q0tWf/src/parser_api.jl:77 [inlined]
 [3] parsestmt(::Type{SyntaxNode}, text::String)
   @ JuliaSyntax ~/.julia/packages/JuliaSyntax/q0tWf/src/parser_api.jl:140

I guess every file should be parseable by JuliaSyntax.

@Sixzero
Copy link
Author

Sixzero commented Aug 10, 2024

I guess it is solved.
https://discourse.julialang.org/t/is-this-makie-file-not-parseable-by-juliasyntax-jl/117997
I just realised
gonna close this.

@Sixzero Sixzero closed this as completed Aug 10, 2024
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

1 participant