Closed RedX2501 closed 2 months ago
I think this is related to nested quotes in f strings and is fixed in newer Black (e.g. I can't repro a crash with Black 24.4.2)
The issue is this line:
print(f"Found {len(events)} events in the time range for calendars '{"', '".join(sub_calendar.name for sub_calendar in sub_calendars)}'.")
This uses syntax that was only added in Python 3.12 (PEP 701), and as @hauntsaninja said, recent versions of Black support this.
Yeah, that was it. Thank you.
Describe the bug
I installed the VS extensions and tried to format a file.
In the log output it said it can't format the file and told me to report the bug.
To Reproduce
For example, take this code:
I don't know the arguments the vs code extension runs it with.
This is the contents of the log file:
Expected behavior
The file is formatted.
Environment
Linux Ubuntu VSCode
Python Formatter