We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
init.py.zip
When I try to save the attached file I get the following error:
##########Linting Output - flake8########## Error: Invalid patch string: Skipped 1 files
No error and correct linting.
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
Python
Output
View
Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)
Console
Developer Tools
Help
[ms-python.python]Invalid patch string: Skipped 1 files e.$onExtensionRuntimeError @ mainThreadExtensionService.ts:43 t._doInvokeHandler @ rpcProtocol.ts:442 t._invokeHandler @ rpcProtocol.ts:427 t._receiveRequest @ rpcProtocol.ts:344 t._receiveOneMessage @ rpcProtocol.ts:274 (anonymous) @ rpcProtocol.ts:149 e.fire @ event.ts:140 a @ ipc.net.ts:105 n._socketDataListener @ ipc.net.ts:134 emitOne @ events.js:116 emit @ events.js:211 addChunk @ _stream_readable.js:263 readableAddChunk @ _stream_readable.js:250 Readable.push @ _stream_readable.js:208 onread @ net.js:594 mainThreadExtensionService.ts:44 Error: Invalid patch string: Skipped 1 files at diff_match_patch.patch_fromText (/Users/albireo/.vscode-insiders/extensions/ms-python.python-2018.9.0/out/client/common/editor.js:240:19) at EditorUtils.getWorkspaceEditsFromPatch (/Users/albireo/.vscode-insiders/extensions/ms-python.python-2018.9.0/out/client/common/editor.js:327:40) at SortImportsEditingProvider.<anonymous> (/Users/albireo/.vscode-insiders/extensions/ms-python.python-2018.9.0/out/client/providers/importSortProvider.js:80:41) at Generator.next (<anonymous>) at fulfilled (/Users/albireo/.vscode-insiders/extensions/ms-python.python-2018.9.0/out/client/providers/importSortProvider.js:13:58) at <anonymous>
The text was updated successfully, but these errors were encountered:
I can replicate this.
Sorry, something went wrong.
Case for me as well.
I got the same issue while sorting imports.
It seems to happen only for __init__.py files. Renaming the file (e.g. to foo.py) fix the issue and make me able to sort the imports.
__init__.py
foo.py
Closing, doesn't happen anymore with the file provided in the original comment.
No branches or pull requests
init.py.zip
Environment data
Actual behavior
When I try to save the attached file I get the following error:
Expected behavior
No error and correct linting.
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
)The text was updated successfully, but these errors were encountered: