You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using JuliaFormatter
format_text("Int <: B where {B} && Int <: C where {C}")
breaks the formatting but it's valid Julia syntax:
ERROR: Error while PARSING formatted text:1 Int B where {B} && Int <:Cwhere {C}
...
Error occurred on line 1, offset 36 of formatted text.
The error might not be precisely on this line but it should be in the region of the code block. Try commenting the region out and see if that removes the error.
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:35
[2] format_text(cst::CSTParser.EXPR, style::DefaultStyle, s::JuliaFormatter.State)
@ JuliaFormatter ~/.julia/packages/JuliaFormatter/ur5KV/src/JuliaFormatter.jl:314
[3] format_text(text::String, style::DefaultStyle, opts::JuliaFormatter.Options)
@ JuliaFormatter ~/.julia/packages/JuliaFormatter/ur5KV/src/JuliaFormatter.jl:243
[4] format_text(text::String, style::DefaultStyle; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ JuliaFormatter ~/.julia/packages/JuliaFormatter/ur5KV/src/JuliaFormatter.jl:215
[5] format_text
@ ~/.julia/packages/JuliaFormatter/ur5KV/src/JuliaFormatter.jl:212 [inlined]
[6] #format_text#250
@ ~/.julia/packages/JuliaFormatter/ur5KV/src/JuliaFormatter.jl:209 [inlined]
[7] format_text(text::String)
@ JuliaFormatter ~/.julia/packages/JuliaFormatter/ur5KV/src/JuliaFormatter.jl:208
[8] top-level scope
@ REPL[2]:1
The text was updated successfully, but these errors were encountered:
This
breaks the formatting but it's valid Julia syntax:
The text was updated successfully, but these errors were encountered: