-
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
Pylance spends too much time when using Pony ORM #1049
Comments
and Pony ORM version is 0.7.14 $ poetry show pony
name : pony
version : 0.7.14
description : Pony Object-Relational Mapper |
Thanks for the bug report. A similar problem was reported recently, and I added some additional internal caching to avoid duplicate type evaluation. With this additional caching, the analysis time goes from 562000ms down to 176ms! This fix will be in the next release of pylance. |
ok, wait for next release. |
This issue has been fixed in version 2021.3.2, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#202132-17-march-2021 |
I just tested it and it has solved the problem, thx
|
Environment data
Expected behaviour
Pylance analyses the file quickly
Actual behaviour
Pylance took close to 10 minutes to analyze, not sure if pylancer or Pony ORM is the cause
Logs
Code Snippet / Additional information
demo.py
I have tested that this issue is triggered when using the select() function
The text was updated successfully, but these errors were encountered: