Skip to content
#

formatter

Here are 1,150 public repositories matching this topic...

prettier
black
jack1142
jack1142 commented Jun 8, 2021

Describe the bug

"EOF in multi-line statement" error is shown to the user as the raw tuple it was returned as, rather than in a nicely formatted message.

To Reproduce

For example:

  1. Take this (invalid) file:
print(
  1. Run Black on it with no arguments
  2. See a message with the EOF error being shown as a raw tuple representation:
error: cannot format test
clux
clux commented Oct 11, 2021

Good evening!
This is a feature request (AFAIKT there's no configuration option or duplicate issue for this).

In many cases where nightly rustfmt is applied by CI in public repositories, users will often run cargo fmt themselves directly or through their editor causing warnings arising from using the stable rustfmt where the nightly is required. E.g.:

$ cargo fmt
Warning

Improve this page

Add a description, image, and links to the formatter topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the formatter topic, visit your repo's landing page and select "manage topics."

Learn more