You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the Ruff extension in VSCode to automatically format Python files. However, I have noticed that when I encounter a severe syntax error while writing code, Ruff is unable to properly format any part of this file.
I would like to ask if this behavior is expected: that a severe syntax error in one place prevents Ruff from formatting all other parts of the file correctly?
Thank you for your assistance!
The text was updated successfully, but these errors were encountered:
Yes, this is the expected behavior. We may explore formatting files with syntax errors in the future but it isn't on our immediate roadmap.
Formatting files with syntax errors comes with its own challenges because the formatter should avoid changing your code to something you didn't intend. But we could try to at least format blocks that contain no syntax errors.
Hello,
I am using the Ruff extension in VSCode to automatically format Python files. However, I have noticed that when I encounter a severe syntax error while writing code, Ruff is unable to properly format any part of this file.
I would like to ask if this behavior is expected: that a severe syntax error in one place prevents Ruff from formatting all other parts of the file correctly?
Thank you for your assistance!
The text was updated successfully, but these errors were encountered: