Skip to content

Pylint in VSCode showing different output from running pylint in command line #728

Closed

Description

Environment data

VS Code version: 1.20.0
Python Extension version: 2018.1.0
Python Version: 2.7.10
OS and version: macOS High Sierra 10.13.3

Actual behavior

Errors being thrown by pylint in the extension differ greatly from those in the output of running pylint in the command line.

  • pylint in the command line uses current working environment to resolve imports from installed packages. Extension does not and is unable to import packages in the environment
  • pylint ignores print statements since installed python version is < 3. Extension throws errors at these statements

Most importantly, the extension was working FINE until the recent VSCode update

Expected behavior

Extension should follow be able to import packages installed in local environment, use local python version, have same output as pylint when run in command line and return to working as before

Steps to reproduce:

No clue

Logs

Output from Python output panel

##########Linting Output - pylint##########
************* Module pptgen.pptprocessor
7,0,error,E0401:Unable to import 'pptx'
8,0,error,E0401:Unable to import 'pptx.dml.color'
9,0,error,E0401:Unable to import 'pptx.util'
56,8,error,E1601:print statement used

------------------------------------------------------------------
Your code has been rated at 7.47/10 (previous run: 9.75/10, -2.28)

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

[Extension Host] Python Extension: Failed to get conda info from conda null
t.log @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:253
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

area-lintingbugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions