-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
errors parsing nested quotes #513
Comments
@rjwalters In the logs Output > Black Formatter, it should have the exact version that is loaded by the extension. |
@rjwalters When you run You can also force the extension to use the |
Okay here is what I see for each import strategy:
vs
It doesn't seem like importStrategy gets me to the same black version that gets used in the terminal... I suppose this problem will go away when the extension updates the bundled black to 23.4.2+ |
@rjwalters This means that the With
Then reload. |
I ran into the same problem reported in #419 this morning related to parsing nested double quotes in formatted strings like
f"{"value"}"
.It was especially confusing because I was able to format the file without any issue using commands in the vscode terminal:
This sent me down a rabbit hole of trying to figure out how vscode was misconfigured.
I tried changing
black-formatter.importStrategy
to eitherfromEnvironment
oruseBundled
but both settings resulted in the same error message...How can I check which version of black the extension uses?
The text was updated successfully, but these errors were encountered: