-
Notifications
You must be signed in to change notification settings - Fork 434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Acode ignoring main, readme and icon fields in plugin manifest #1085
base: main
Are you sure you want to change the base?
Conversation
It fails to load existing plugins |
I will look into it |
I think problem is in plugin templates , as it points to So handle this as legacy one |
I noticed this issue too. That is why I was testing for the existence of |
0d3fc59
to
36feb17
Compare
The issue persists when loading previously published plugins; we need to implement a legacy solution to ensure compatibility. |
I tried it on a clean install and it works. On an update it fails to load previously installed plugins. |
To maintain compatibility, you can implement a simple check during the plugin load process. If the |
I have implemented a more comprehensive check with my latest push. If the file that the |
Oo that's nice . But there are errors when listing local files in sidebar (I have tried your latest commit) Edit: that was plugin issue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀
@alMukaafih |
It is most likely due to extra fs call (test for plugin.main) while loading the plugins. I will reimplement this test using try/catch |
I have reimplemented the test using try/catch but there in still an unavoidable call to load the
This will reduce the number of fs calls while loading plugins to just one. We could also defer the loading of plugins to after the Acode has fully opened so that Acode can open faster but could potentially break some plugins. |
Ok ! |
Yes, it's a critical problem |
No need |
It's working, but there is a issue: As when Acode failed to load plugins then it deletes that plugin. |
Is it while Acode is opening or when installing a plugin? |
Opening the Acode (for existing plugins which aren't patched) |
We can keep that fs call approach, as I have tested Acode by loading plugins after initialisation of Acode and it worked with a minimal changes : by applying theme and font after loading plugins |
Fix to Acode Ignoring main, readme and icon fields in plugin manifest (#1026)