Skip to content
#

formatter

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

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
silvestrst
silvestrst commented Apr 12, 2021

Describe the bug

Nightly --file-lines feature description has creeped into the stable rustfmt --help. It is a minor thing but can be misleading. For example, the following description makes it seem like this is a valid option:

-h, --help [=TOPIC] Show this message or help about a specific topic:
                        `config` or `file-lines`

To Reproduce

rus

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