JuliaFormatter.jl icon indicating copy to clipboard operation
JuliaFormatter.jl copied to clipboard

Juliaformatter should print file when parsing fails

Open oscardssmith opened this issue 1 year ago • 1 comments

When I try to format https://github.com/SciML/Sundials.jl/pull/416 I get an error from https://github.com/domluna/JuliaFormatter.jl/blob/fd4fae31aa67bcfedf6a2a22753ff8034e27de67/src/JuliaFormatter.jl#L684 which tells me the line and offset number, but not the file that failed parsing. Ideally, this would also print the offending line of text.

oscardssmith avatar Aug 10 '23 14:08 oscardssmith

if you use verbose=true, then it should print out the filename(s) so when the error occurs you can see which file it was formatting at the time

domluna avatar Aug 13 '23 23:08 domluna