-
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
Code snippet freezes pyright #4424
Comments
Thanks for the bug report. I've found the underlying cause, but I'm still working out a fix. The issue is that every time through the loop, a new |
… used within a loop construct. This addresses #4424.
I found a reasonable fix. This will be included in the next release. |
This is included in pyright 1.1.289, which I just published. It will also be included in a future release of pylance. |
Thanks for looking into and fixing this! |
Running pyright on the included code snippet causes pyright to run infinitely.
Describe the bug
Running pyright on the included code snippet causes pyright to run infinitely. The code itself has been minimised as much as possible, and is nonsensical.
To Reproduce
Put the code in a file and run
pyright
from the command line (uses pyright 1.1.287 on Arch Linux). Tested with Python 3.10.9 and Python 3.9.16.Expected behavior
pyright should finish running.
Screenshots or Code
VS Code extension or command-line
pyright 1.1.287 from the Arch Linux community/pyright 1.1.287-1
The text was updated successfully, but these errors were encountered: