microsoft / vscode-python

Python extension for Visual Studio Code
https://aka.ms/pvsc-marketplace
MIT License
4.33k stars 1.19k forks source link

PyLint checks wrong files #916

Closed osya closed 6 years ago

osya commented 6 years ago

Environment data

Actual behavior

On some my of Python projects in VS Code strange messages appears in Problems window: scr. What is the path git:...? After git: there is a correct path to the existing file, which contains in the current project. This file has no any PyLint issues. I can't clear up these wrong messages, only restart VS Code.

Expected behavior

There should not be pylint messages in the Problems window for files with paths started from git:

Steps to reproduce:

I don't know. It just appears sometimes in my several projects

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

##########Linting Output - pep8##########
##########Linting Output - pep8##########
##########Linting Output - pep8##########
##########Linting Output - pylint##########
##########Linting Output - pep8##########
##########Linting Output - pylint##########
##########Linting Output - pylint##########
##########Linting Output - pep8##########
##########Linting Output - pylint##########
No config file found, using default configuration
************* Module post.admin
1,0,convention,C0111:Missing module docstring
8,0,convention,C0111:Missing class docstring

------------------------------------------------------------------

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

##########Linting Output - pylint##########
Using config file e:\Work\web-frameworks\Python\Django\personal_website\.pylintrc

--------------------------------------------------------------------

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

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)

[C:\Users\info_000\.vscode\extensions\fknop.vscode-npm-3.3.0]: Command `npm-script.start` appears multiple times in the `commands` section.
/E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:4183 [C:\Users\info_000\.vscode\extensions\fknop.vscode-npm-3.3.0]: Command `npm-script.test` appears multiple times in the `commands` section.
/E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:4183 [C:\Users\info_000\.vscode\extensions\ms-python.python-2018.1.0]: Command `jupyter.runSelectionLine` appears multiple times in the `commands` section.
/E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:4183 [C:\Users\info_000\.vscode\extensions\ms-python.python-2018.1.0]: Command `jupyter.execCurrentCell` appears multiple times in the `commands` section.
/E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:4183 [C:\Users\info_000\.vscode\extensions\ms-python.python-2018.1.0]: Command `jupyter.execCurrentCellAndAdvance` appears multiple times in the `commands` section.
/E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:4183 [C:\Users\info_000\.vscode\extensions\ms-python.python-2018.1.0]: Command `jupyter.gotToPreviousCell` appears multiple times in the `commands` section.
/E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:4183 [C:\Users\info_000\.vscode\extensions\ms-python.python-2018.1.0]: Command `jupyter.gotToNextCell` appears multiple times in the `commands` section.
/E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1409 Ctrl+Alt+ keybindings should not be used by default under Windows. Offender:  e  for  jsonToTs.fromClipboard
e._assertNoCtrlAlt @ /E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1409
/E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1409 Ctrl+Alt+ keybindings should not be used by default under Windows. Offender:  e  for  jsonToTs.fromSelection
e._assertNoCtrlAlt @ /E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1409
/E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1409 Ctrl+Alt+ keybindings should not be used by default under Windows. Offender:  e  for  code-runner.run
e._assertNoCtrlAlt @ /E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1409
/E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1409 Ctrl+Alt+ keybindings should not be used by default under Windows. Offender:  e  for  code-runner.runCustomCommand
e._assertNoCtrlAlt @ /E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1409
/E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1409 Ctrl+Alt+ keybindings should not be used by default under Windows. Offender:  e  for  code-runner.runByLanguage
e._assertNoCtrlAlt @ /E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1409
/E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1409 Ctrl+Alt+ keybindings should not be used by default under Windows. Offender:  e  for  code-runner.stop
e._assertNoCtrlAlt @ /E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1409
/E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1409 Ctrl+Alt+ keybindings should not be used by default under Windows. Offender:  e  for  docthis.documentThis
e._assertNoCtrlAlt @ /E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1409
/E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1409 Ctrl+Alt+ keybindings should not be used by default under Windows. Offender:  e  for  hexdump.hexdumpOpen
e._assertNoCtrlAlt @ /E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1409
/E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1409 Ctrl+Alt+ keybindings should not be used by default under Windows. Offender:  e  for  hexdump.toggleEndian
e._assertNoCtrlAlt @ /E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1409
/E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:4183 [C:\Users\info_000\.vscode\extensions\xabikos.javascriptsnippets-1.5.0]: Unknown language in `contributes.JavaScriptSnippets.language`. Provided value: vue
R._logMessageInConsole @ /E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:4183
/E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:4183 [C:\Users\info_000\.vscode\extensions\xabikos.reactsnippets-1.7.0]: Unknown language in `contributes.ReactSnippets.language`. Provided value: jsx
R._logMessageInConsole @ /E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:4183
/E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:253 [Extension Host] TypeDefinition null
/E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:253 [Extension Host] Congratulations, your extension "angular2-switcher" is now active!
/E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:253 [Extension Host] vscode-icons is active!
/E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:253 [Extension Host] Sync : Connected with user : 'osya'
/E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:253 [Extension Host] onDidChangeConfiguration
/E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:253 [Extension Host] (node:25228) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
t.log @ /E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:253
/E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1306   ERR undefined
/E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1306   ERR SplitLinesCollection: attempt to access a 'newer' model: Error: SplitLinesCollection: attempt to access a 'newer' model
    at e._ensureValidState (file:///E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1097:726)
    at e.convertModelPositionToViewPosition (file:///E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1106:246)
    at e.convertModelPositionToViewPosition (file:///E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1096:706)
    at e._setPosition (file:///E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:704:656)
    at e.setPosition (file:///E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:704:911)
    at t.setWidgetPosition (file:///E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:701:1004)
    at t.layoutContentWidget (file:///E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1784:103)
    at t.layoutContentWidget (file:///E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1787:996)
    at e.update (file:///E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1867:611)
    at file:///E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1870:634
3/E:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:253 [Extension Host] onDidChangeConfiguration
MikhailArkhipov commented 6 years ago

https://github.com/Microsoft/vscode-python/commit/29a0caea60354ac24232bc038d1f5af23db29732