-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
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
Pylint throws error "TypeError: Converting circular structure to JSON" when using pylint + any combination of other linters. #3700
Comments
Same issue |
I verified this bug and found that you can reproduce this issue with |
I have the same problem using flake8 and mypy which both fails the same way (but bandit not) but I don't use pylint. Only on version
|
In private getDefaultOptions<T extends (ShellOptions | SpawnOptions)>(options: T) : T {
const execOptions = options as SpawnOptions;
const defaultOptions = JSON.parse(JSON.stringify(options)); It fails because const safeOptions = Object.assign({}, options);
delete safeOptions.token
const defaultOptions = JSON.parse(JSON.stringify(safeOptions)); |
I just started having the same problem this morning.
|
It looks like PR #3702 would fix this |
A temporary fix is to disable all but one linter. In my case, setting |
Thanks for the clarification @matthieugouel, and the legwork @pierrecregut! (It was a sleepless night at 3am for me when I made my observation, so awesome to wake up to this info!) |
Environment data
Extension infomation:
Expected behaviour
Pylint work as it was
Actual behaviour
Steps to reproduce:
Logs
Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
)The text was updated successfully, but these errors were encountered: