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

0.53.9 regression: error: --report requires --reporter to be specified #1703

Closed
ksuther opened this issue May 15, 2024 · 4 comments
Closed
Labels
bug fixed in develop bug/feature resolved in the develop branch

Comments

@ksuther
Copy link

ksuther commented May 15, 2024

We're seeing this new error after updating to 0.53.9. Looks like this was introduced by 88f6080.

Was this an intentional change for the way we're using it? Based on a quick reading of the commit it seems like it was trying to fix a different issue.

Invocation

swiftformat file.swift --config .swiftformat --output stdout --quiet

Output

error: --report requires --reporter to be specified.

Expected output

A formatted file

Workaround

Outputting a report to /dev/null works, but feels clunky.

--report /dev/null --reporter default
@djmango
Copy link

djmango commented May 15, 2024

Confirmed as well, running:

swiftformat stdin --output stdout --stdinpath ${INPUT}

Returns:
error: --report file must be specified when --output is stdout.

Implementing your workaround now, thanks.

@nicklockwood
Copy link
Owner

@ksuther this was not intentional, sorry - I'll get it fixed

@nicklockwood nicklockwood added bug fixed in develop bug/feature resolved in the develop branch labels May 17, 2024
@nicklockwood
Copy link
Owner

@ksuther @djmango this should be fixed in 0.53.10 - you'll also need to remove your workarounds before the next major release as --reporter default is now deprecated

@ksuther
Copy link
Author

ksuther commented May 18, 2024

Fixed here, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fixed in develop bug/feature resolved in the develop branch
Projects
None yet
Development

No branches or pull requests

3 participants