Open myuanz opened 1 month ago
Hello, thanks for the report. The thing is that Blockman uses third party libraries for parsing/tokenizing, because VS Code does not give extensions access to the native AST tokens.
For Python language, Blockman uses dt-python-parser, which is not exactly optimized for finding block start-end locations (tokens), it tokenizes everything in the Python code. And maybe it is the reason that it overanalyzes the file and causes freezing.
I will try to implement other libraries (more optimized, or more stable libraries) for parsing/tokenizing in Blockman.
It seems to be caused by the excessive length of the PySide6 pyi files.
Environment data
Code Snippet
Repro Steps
https://github.com/myuanz/pylance-pyside-hang/assets/25359546/578d6f25-0d52-49b6-a3ce-ee4e4b658537
Expected behavior
F12 should smoothly switch between different class/function definitions without freezing.
Actual behavior
Ubuntu 23.10
, other softwares version is same to this issue.Logs
Pylance log link: https://github.com/myuanz/pylance-pyside-hang/blob/master/test2.log
I'm not sure how to view the Blockman log, but there seem to be some traces in the Pylance log: https://github.com/microsoft/pylance-release/issues/5847#issuecomment-2096598931