-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Persistent storage data for plugins that also get synced #8080
Comments
Some links to discourse where this topic has already been mentioned https://discourse.joplinapp.org/t/feature-request-discussion-custom-api-metadata/2474/9 https://discourse.joplinapp.org/t/lets-add-the-possibility-to-plan-todo/20781/5 https://discourse.joplinapp.org/t/feature-request-custom-properties-for-notes/22574 |
I've added a requirement "Set a limit to how much data can be stored because storing too much either due to a bug or on purpose could cause issues with sync" Any suggestions on what that limit could be? |
I guess it depends if it should be entirely open or just designed for some plain text stuff. Do we want to allow BLOBs in there for example? Or should it all be human readable data? Would there be any real reason to go above 100kb of plaintext for example? That is already quite a lot of data if it was only text. |
Indexing resources for full-text search for instance. |
Is there an API which returns the syncdir location. Because I think that would be enough, at least for those options that use the local filesystem to store files. |
You could try something like |
😍 thanks! |
@laurent22 I've run I don't see the function defined in the P.S I worked around it by manually adding this in |
Oh that's right, the generator needs to be released |
Ok the generator should be up-to-date now with the latest types |
|
Hmm, that's not good, I'll check. Which version of Yeoman do you have? ( |
4.3.1 and using 3.1.1 I get
|
Maybe try to uninstall and reinstall the
And if it doesn't work either, try to remove
|
the issue persists. I take it you're not seeing it. nodejs version? v16.20.0 for me |
just tried 18.16.0 and 20.2.0 with the same results |
Looks like someone else had this error before |
Yes i think the generator needs to be updated to support the latest version of Yeoman |
@danielb2, the generator should be fixed now, please try updating it again and see if it works |
I've also added a function |
I'm getting this error now
I tried this too, but still persists I poked around reading a bit about yeoman etc, but I can't find anything that explains this error |
That's annoying, and unfortunately Yeoman's error reports are terrible. Could you try to enable the debug flag to see if it prints more errors? |
that was one of the things I tried after reading the docs (macos has a different debug command) but it availed me no info at all. I reviewed the generator and docs and I didn't find anything suspect at all that would cause this error. short of looking at the yeoman source code, I wouldn't know where to go from there. I can take a look later after work perhaps |
Yes they have some For the previous error I indeed fixed it by going through the Yeoman source code, which thankfully is all in one file and not minified. If you can add a few console statements here and there, you should find at what point it stops. Or maybe a search and replace to change all |
overview
currently there's no way for a plugin to persist data that will also get synched.
use-case
I've written a plugin to publish notes to gist. because I don't have persistent storage for the plugin across devices, I make a new gist for each note. It would be nice to be able to link a noteid to a gistid and store it across
implementation suggestion
I'd imagine something like (for osx)
$HOME/.config/joplin-desktop/plugins/io.github.jackgruber.backup/ where the plugin is sandboxed to only be able to write there, and then maybe a joplin.fs.read/write function to access the files there.
Spec
references
The text was updated successfully, but these errors were encountered: