Skip to content

[Bug]: Can't enable the plugin #92

Closed

Description

@TMS-Namespace

Plugin version

2.2.2

Area

DankBar widget

Environment

Dux

Steps to reproduce

After updating the plugin, with your fix to my previous reported issue issue 89 I can't enable the plugin at all.

Expected behavior

It should be activated.

Actual behavior

Image Image

Local checks

Activity

  1. added
    bug
    on Oct 31, 2026
  2. bernardopg commented on Nov 1, 2026

    @bernardopg
    Owner

    Thanks for reporting this so quickly, @TMS-Namespace, and sorry: this one was caused by the previous release. It's fixed in v2.2.3.

    What happened. 2.2.1 added a new file, BarWindows.js, next to the widget. Qt's QML engine caches each plugin directory's file list the first time it loads the plugin, and keeps it for as long as the shell runs; DMS reuses that same engine when it updates, reloads or enables a plugin. So after updating with the shell running, the new file was missing from that stale list, Qt reported it as File name case mismatch, and the plugin could not be enabled until dms restart. I reproduced it exactly that way on a live DMS 2.0 session (2.2.0 running, update to 2.2.2 in-session, same error as your screenshot).

    The fix (#93). The module moved to lib/BarWindows.js. A running shell has never listed that directory, so it loads right after an update, and the plugin root has exactly the files it had in 2.2.0. A new test also keeps future modules out of directories a running shell has already seen, so this doesn't happen again.

    To get it working again, any one of these:

    1. Settings → Plugins → Check for updates to 2.2.3. DMS rescans the plugin after updating and it loads, no restart needed. I tested this on the same broken session that failed above.
    2. If you update with git pull, run dms ipc call plugin-scan rescan aiOverviewControl afterwards.
    3. dms restart always works.

    Just switching the plugin back on won't help while it's stuck: DMS retries the same cached failed load. That part is DMS behaviour, so use one of the steps above.

    If it still won't enable on 2.2.3 after one of those steps, please reopen this with the error text shown in Settings → Plugins and your qs --version. Thanks again for helping catch it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions