-
Notifications
You must be signed in to change notification settings - Fork 767
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
Maximum call stack size exceeded (Maybe file too big?) #1751
Comments
Thanks for reporting the problem. This type of crash represents an internal bug in the type checker. It shouldn't occur, even for large files. To diagnose this problem, we'll need a repro case. Does it occur in a piece of code that is checked in to a public repo? If so, I could clone the repo and repro it that way. If it's not in publicly-available code, could you try to find a minimal repro? That typically involves deleting code from the file until the problem goes away, then adding back the part that appears to lead to the crash. |
Hi Thank you for such a quick reply. I made a minimal reproduce repo in here (python 3.7 and 3.8), Hope this helps you find the problem. NOTE: maybe need to install the requirements |
Thanks for the quick repro case. I'm able to repro the error, and I'll investigate the cause. |
I've found and fixed the cause of the crash. The fix will be in the next release. |
Thank you very much! |
We'll keep the bug open until we publish the fix as part of the next pylance release. |
This issue has been fixed in version 2021.9.1, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#202191-8-september-2021 |
Environment data
Expected behaviour
autocomplete the class parameters.
Actual behaviour
I generate an ISA definition python file, It has a lot of code (about 15000 lines), yesterday autocomplete works very will but today the pylance can't autocomplete and raise the error message:
Logs
Python Language Server Log
Click to expand Log
Code Snippet / Additional information
The single isa class, whole file has many classes like this:
Click to expand Code
The text was updated successfully, but these errors were encountered: