Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Yapf format sometimes doesn't work #418

Closed
@toplinuxsir

Description

@toplinuxsir

Environment data

VS Code version: 1.8.1
Python Extension version: 0.8
Python Version: 3.6.2
OS and version: windows 10

Actual behavior

yapf format not working occasionlly

Expected behavior

format the python source code

Steps to reproduce:

Set vscode format when save
and modify python source code when save

Logs

Output from Python output panel

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


workbench.main.js:sourcemap:10 spawn ctags ENOENT: Error: spawn ctags ENOENT
	at exports._errnoException (util.js:1050:11)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
	at onErrorNT (internal/child_process.js:367:16)
	at _combinedTickCallback (internal/process/next_tick.js:80:11)
	at process._tickCallback (internal/process/next_tick.js:104:9)
e.onUnexpectedError @ workbench.main.js:sourcemap:10
workbench.main.js:sourcemap:9 [Extension Host] (node:440) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
t.log @ workbench.main.js:sourcemap:9
9workbench.main.js:sourcemap:9 [Extension Host] (node:440) DeprecationWarning: Calling an asynchronous function without callback is deprecated.
t.log @ workbench.main.js:sourcemap:9
10workbench.main.js:sourcemap:9 [Extension Host] (node:440) DeprecationWarning: Calling an asynchronous function without callback is deprecated.
t.log @ workbench.main.js:sourcemap:9
t._logExtensionHostMessage @ workbench.main.js:sourcemap:9
(anonymous) @ workbench.main.js:sourcemap:9
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
workbench.main.js:sourcemap:9 [Extension Host] ApplicationInsights:Sender [Object]
t.log @ workbench.main.js:sourcemap:9
t._logExtensionHostMessage @ workbench.main.js:sourcemap:9
(anonymous) @ workbench.main.js:sourcemap:9
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

Metadata

Metadata

Labels

area-formattingbugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions