-
Notifications
You must be signed in to change notification settings - Fork 201
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
Fix progress reporting with autoimport plugin #530
Fix progress reporting with autoimport plugin #530
Conversation
This is temporary fix, until someone can make proper fix by resolving issue with thread, seems like it just hungs indefinitely instead of reporting progress. Also, this thread does not exit properly, and pylsp does not exit after editor is closed. Refs python-lsp#374
@tkrabel i'm tagging you, maybe you have better idea how to fix this. Was it working when you tested it? Right now seems like thread just hangs indefinitely and not exit. |
@last-partizan thanks for the git bisect and for tagging me. I did a unit an manual test to make sure everything worked, but I might have missed something. Making the progress report single threaded seems to be a good tactical fix. I will investigate how I can solve the issue without losing the non-blocking feature. |
@tkrabel, are you ok with merging this one and release 1.10.1 while you try to find a better solution? |
@ccordoba12 yes that LGTM |
Was able to test this PR locally and confirmed that the issue present in #529 stopped occurring 🙌 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution @last-partizan!
This is temporary fix, until someone can make proper fix by resolving issue with thread, seems like it just hungs indefinitely instead of reporting progress.
Also, this thread does not exit properly, and pylsp does not exit after editor is closed.
Fixes #529.
Refs #374