-
-
Notifications
You must be signed in to change notification settings - Fork 28
Closed
Description
@KristofferC , it seems like 860bdc6 and Tokenize@0.5.22 is failing JuliaFormatter.
Got tons of errors in CI
ERROR: MethodError: no method matching peekchar(::IOBuffer)
Closest candidates are:
peekchar(::Tokenize.Lexers.Lexer) at [...]/.julia/packages/Tokenize/8K64V/src/lexer.jl:138
peekchar(::CSTParser.ParseState) at [...]/.julia/packages/CSTParser/4YYbl/src/lexer.jl:66
Stacktrace:
[1] parse_string_or_cmd(ps::CSTParser.ParseState, prefixed::Bool)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/components/strings.jl:135
[2] parse_string_or_cmd
@ [...]/.julia/packages/CSTParser/4YYbl/src/components/strings.jl:25 [inlined]
[3] mLITERAL(ps::CSTParser.ParseState)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/spec.jl:88
[4] INSTANCE(ps::CSTParser.ParseState)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/spec.jl:183
[5] parse_expression(ps::CSTParser.ParseState, esc_on_error::Bool)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/CSTParser.jl:73
[6] parse_expression(ps::CSTParser.ParseState)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/CSTParser.jl:42
[7] macro expansion
@ [...]/.julia/packages/CSTParser/4YYbl/src/components/internals.jl:152 [inlined]
[8] macro expansion
@ [...]/.julia/packages/CSTParser/4YYbl/src/utils.jl:63 [inlined]
[9] parse_comma_sep(ps::CSTParser.ParseState, args::Vector{CSTParser.EXPR}, trivia::Vector{CSTParser.EXPR}, kw::Bool, block::Bool, istuple::Bool; insert_params_at::Int64)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/components/internals.jl:151
[10] macro expansion
@ [...]/.julia/packages/CSTParser/4YYbl/src/utils.jl:202 [inlined]
[11] parse_call(ps::CSTParser.ParseState, ret::CSTParser.EXPR, ismacro::Bool)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/components/internals.jl:138
[12] parse_call(ps::CSTParser.ParseState, ret::CSTParser.EXPR)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/components/internals.jl:112
[13] macro expansion
@ [...]/.julia/packages/CSTParser/4YYbl/src/utils.jl:88 [inlined]
[14] parse_compound(ps::CSTParser.ParseState, ret::CSTParser.EXPR)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/CSTParser.jl:123
[15] parse_compound_recur(ps::CSTParser.ParseState, ret::CSTParser.EXPR)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/CSTParser.jl:93
[16] parse_expression(ps::CSTParser.ParseState, esc_on_error::Bool)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/CSTParser.jl:87
[17] parse_expression(ps::CSTParser.ParseState)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/CSTParser.jl:42
[18] parse_block(ps::CSTParser.ParseState, ret::Vector{CSTParser.EXPR}, closers::Tuple{Tokenize.Tokens.Kind}, docable::Bool)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/components/internals.jl:20
[19] parse_block(ps::CSTParser.ParseState, ret::Vector{CSTParser.EXPR})
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/components/internals.jl:8
[20] parse_if(ps::CSTParser.ParseState, nested::Bool)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/components/keywords.jl:356
[21] parse_if(ps::CSTParser.ParseState, nested::Bool) (repeats 2 times)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/components/keywords.jl:351
[22] parse_if(ps::CSTParser.ParseState)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/components/keywords.jl:343
[23] macro expansion
@ [...]/.julia/packages/CSTParser/4YYbl/src/utils.jl:63 [inlined]
[24] parse_kw(ps::CSTParser.ParseState)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/components/keywords.jl:12
[25] parse_expression(ps::CSTParser.ParseState, esc_on_error::Bool)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/CSTParser.jl:51
[26] parse_expression(ps::CSTParser.ParseState)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/CSTParser.jl:42
[27] macro expansion
@ [...]/.julia/packages/CSTParser/4YYbl/src/utils.jl:123 [inlined]
[28] parse_operator_eq(ps::CSTParser.ParseState, ret::CSTParser.EXPR, op::CSTParser.EXPR)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/components/operators.jl:269
[29] parse_operator(ps::CSTParser.ParseState, ret::CSTParser.EXPR, op::CSTParser.EXPR)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/components/operators.jl:437
[30] parse_compound(ps::CSTParser.ParseState, ret::CSTParser.EXPR)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/CSTParser.jl:141
[31] parse_compound_recur(ps::CSTParser.ParseState, ret::CSTParser.EXPR)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/CSTParser.jl:93
[32] parse_expression(ps::CSTParser.ParseState, esc_on_error::Bool)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/CSTParser.jl:87
[33] parse_expression(ps::CSTParser.ParseState)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/CSTParser.jl:42
[34] parse_block(ps::CSTParser.ParseState, ret::Vector{CSTParser.EXPR}, closers::Tuple{Tokenize.Tokens.Kind}, docable::Bool)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/components/internals.jl:20
[35] parse_blockexpr(ps::CSTParser.ParseState, head::Symbol)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/components/keywords.jl:311
[36] macro expansion
@ [...]/.julia/packages/CSTParser/4YYbl/src/utils.jl:63 [inlined]
[37] parse_kw(ps::CSTParser.ParseState)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/components/keywords.jl:18
[38] parse_expression(ps::CSTParser.ParseState, esc_on_error::Bool)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/CSTParser.jl:51
[39] parse_expression(ps::CSTParser.ParseState)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/CSTParser.jl:42
[40] parse_doc(ps::CSTParser.ParseState)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/CSTParser.jl:220
[41] parse(ps::CSTParser.ParseState, cont::Bool)
@ CSTParser [...]/.julia/packages/CSTParser/4YYbl/src/CSTParser.jl:248
[42] format_text(text::String, style::DefaultStyle, opts::JuliaFormatter.Options)
@ JuliaFormatter [...]/.julia/packages/JuliaFormatter/GO2pp/src/JuliaFormatter.jl:526
[43] #format_text#206
@ [...]/.julia/packages/JuliaFormatter/GO2pp/src/JuliaFormatter.jl:522 [inlined]
[44] #format_text#205
@ [...]/.julia/packages/JuliaFormatter/GO2pp/src/JuliaFormatter.jl:516 [inlined]
[45] format_file(filename::String; overwrite::Bool, verbose::Bool, format_markdown::Bool, format_options::Base.Iterators.Pairs{Symbol, Bool, NTuple{13, Symbol}, NamedTuple{(:conditional_to_if, :align_struct_field, :align_assignment, :align_conditional, :short_to_long_function_def, :import_to_using, :annotate_untyped_fields_with_any, :whitespace_ops_in_indices, :always_for_in, :remove_extra_newlines, :whitespace_in_kwargs, :align_pair_arrow, :always_use_return), NTuple{13, Bool}}})
@ JuliaFormatter [...]/.julia/packages/JuliaFormatter/GO2pp/src/JuliaFormatter.jl:646
[46] (::JuliaFormatter.var"#211#214"{Base.Iterators.Pairs{Symbol, Bool, Tuple{Symbol}, NamedTuple{(:verbose,), Tuple{Bool}}}})(formatted_file::Bool, file::String)
@ JuliaFormatter [...]/.julia/packages/JuliaFormatter/GO2pp/src/JuliaFormatter.jl:730Metadata
Metadata
Assignees
Labels
No labels