Skip to content

Error message when formatting already formatted code? #1851

@NoraCodes

Description

@NoraCodes

I have Format On Save on in VSCode, and it is a reflex of mine to save a lot. Therefore, I often end up formatting already formatted code, and when I do, I get output like the following. Output from the tool automatically switches my bottom Toolbox view away from the Terminal or Problems tab, and is thus is quite annoying.

Request textDocument/formatting failed.
  Message: Reformat failed to complete successfully
  Code: -32603 

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugPanic, non-idempotency, invalid code, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions