-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Formatting fails to update files due to path quoting issues #14078
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
Comments
Note: Issue #14054 seems to have the same problem, but nobody seems to have an answer. |
I'd be more than happy to help, if anyone told me how to. |
@DRACL10N #14054 was due to incorrect argument configuration provided by the user. In your case I would manually run the command:
and see if that returns the diff correctly. If there are any warnings are errors printed or if it takes too long then formatting will not work. If there are no errors or warnings, then please share your settings and if possible the repro code. |
@karthiknadig it gives me the exact same output as if I were to press Shift-Alt-F. It shows me where it would change something, but does nothing about it. |
At the very least it would be great to know what file in the extension tells VSCode how to run |
I have the same issue. Looking at the output console, I see this:
When running I want to add that this happens on project where everything was working before, without any changes to the virtual environment, and thus to the black version, so this is most likely due to a recent update. |
Thank you, I'm so glad to see I'm not alone. I'm thinking for a temporary fix we could find the file that tells VSCode to give |
@karthiknadig I would like to add the "needs PR" label to this please, as I've decided to do it myself |
@DRACL10N We investigate issues in order based on priority and severity, which includes the impact it has on your ability to use the extension to do productive work, and the number of people affected. If other users come forward and leave a comment demonstrating they are seeing/reproducing the problem then we will raise this issue's priority.
The way formatting works with VS Code is we use I believe the issue was caused by this change: 23725ab . I have already reverted this (#14108) in main (last week), and this should be out in the bug fix release (probably this week). |
Thank you |
Does this bug effect |
The formatting issue should be addressed in the latest version |
All is well, |
Uh oh!
There was an error while loading. Please reload this page.
Black seems to not be working, and initially I thought it was a bug in my code or something, but running
python -m black main.py
works just fine. What's happening?Environment data
python.languageServer
setting: JediExpected behaviour
Code to be formatted after running "Format Document" (Shift+Alt+F).
Actual behaviour
Black runs for a split second and nothing happens.
Steps to reproduce:
Logs
The text was updated successfully, but these errors were encountered: