forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
area-lintingbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug
Milestone
Description
Environment data
- VS Code version: 1.30.0
- Extension version (available under the Extensions sidebar): 2018.12.0
- OS and version: MacOS 10.14.2 (18C54)
- Python version (& distribution if applicable, e.g. Anaconda): python 3.6.6
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
- Relevant/affected Python packages and their versions:
pylint 2.2.2
astroid 2.0.4
Python 3.6.6 (default, Sep 17 2018, 16:44:58)
[GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.2)]
Extension infomation:
Name: Python
Id: ms-python.python
Description: Linting, Debugging (multi-threaded, remote), Intellisense, code formatting, refactoring, unit tests, snippets, and more.
Version: 2018.12.0
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-python.python
Expected behaviour
Pylint work as it was
Actual behaviour
Steps to reproduce:
- Upgrade vscode python extension to 2018.12.0
- open any python file
Logs
Starting Microsoft Python language server.
Linting with mypy failed.
TypeError: Converting circular structure to JSON
Linting with pylint failed.
TypeError: Converting circular structure to JSON
##########Linting Output - bandit##########
94,0,MEDIUM,B104:Possible binding to all interfaces.
173,0,LOW,B101:Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
188,0,LOW,B101:Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
189,0,LOW,B101:Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Microsoft Python Language Server version 0.1.72.0
Initializing for /Users/ruohan.chen/.pyenv/versions/vpc_test-3.6.6/bin/python
Output from Console
under the Developer Tools
panel (toggle Developer Tools on under Help
)
[Extension Host] [modelines] could not find TextEditor
console.ts:134 [Extension Host] Python Extension: There was an error in running the linter mypy TypeError: Converting circular structure to JSON
at JSON.stringify (<anonymous>)
at module.exports.t.ProcessService.getDefaultOptions (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:315447)
at module.exports.t.ProcessService.exec (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:314478)
at p.<anonymous> (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:326851)
at Generator.next (<anonymous>)
at module.exports.i (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:324782)
at new Promise (<anonymous>)
at module.exports.i (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:324559)
at p.execModule (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:326765)
at u.<anonymous> (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:328639)
at Generator.next (<anonymous>)
at s (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:327651)
at <anonymous>
t.log @ console.ts:134
notificationsAlerts.ts:40 There was an error in running the linter 'mypy'
t.onDidNotificationChange @ notificationsAlerts.ts:40
console.ts:134 [Extension Host] Python Extension: There was an error in running the linter pylint TypeError: Converting circular structure to JSON
at JSON.stringify (<anonymous>)
at module.exports.t.ProcessService.getDefaultOptions (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:315447)
at module.exports.t.ProcessService.exec (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:314478)
at p.<anonymous> (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:326851)
at Generator.next (<anonymous>)
at module.exports.i (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:324782)
at new Promise (<anonymous>)
at module.exports.i (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:324559)
at p.execModule (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:326765)
at u.<anonymous> (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:328639)
at Generator.next (<anonymous>)
at s (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:327651)
at <anonymous>
t.log @ console.ts:134
notificationsAlerts.ts:40 There was an error in running the linter 'pylint'
t.onDidNotificationChange @ notificationsAlerts.ts:40
console.ts:134 [Extension Host] [modelines] setting editor options: {}
DannyNemer, bmakan, potens1, ibeex, lpravda and 17 morekigawas
Metadata
Metadata
Assignees
Labels
area-lintingbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug