Repository navigation
plugins: retry a failed load with a fresh component - #4076
Merged
bbedward merged 2 commits intoNov 2, 2026
Merged
Conversation
7 of 12 tasks
Member
|
/claude review |
Contributor
Claude reviewNo issues found. |
…d-load # Conflicts: # quickshell/Services/PluginService.qml # quickshell/tests/plugin-reload.test.mjs
purian23
pushed a commit
that referenced
this pull request
Nov 3, 2026
(cherry picked from commit 1507334)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
When a plugin component or its
startupCheckfails to compile, bump the plugin's component revision. Qt caches the compiled component per URL, failures included, so before this every later attempt at the same?revision=Ngot the old error back, even after the files were fixed. Now fixing the plugin and switching it back on loads it.It only does something when a load fails. Nothing changes for working plugins or at idle.
The test mock for
Qt.createComponentnow caches failures per URL like Qt does, and the new test covers both a broken widget and a brokenstartupCheck. It fails on master, and removing either of the two added lines fails the matching case.Type of change
Related issues
Fixes #4074
Screenshots / video
Plugin with a broken widget, file fixed, then toggled on again.
Before: the toggle stays off with the error that's no longer in the file.
After: it loads.
Tested on a live session: v2.0.0 with this patch, run through
DMS_SHELL_DIRon Hyprland. Without the patch,plugins enableafter the fix returnsPLUGIN_ENABLE_FAILED. With it,PLUGIN_ENABLE_SUCCESS.Checklist
I18n.tr()with translator context, reusing existing terms where possible (no new strings)make fmt, added/updated tests,make testpasses, andgo mod tidyis clean (no Go changes)make lint-qmlwith no new warningspython3 quickshell/tests/run-qml.pypasses (logic, qt, lock), and so do the prek hooks on the changed files.A good part of this change was written with an AI assistant, and it helped write this description. I reviewed and tested all of it and can explain every line.