joethei / obsidian-plantuml

Generate PlantUML Diagrams inside Obsidian.md
MIT License
368 stars 18 forks source link

Failed to enable plugin in 1.0 #43

Closed StevenGann closed 1 year ago

StevenGann commented 1 year ago

Describe the bug On startup Obsidian does not enable this plugin. Manually enabling on the list of installed plugins fails and shows a "Failed to enable plugin" toast. Going into the Community Plugin list and pressing the enable button there causes the same error, but the plugin enables and functions correctly despite the error.

To Reproduce Steps to reproduce the behavior:

  1. Install the latest Obsidian (1.0.3) on Windows or Linux
  2. Install the latest version of this plugin
  3. Attempt to enable the plugin
  4. See error in console
app.js:1 Plugin failure: obsidian-plantuml DOMException: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
    at r4.<anonymous> (app://obsidian.md/app.js:1:1032505)
    at app://obsidian.md/app.js:1:235201
    at Object.next (app://obsidian.md/app.js:1:235306)
    at a (app://obsidian.md/app.js:1:234045)

Expected behavior I expect the plugin to be enabled on startup.

Environment:

joethei commented 1 year ago

Can't reproduce, do you still face this issue?