[Bug report] Uninstalling a plugin leaves it active until the Plugins screen is refreshed #2671
Replies: 1 comment
|
I traced this to the uninstall path: it removes the global plugin directory and updates the application-level plugin list, but it does not revalidate each site's I opened PR #2673 with a bounded fix. After the directory is removed, it runs the existing site-plugin-list validation for each valid site directory, so active and inactive references to the uninstalled plugin are removed immediately. It does not change plugin APIs, renderer behavior, or activation UI. The new regression covers active, inactive, unrelated, and malformed site configs. Both focused tests pass and the production bundle compiles. The full branch suite adds two passing tests; its three remaining This should make Preview/Sync safe immediately after uninstall without requiring a visit to Tools → Plugins. |
Uh oh!
There was an error while loading. Please reload this page.
Operating system
Windows 11
Publii version
0.47.9 Build 17481
Issue type
Application
Bug description
When a plugin is uninstalled, Publii appears to remove the plugin files but does not immediately remove the plugin from the site’s active plugin execution list.
If I click Preview immediately afterward, Publii attempts to load the removed plugin and displays an error in the log saying that the plugin cannot be found.
Expected behavior
Uninstalling a plugin should immediately remove it from the active plugin list, allowing Preview and Publish to run normally.
Actual behavior
The removed plugin remains referenced until the Tools → Plugins screen refreshes the plugin list.
Steps to reproduce
Relevant log output
No response
All reactions