drawio-desktop
drawio-desktop copied to clipboard
Unable to load plugin if opening a new project
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.
Plugins work fine after the first time restarting to take effect. But if opening another project or reopening the current project, plugins don't work. The board of plugins shows all is loaded, but the developer's tool doesn't list the folder plugins.
To Reproduce Steps to reproduce the behavior:
- Go to 'Extras'
- Click on 'plugin' and add any plugins (like text.js)
- Restart to take effect -> board list text.js | Adds Extras > Extract Text | develop tools list all plugins loaded (plugins/text.js)
- Close the project and open another project
- Click Extras > Plugin -> list text.js
- Click Extras -> Extract Text Not found
- Open develop tools -> plugins/text.js not loaded
Expected behavior A clear and concise description of what you expected to happen.
The plugin should work for all the projects after it's loaded. It's contradictory that the board shows the plugin loaded but it doesn't work. And it saves much time if it takes effect for all instead of just the current project.
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 22.0.2
Desktop (please complete the following information):
- OS: Windows
Additional context Add any other context about the problem here.
And you've enabled plugins in the command parameters to run desktop?
yes, here was the command I used.
'C:\Program Files\draw.io\draw.io.exe' --enable-plugins "d:\FDU\FDU-Course\docs\HW\02\HW-02-04.drawio.svg"
Unfortunately, we couldn't reproduce. Is there any errors in the developer tools?
I think plugin path may be not right. when you first added the plugin ,path is 'plugin/sql.js'; but when you restart app the plugin path is './plugin/sql.js'. now plugin cannot work, dev tool can not find plugin sql.js.
I think plugin path may be not right. when you first added the plugin ,path is 'plugin/sql.js'; but when you restart app the plugin path is './plugin/sql.js'. now plugin cannot work, dev tool can not find plugin sql.js.
Did you run the app with --enable-plugins parameter?
I think plugin path may be not right. when you first added the plugin ,path is 'plugin/sql.js'; but when you restart app the plugin path is './plugin/sql.js'. now plugin cannot work, dev tool can not find plugin sql.js.
Did you run the app with
--enable-pluginsparameter?
yes, I start app with command line with --enable-plugins parameter , but plugins can not work. The plugins only work in your first time, when you create new file plugin can not work.
I record a gif.
I think plugin path may be not right. when you first added the plugin ,path is 'plugin/sql.js'; but when you restart app the plugin path is './plugin/sql.js'. now plugin cannot work, dev tool can not find plugin sql.js.
Did you run the app with
--enable-pluginsparameter?yes, I start app with command line with
--enable-pluginsparameter , but plugins can not work. The plugins only work in your first time, when you create new file plugin can not work.
This is the problem I'm encountering. So I have to uninstall the plugin, then reload it and restart the software each time.
As a workaround, please try editing the shortcut and add --enable-plugins to the Target
As a workaround, please try editing the shortcut and add --enable-plugins to the Target
It is the same things as before.
As a workaround, please try editing the shortcut and add --enable-plugins to the Target
It is the same things as before.
What's your version, I cannot reproduce?
I resolved this by delete appdata cache. I think drawio can not load plugin because of app cache in windows.
@dzylikecode as the OP, what is the status of your issue?
I have not resolved it yet, and I am still using the approach I mentioned earlier.
Same thing.
Draw.io: v24.2.5 OS: Win11
Steps to reproduce:
- Add any plugin (e.g. "anon", as it's easy to see difference. it's adds menu item to "Extras").
- Get warning that changes will be applied after restart.
- Close the app. !Important! Do not run Draw.io by shortcut on desktop or start menu! Instead of that open some .drawio file.
- Plugin is works. But not so long.
- Close the app. Open some .drawio file again.
- Plugin is not works!
12.4.0

