Skip to content

Adding custom plugin does not load in future sessions after first use of plugin. #1993

@slothoth

Description

@slothoth

Preflight Checklist

  • [x ] I agree to follow the Code of Conduct that this project adheres to.
  • [x ] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.

Describe the bug
A clear and concise description of what the bug is.
When developing new plugins on Windows, there is a fault where the plugin can only load the first time when rebooting draw.io.
To Reproduce
Steps to reproduce the behavior:

  1. Make a js test plugin with this code:
Draw.loadPlugin(function(ui) {
    console.log('Plugin initialized');
}
  1. Load the plugin by going to Extras>Plugins>Add>External Plugins>Select File and choose your file
  2. Close and relaunch drawio, making a new blank diagram. Check Help>DeveloperTools>Console and see the log message works
  3. Close and relaunch drawio a second time, making a new blank diagram. Check Help>DeveloperTools>Console and see the log message is not present, and so the plugin has not loaded. Open Extras>Plugins to see the plugin still shows as listed.

Expected behavior
A plugin that is added and says it is loaded in the dialog persists across sessions.

Screenshots
If applicable, add screenshots to help explain your problem.

draw.io version (In the Help->About menu of the draw.io editor):

  • draw.io version v26.0.9

Desktop (please complete the following information):

  • OS: Windows 10

Additional context
Add any other context about the problem here.
Done using a fresh install with default settings, beyond running with the --enable-plugins argument

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions