Open Octogonapus opened 1 year ago
so its the same version but the error is only in the CI?
On Tue, Jun 6, 2023 at 4:39 PM :) @.***> wrote:
I've run into this parsing error during formatting that occurs when my format action runs in CI. When I run the same version of JuliaFormatter on what I think is the same code locally, I don't get an error.
Line 84, offset 4 is the end of the triple quote in this snippet if it helps:
Foo(2, 3)``` # backslashes since GitHub formatting is being difficult here"""function foo
Do you have any advice on how I can debug this further?
Julia v1.9.0 JuliaFormatter v1.0.33
┌ Warning: Error occurred during prettification │ line = 84 │ offset = 4 └ @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/JuliaFormatter.jl:694 [ Info: Error in formatting file /home/runner/work/redacted.jl/redacted.jl/source-repo/src/redacted.jl ┌ Warning: Error occurred during prettification │ line = 84 │ offset = 4 └ @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/JuliaFormatter.jl:694 ERROR: TaskFailedException
nested task error: TaskFailedException nested task error: Parsing error for input occurred on line 1, offset: 18 Stacktrace: [1] error(s::String) @ Base ./error.jl:35 [2] format_text(text::String, style::DefaultStyle, opts::JuliaFormatter.Options) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/JuliaFormatter.jl:684 [3] format_text @ ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:233 [inlined] [4] (::JuliaFormatter.var"#90#91"{JuliaFormatter.FormatRule{DefaultStyle}})(parser::CommonMark.Parser, block::CommonMark.Node) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:247 [5] process_inlines(parser::CommonMark.Parser, block::CommonMark.Node) @ CommonMark ~/.julia/packages/CommonMark/eJY7b/src/parsers/blocks.jl:412 [6] parse(parser::CommonMark.Parser, my_input::IOBuffer; kws::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}) @ CommonMark ~/.julia/packages/CommonMark/eJY7b/src/parsers/blocks.jl:446 [7] parse @ ~/.julia/packages/CommonMark/eJY7b/src/parsers/blocks.jl:426 [inlined] [8] #_#23 @ ~/.julia/packages/CommonMark/eJY7b/src/parsers/blocks.jl:451 [inlined] [9] Parser @ ~/.julia/packages/CommonMark/eJY7b/src/parsers/blocks.jl:451 [inlined] [10] #_#22 @ ~/.julia/packages/CommonMark/eJY7b/src/parsers/blocks.jl:450 [inlined] [11] Parser @ ~/.julia/packages/CommonMark/eJY7b/src/parsers/blocks.jl:450 [inlined] [12] format_docstring(style::DefaultStyle, state::JuliaFormatter.State, text::String) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:330 [13] #p_literal#96 @ ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:417 [inlined] [14] p_globalrefdoc(ds::DefaultStyle, cst::CSTParser.EXPR, s::JuliaFormatter.State) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:535 [15] pretty(ds::DefaultStyle, cst::CSTParser.EXPR, s::JuliaFormatter.State; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:75 [16] pretty(ds::DefaultStyle, cst::CSTParser.EXPR, s::JuliaFormatter.State) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:2 [17] p_block(ds::DefaultStyle, cst::CSTParser.EXPR, s::JuliaFormatter.State; ignore_single_line::Bool, from_quote::Bool, join_body::Bool) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:726 [18] p_block(ds::DefaultStyle, cst::CSTParser.EXPR, s::JuliaFormatter.State) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:711 [19] pretty(ds::DefaultStyle, cst::CSTParser.EXPR, s::JuliaFormatter.State; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:23 [20] pretty(ds::DefaultStyle, cst::CSTParser.EXPR, s::JuliaFormatter.State) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:2 [21] p_module(ds::DefaultStyle, cst::CSTParser.EXPR, s::JuliaFormatter.State) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:979 [22] pretty(ds::DefaultStyle, cst::CSTParser.EXPR, s::JuliaFormatter.State; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:25 [23] pretty(ds::DefaultStyle, cst::CSTParser.EXPR, s::JuliaFormatter.State) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:2 [24] p_file(ds::DefaultStyle, cst::CSTParser.EXPR, s::JuliaFormatter.State) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:171 [25] pretty(ds::DefaultStyle, cst::CSTParser.EXPR, s::JuliaFormatter.State; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:145 [26] pretty @ ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:2 [inlined] [27] format_text(cst::CSTParser.EXPR, style::DefaultStyle, s::JuliaFormatter.State) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/JuliaFormatter.jl:691 [28] format_text(text::String, style::DefaultStyle, opts::JuliaFormatter.Options) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/JuliaFormatter.jl:686 [29] format_text(text::String, style::DefaultStyle; kwargs::Base.Pairs{Symbol, Integer, NTuple{4, Symbol}, NamedTuple{(:format_docstrings, :remove_extra_newlines, :margin, :config_applied), Tuple{Bool, Bool, Int64, Bool}}}) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/JuliaFormatter.jl:658 [30] format_text @ ~/.julia/packages/JuliaFormatter/Rr7Gl/src/JuliaFormatter.jl:655 [inlined] [31] #format_text#242 @ ~/.julia/packages/JuliaFormatter/Rr7Gl/src/JuliaFormatter.jl:652 [inlined] [32] format_text @ ~/.julia/packages/JuliaFormatter/Rr7Gl/src/JuliaFormatter.jl:651 [inlined] [33] _format_file(filename::String; overwrite::Bool, verbose::Bool, format_markdown::Bool, format_options::Base.Pairs{Symbol, Integer, NTuple{4, Symbol}, NamedTuple{(:format_docstrings, :remove_extra_newlines, :margin, :config_applied), Tuple{Bool, Bool, Int64, Bool}}}) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/JuliaFormatter.jl:777 [34] format(path::String, options::JuliaFormatter.Configuration) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/JuliaFormatter.jl:922 [35] macro expansion @ ~/.julia/packages/JuliaFormatter/Rr7Gl/src/JuliaFormatter.jl:907 [inlined] [36] (::JuliaFormatter.var"#160#threadsfor_fun#258"{JuliaFormatter.var"#160#threadsfor_fun#255#259"{String, Base.Threads.Atomic{Bool}, Vector{String}}})(tid::Int64; onethread::Bool) @ JuliaFormatter ./threadingconstructs.jl:163 [37] #160#threadsfor_fun @ ./threadingconstructs.jl:130 [inlined] [38] (::Base.Threads.var"#1#2"{JuliaFormatter.var"#160#threadsfor_fun#258"{JuliaFormatter.var"#160#threadsfor_fun#255#259"{String, Base.Threads.Atomic{Bool}, Vector{String}}}, Int64})() @ Base.Threads ./threadingconstructs.jl:108 caused by: Parsing error for input occurred on line 1, offset: 18 Stacktrace: [1] error(s::String) @ Base ./error.jl:35 [2] format_text(text::String, style::DefaultStyle, opts::JuliaFormatter.Options) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/JuliaFormatter.jl:684 [3] format_text @ ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:233 [inlined] [4] (::JuliaFormatter.var"#90#91"{JuliaFormatter.FormatRule{DefaultStyle}})(parser::CommonMark.Parser, block::CommonMark.Node) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:247 [5] process_inlines(parser::CommonMark.Parser, block::CommonMark.Node) @ CommonMark ~/.julia/packages/CommonMark/eJY7b/src/parsers/blocks.jl:412 [6] parse(parser::CommonMark.Parser, my_input::IOBuffer; kws::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}) @ CommonMark ~/.julia/packages/CommonMark/eJY7b/src/parsers/blocks.jl:446 [7] parse @ ~/.julia/packages/CommonMark/eJY7b/src/parsers/blocks.jl:426 [inlined] [8] #_#23 @ ~/.julia/packages/CommonMark/eJY7b/src/parsers/blocks.jl:451 [inlined] [9] Parser @ ~/.julia/packages/CommonMark/eJY7b/src/parsers/blocks.jl:451 [inlined] [10] #_#22 @ ~/.julia/packages/CommonMark/eJY7b/src/parsers/blocks.jl:450 [inlined] [11] Parser @ ~/.julia/packages/CommonMark/eJY7b/src/parsers/blocks.jl:450 [inlined] [12] format_docstring(style::DefaultStyle, state::JuliaFormatter.State, text::String) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:330 [13] #p_literal#96 @ ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:417 [inlined] [14] p_globalrefdoc(ds::DefaultStyle, cst::CSTParser.EXPR, s::JuliaFormatter.State) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:535 [15] pretty(ds::DefaultStyle, cst::CSTParser.EXPR, s::JuliaFormatter.State; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:75 [16] pretty(ds::DefaultStyle, cst::CSTParser.EXPR, s::JuliaFormatter.State) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:2 [17] p_block(ds::DefaultStyle, cst::CSTParser.EXPR, s::JuliaFormatter.State; ignore_single_line::Bool, from_quote::Bool, join_body::Bool) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:726 [18] p_block(ds::DefaultStyle, cst::CSTParser.EXPR, s::JuliaFormatter.State) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:711 [19] pretty(ds::DefaultStyle, cst::CSTParser.EXPR, s::JuliaFormatter.State; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:23 [20] pretty(ds::DefaultStyle, cst::CSTParser.EXPR, s::JuliaFormatter.State) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:2 [21] p_module(ds::DefaultStyle, cst::CSTParser.EXPR, s::JuliaFormatter.State) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:979 [22] pretty(ds::DefaultStyle, cst::CSTParser.EXPR, s::JuliaFormatter.State; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:25 [23] pretty(ds::DefaultStyle, cst::CSTParser.EXPR, s::JuliaFormatter.State) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:2 [24] p_file(ds::DefaultStyle, cst::CSTParser.EXPR, s::JuliaFormatter.State) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:171 [25] pretty(ds::DefaultStyle, cst::CSTParser.EXPR, s::JuliaFormatter.State; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:145 [26] pretty @ ~/.julia/packages/JuliaFormatter/Rr7Gl/src/styles/default/pretty.jl:2 [inlined] [27] format_text(cst::CSTParser.EXPR, style::DefaultStyle, s::JuliaFormatter.State) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/JuliaFormatter.jl:691 [28] format_text(text::String, style::DefaultStyle, opts::JuliaFormatter.Options) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/JuliaFormatter.jl:686 [29] format_text(text::String, style::DefaultStyle; kwargs::Base.Pairs{Symbol, Integer, NTuple{4, Symbol}, NamedTuple{(:format_docstrings, :remove_extra_newlines, :margin, :config_applied), Tuple{Bool, Bool, Int64, Bool}}}) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/JuliaFormatter.jl:658 [30] format_text @ ~/.julia/packages/JuliaFormatter/Rr7Gl/src/JuliaFormatter.jl:655 [inlined] [31] #format_text#242 @ ~/.julia/packages/JuliaFormatter/Rr7Gl/src/JuliaFormatter.jl:652 [inlined] [32] format_text @ ~/.julia/packages/JuliaFormatter/Rr7Gl/src/JuliaFormatter.jl:651 [inlined] [33] _format_file(filename::String; overwrite::Bool, verbose::Bool, format_markdown::Bool, format_options::Base.Pairs{Symbol, Integer, NTuple{4, Symbol}, NamedTuple{(:format_docstrings, :remove_extra_newlines, :margin, :config_applied), Tuple{Bool, Bool, Int64, Bool}}}) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/JuliaFormatter.jl:777 [34] format(path::String, options::JuliaFormatter.Configuration) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/JuliaFormatter.jl:918 [35] macro expansion @ ~/.julia/packages/JuliaFormatter/Rr7Gl/src/JuliaFormatter.jl:907 [inlined] [36] (::JuliaFormatter.var"#160#threadsfor_fun#258"{JuliaFormatter.var"#160#threadsfor_fun#255#259"{String, Base.Threads.Atomic{Bool}, Vector{String}}})(tid::Int64; onethread::Bool) @ JuliaFormatter ./threadingconstructs.jl:163 [37] #160#threadsfor_fun @ ./threadingconstructs.jl:130 [inlined] [38] (::Base.Threads.var"#1#2"{JuliaFormatter.var"#160#threadsfor_fun#258"{JuliaFormatter.var"#160#threadsfor_fun#255#259"{String, Base.Threads.Atomic{Bool}, Vector{String}}}, Int64})() @ Base.Threads ./threadingconstructs.jl:108 Stacktrace: [1] threading_run(fun::JuliaFormatter.var"#160#threadsfor_fun#258"{JuliaFormatter.var"#160#threadsfor_fun#255#259"{String, Base.Threads.Atomic{Bool}, Vector{String}}}, static::Bool) @ Base.Threads ./threadingconstructs.jl:120 [2] macro expansion @ ./threadingconstructs.jl:168 [inlined] [3] format(path::String, options::JuliaFormatter.Configuration) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/JuliaFormatter.jl:905 [4] macro expansion @ ~/.julia/packages/JuliaFormatter/Rr7Gl/src/JuliaFormatter.jl:907 [inlined] [5] (::JuliaFormatter.var"#160#threadsfor_fun#258"{JuliaFormatter.var"#160#threadsfor_fun#255#259"{String, Base.Threads.Atomic{Bool}, Vector{String}}})(tid::Int64; onethread::Bool) @ JuliaFormatter ./threadingconstructs.jl:163 [6] #160#threadsfor_fun @ ./threadingconstructs.jl:130 [inlined] [7] (::Base.Threads.var"#1#2"{JuliaFormatter.var"#160#threadsfor_fun#258"{JuliaFormatter.var"#160#threadsfor_fun#255#259"{String, Base.Threads.Atomic{Bool}, Vector{String}}}, Int64})() @ Base.Threads ./threadingconstructs.jl:108
Stacktrace: [1] threading_run(fun::JuliaFormatter.var"#160#threadsfor_fun#258"{JuliaFormatter.var"#160#threadsfor_fun#255#259"{String, Base.Threads.Atomic{Bool}, Vector{String}}}, static::Bool) @ Base.Threads ./threadingconstructs.jl:120 [2] macro expansion @ ./threadingconstructs.jl:168 [inlined] [3] format(path::String, options::JuliaFormatter.Configuration) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/JuliaFormatter.jl:905 [4] #format#252 @ ~/.julia/packages/JuliaFormatter/Rr7Gl/src/JuliaFormatter.jl:888 [inlined] [5] format(path::String) @ JuliaFormatter ~/.julia/packages/JuliaFormatter/Rr7Gl/src/JuliaFormatter.jl:888 [6] top-level scope @ none:1
Full manifest used to run JuliaFormatter:
[00ebfdb7] + CSTParser v3.3.6 [a80b9123] + CommonMark v0.8.12 [34da2185] + Compat v4.6.1 [a8cc5b0e] + Crayons v4.1.1 [864edb3b] + DataStructures v0.18.13 [c27321d9] + Glob v1.3.1 [682c06a0] + JSON v0.21.4 [98e50ef6] + JuliaFormatter v1.0.33 [bac558e1] + OrderedCollections v1.6.0 [69de0a69] + Parsers v2.5.10 [aea7be01] + PrecompileTools v1.1.2 [21216c6a] + Preferences v1.4.0 [0796e94c] + Tokenize v0.5.25 [5c2747f8] + URIs v1.4.2 [0dad84c5] + ArgTools v1.1.1 [56f22d72] + Artifacts [2a0f44e3] + Base64 [ade2ca70] + Dates [f43a241f] + Downloads v1.6.0 [7b1f6079] + FileWatching [b77e0a4c] + InteractiveUtils [b27032c2] + LibCURL v0.6.3 [76f85450] + LibGit2 [8f399da3] + Libdl [56ddb016] + Logging [d6f4376e] + Markdown [a63ad114] + Mmap [ca575930] + NetworkOptions v1.2.0 [44cfe95a] + Pkg v1.9.0 [de0858da] + Printf [3fa0cd96] + REPL [9a3f8284] + Random [ea8e919c] + SHA v0.7.0 [9e88b42a] + Serialization [6462fe0b] + Sockets [fa267f1f] + TOML v1.0.3 [a4e569a6] + Tar v1.10.0 [cf7118a7] + UUIDs [4ec0a83e] + Unicode [deac9b47] + LibCURL_jll v7.84.0+0 [29816b5a] + LibSSH2_jll v1.10.2+0 [c8ffd9c3] + MbedTLS_jll v2.28.2+0 [14a3606d] + MozillaCACerts_jll v2022.10.11 [83775a58] + Zlib_jll v1.2.13+0 [8e850ede] + nghttp2_jll v1.48.0+0 [3f19e933] + p7zip_jll v17.4.0+0
— Reply to this email directly, view it on GitHub https://github.com/domluna/JuliaFormatter.jl/issues/731, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAORUFYHM37RO3WBJGFCXYDXJ6IO3ANCNFSM6AAAAAAY453ZJI . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Correct. I've replicated my CI setup locally, and the error happens only in CI.
Locally:
(@v1.9) pkg> activate --temp
Activating new project at `/tmp/jl_Xofo4f`
(jl_Xofo4f) pkg> add JuliaFormatter
Resolving package versions...
Updating `/tmp/jl_Xofo4f/Project.toml`
[98e50ef6] + JuliaFormatter v1.0.33
Updating `/tmp/jl_Xofo4f/Manifest.toml`
[00ebfdb7] + CSTParser v3.3.6
[a80b9123] + CommonMark v0.8.12
[34da2185] + Compat v4.6.1
[a8cc5b0e] + Crayons v4.1.1
[864edb3b] + DataStructures v0.18.13
[c27321d9] + Glob v1.3.1
[682c06a0] + JSON v0.21.4
[98e50ef6] + JuliaFormatter v1.0.33
[bac558e1] + OrderedCollections v1.6.0
[69de0a69] + Parsers v2.5.10
[aea7be01] + PrecompileTools v1.1.2
[21216c6a] + Preferences v1.4.0
[0796e94c] + Tokenize v0.5.25
[5c2747f8] + URIs v1.4.2
[0dad84c5] + ArgTools v1.1.1
[56f22d72] + Artifacts
[2a0f44e3] + Base64
[ade2ca70] + Dates
[f43a241f] + Downloads v1.6.0
[7b1f6079] + FileWatching
[b77e0a4c] + InteractiveUtils
[b27032c2] + LibCURL v0.6.3
[76f85450] + LibGit2
[8f399da3] + Libdl
[56ddb016] + Logging
[d6f4376e] + Markdown
[a63ad114] + Mmap
[ca575930] + NetworkOptions v1.2.0
[44cfe95a] + Pkg v1.9.0
[de0858da] + Printf
[3fa0cd96] + REPL
[9a3f8284] + Random
[ea8e919c] + SHA v0.7.0
[9e88b42a] + Serialization
[6462fe0b] + Sockets
[fa267f1f] + TOML v1.0.3
[a4e569a6] + Tar v1.10.0
[cf7118a7] + UUIDs
[4ec0a83e] + Unicode
[deac9b47] + LibCURL_jll v7.84.0+0
[29816b5a] + LibSSH2_jll v1.10.2+0
[c8ffd9c3] + MbedTLS_jll v2.28.2+0
[14a3606d] + MozillaCACerts_jll v2022.10.11
[83775a58] + Zlib_jll v1.2.13+0
[8e850ede] + nghttp2_jll v1.48.0+0
[3f19e933] + p7zip_jll v17.4.0+0
julia> using JuliaFormatter
julia> format("./")
true
hmm either the CI script issue or github itself
On Tue, Jun 6, 2023 at 4:46 PM :) @.***> wrote:
Correct. I've replicated my CI setup locally, and the error happens only in CI.
— Reply to this email directly, view it on GitHub https://github.com/domluna/JuliaFormatter.jl/issues/731#issuecomment-1579424353, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAORUFZQTW5OQUK3AF2G6W3XJ6JKJANCNFSM6AAAAAAY453ZJI . You are receiving this because you commented.Message ID: @.***>
I've managed to reproduce it locally. Here are some cases where the error happens:
module foo
"""
```julia
"""
function a() end
end
```julia
module foo
"""
```julia-repl
julia> Base.@kwdef struct Foo
x::Int
y::Int
end
"""
function a() end
end
And some cases where the error does not happen:
```julia
module foo
"""
```julia
1
"""
function a() end
end
```julia
module foo
"""
```julia-repl
julia> 1
1
"""
function a() end
end
what are your options set to?
margin = 120
remove_extra_newlines = true
format_docstrings = true
I've run into this parsing error during formatting that occurs when my format action runs in CI. When I run the same version of JuliaFormatter on what I think is the same code locally, I don't get an error.
Line 84, offset 4 is the end of the triple quote in this snippet if it helps:
Do you have any advice on how I can debug this further?
Julia v1.9.0 JuliaFormatter v1.0.33
Full manifest used to run JuliaFormatter: