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

Juliaformatter should print file when parsing fails #747

Open
oscardssmith opened this issue Aug 10, 2023 · 1 comment
Open

Juliaformatter should print file when parsing fails #747

oscardssmith opened this issue Aug 10, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@oscardssmith
Copy link
Contributor

When I try to format SciML/Sundials.jl#416 I get an error from

ps.errored && error("Parsing error for input occurred on line $line, offset: $offset")
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.

@domluna domluna added the bug Something isn't working label Aug 10, 2023
@domluna
Copy link
Owner

domluna commented Aug 13, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants