Skip to content
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

Merged
merged 2 commits into from
Mar 13, 2024

Conversation

last-partizan
Copy link
Contributor

@last-partizan last-partizan commented Feb 24, 2024

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

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
@last-partizan
Copy link
Contributor Author

@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.

@tkrabel
Copy link
Contributor

tkrabel commented Feb 27, 2024

@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.

@ccordoba12
Copy link
Member

@tkrabel, are you ok with merging this one and release 1.10.1 while you try to find a better solution?

@ccordoba12 ccordoba12 changed the title fix(autoimport): Fix progress reporting Fix progress reporting with autoimport plugin Feb 27, 2024
@tkrabel
Copy link
Contributor

tkrabel commented Mar 1, 2024

@ccordoba12 yes that LGTM

@rodda-kyusu
Copy link

Was able to test this PR locally and confirmed that the issue present in #529 stopped occurring 🙌

@ccordoba12 ccordoba12 added this to the v1.10.1 milestone Mar 13, 2024
@ccordoba12 ccordoba12 added the bug Something isn't working label Mar 13, 2024
Copy link
Member

@ccordoba12 ccordoba12 left a 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!

@ccordoba12 ccordoba12 merged commit 4f6d7cb into python-lsp:develop Mar 13, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Autoimports: sqlite3.OperationalError: database is locked
4 participants