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 have the same issue. On Windows, I can't run autoflake if my vscode workspace location include any space.
For instance "C:\Users\Alessandro Work\Documents\Sources\MySuperProject\tools\test.py" is triggering the following error:
Failed to run autoflake.
Error: Stderr: 'c:\Users\Alessandro' is not recognized as an internal or external command,
operable program or batch file.
I think when building the final command line, the path to the file must be quoted.
Can confirm as well. Directory has spaces, autoflake is not happy.
D:\Windows Locations\Documents\Code\project\filepy
Failed to run autoflake. Error: Stderr: 'd:\Windows' is not recognized as an internal or external command, operable program or batch file.
Current Behavior
Raises the following errer:
Failed to run autoflake. Error: Stderr: [Errno 2] No such file or directory: 'Codes/1/a/cr/main.py'
The actual path is C:\Users\Creed\OneDrive\Schul-Dokumente\Programmieren\Python\Meine einzelnen Codes\1\a\cr\main.py and it contains spaces.
Expected Behavior
It works fine with C:\Users\Creed\OneDrive\Desktop\test.py, all unnecessary imports were removed.
Environment
It looks like there are no quotes around the path. I hope the solution is as easy as just adding those.
The text was updated successfully, but these errors were encountered: