Skip to content
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

autopep8 formatting on save doing nothing #590

Closed
alete89 opened this issue Jan 16, 2018 · 3 comments
Closed

autopep8 formatting on save doing nothing #590

alete89 opened this issue Jan 16, 2018 · 3 comments
Assignees
Labels
area-formatting bug Issue identified by VS Code Team member as probable bug
Milestone

Comments

@alete89
Copy link

alete89 commented Jan 16, 2018

Environment data

VS Code version: 1.19.2
Python Extension version: 0.9.1
Python Version: 2.7.14
OS and version: Win7 SP1

Actual behavior

  • have a file that needs formatting
  • have autopep8 installed
  • have "editor.formatOnSave": true in settings
  • do ctrl+s to save and watch "formatting with autopep8" in status bar
  • nothing happens

Expected behavior

  • code should be autoformatted with autopep8

Steps to reproduce:

awkward, same procedure in 2 aditional PCs installed from scratch just like this one, work as expected.

Logs

Output from Python output panel

##########Linting Output - pylint##########
No config file found, using default configuration
************* Module pruebalint
1,0,warning,W0301:Unnecessary semicolon
5,0,warning,W0301:Unnecessary semicolon
11,0,warning,W0301:Unnecessary semicolon
15,0,warning,W0311:Bad indentation. Found 5 spaces, expected 8
16,0,warning,W0311:Bad indentation. Found 5 spaces, expected 8
17,0,warning,W0311:Bad indentation. Found 20 spaces, expected 12
21,0,warning,W0311:Bad indentation. Found 20 spaces, expected 12
13,4,error,E0101:Explicit return in __init__

------------------------------------------------------------------
Your code has been rated at 2.00/10 (previous run: 2.00/10, +0.00)

Output from Console window (Help->Developer Tools menu)
image

console.ts:123 [Extension Host] (node:3612) DeprecationWarning: Calling an asynchronous function without callback is deprecated.
t.log @ console.ts:123
t._logExtensionHostMessage @ extensionHost.ts:391
(anonymous) @ extensionHost.ts:211
emitTwo @ events.js:106
emit @ events.js:194
process.nextTick @ internal/child_process.js:766
_combinedTickCallback @ internal/process/next_tick.js:73
_tickCallback @ internal/process/next_tick.js:104



@MikhailArkhipov
Copy link

I can repro

@MikhailArkhipov
Copy link

Most probably microsoft/vscode#41194.

@MikhailArkhipov
Copy link

94cd778

@lock lock bot locked as resolved and limited conversation to collaborators Jul 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-formatting bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

3 participants