-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Pyright hanging a vscode process when analyzing requests library #82
Comments
Thanks for the bug report. Which version of the Pyright extension are you running? There was a bug in 1.0.15 that could explain this. It's fixed in 1.0.16. I'm not able to repro the problem with the latest version. |
@erictraut I am use last version of Pyright 1.0.16 and VS Code last version - 1.33.1 Pyright uses 100% a core of CPU and do not stopped: |
Ah, I was opening the stub file, and you were opening the implementation file. I'm now able to repro the problem. I'll dig into it and work on a fix. |
@erictraut Thank You! |
The bug is triggered by code in the requests module that performs the following:
This causes pyright to infer the type of v to be either I've added a partial fix that prevents infinite recursion in this particular case, but I'd like to find a more general fix. I'm going to leave this bug open until I've fully fixed the problem. |
I've fixed the underlying root cause of the problem in 1.0.24 |
fixed issue introduced by my previous fourslash changes where wild ca…
Describe the bug
Pyright hanging a vscode process when openned at vscode the requests library
To Reproduce
Create a new python file and import the requests library:
Then click CTRL + Left mouse click to open the requests library. After then a vscode process hangup.
The text was updated successfully, but these errors were encountered: