-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Format Document not working (autopep8, python, vscode) #6495
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Please remove the above setting, and then select the required interpreter from the statusbar or using the command
@coldino Please create a separate issue if it still persists. |
@DonJayamanne I removed I just started removing each of my setting and was just left with:
Looks like the issue was in using Not really sure why that was causing the issue. Also, I'm a tad bit confused why the console log never showed this issue. |
Thanks for getting back. When you use In-place then no response is sent as the output, hence it's assumed that there's nothing to be formatted (i.e. code has already been formatted). Closing as this issue has been resolved. |
Thanks, @DonJayamanne. Could there be some additional checks to catch this issue? Possibly log in console with an error/warning? Or mention about this in the docs? |
Environment data
autopep8 1.4.4
pycodestyle: 2.5.0
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version #3977): Jedi Enabled is "checked" (so, True?)Expected behaviour
When I run "Format Document", the file is formatted.
Actual behaviour
When I run "Format Document", the file is not formatted.
Steps to reproduce:
Current Settings:
User Settings (showing only Python related settings):
Workspace Settings:
Extensions:
What I have already tried:
autopep8
is installed correctly to py2.7 :pip2 install --upgrade autopep8
/usr/local/lib/python2.7/site-packages/autopep8.py --max-line-length 60 --in-place --aggressive --aggressive test.py
python -m autopep8 --max-line-length 60 --in-place --aggressive --aggressive test.py
autopep8
imported in python interpreter is the same as the one pointing in vscodepython.formatting.autopep8Path
setting:Meanwhile,
Logs
The text was updated successfully, but these errors were encountered: