Skip to content

Wait for Package Control to re-enable installed packages - #305

Merged
deathaxe merged 1 commit into
SublimeText:masterfrom
rchl:wait-for-in-process-packages
Oct 20, 2026
Merged

deathaxe merged 1 commit into
SublimeText:masterfrom
rchl:wait-for-in-process-packages

Conversation

@rchl

@rchl rchl commented Oct 19, 2026

Copy link
Copy Markdown
Member

Package Control disables packages while it installs them: it adds them to ignored_packages and in_process_packages, and removes them from both once the package is installed. The helper only checked that the packages' files exist and that the libraries are installed, so it could kill Sublime Text before Package Control re-enabled the packages. The tests then started with those packages still in ignored_packages. Package Control re-enables them on the next start, but by then a test may have already opened a file that needs them.

This happened in https://github.com/sublimelsp/LSP-bitbake/actions/runs/39312190764/job/118264362311 on Windows. The test run printed Package Control: Re-enabling 1 package after a Package Control operation was interrupted..., and the language server never started for a file whose syntax comes from the BitBake package. The same commit passed on Windows in another run.

check_packages now also waits until in_process_packages is empty. It's read through PackageDisabler.in_process_packages(), which takes the lock that Package Control holds while it saves both settings, so ignored_packages has also been saved by the time the list is empty.

Package Control disables packages while installing them and re-enables
them afterwards. The helper killed Sublime Text as soon as the packages
and libraries were installed, which could leave them in ignored_packages,
so that the tests started without them.
@deathaxe
deathaxe merged commit dbfa72c into SublimeText:master Oct 20, 2026
21 checks passed
@rchl
rchl deleted the wait-for-in-process-packages branch October 20, 2026 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants