maelchiotti / LocalMaterialNotes

Simple, local, material design notes
https://play.google.com/store/apps/details?id=com.maelchiotti.localmaterialnotes
GNU Affero General Public License v3.0
113 stars 7 forks source link

Export doesn't work #219

Open 1ycx opened 1 day ago

1ycx commented 1 day ago

On Pixel 7 (android 13) and Pixel 9 (android 14 AD1A.240905.004), I tried exporting notes to unencrypted json and it doesn't work. Setting up automatic export doesn't work either.

Any ideas on how to debug?

maelchiotti commented 1 day ago

Hi @1ycx, are you on the very latest version of the app (v1.7.1) that I released yesterday, or on v1.7.0?

1ycx commented 1 day ago

Yes, latest version (downloaded it today, 1.7.1). I also noticed this- after enabling Automatic export and selecting Directory (Settings->Backup->Automatic export->Directory), it doesn't change it there, continues displaying (/storage/emulated/0/Android/data/com.maelchiotti.localmaterialnotes/files/downloads/backups)

maelchiotti commented 17 hours ago

Mmh, weird, that version was supposed to improve exports aha, but maybe I made a mistake.

So when you do a manual JSON export, do you get the snack bar that says "The export was successful", or do you get a snack bar with an error message? Or do you get no snack bar at all?

itsmartashub commented 15 hours ago

Have the same issue. There's (error) snack for me only for markdown export: Invalid argument(s): Cannot handle u: true. But no any snack for JSON exports, tho

maelchiotti commented 15 hours ago

Ah yeah I know where this comes from, the encoder that converts notes to Markdown cannot handle underlines yet. Forgot to handle that case. I'll add a fix in the next release to ignore underlines until I find time to contribute to the editor library so they are supported.

But yeah JSON exports (and so auto exports) should work fine.

maelchiotti commented 9 hours ago

I too have the issue where sometimes the chosen folder for auto backups isn't registered - but not always, I'll investigate.

However manual exports work fine for me.

(Also JSON files end in .txt, probably a small mistake that will easily be fixed).

1ycx commented 9 hours ago

Mmh, weird, that version was supposed to improve exports aha, but maybe I made a mistake.

So when you do a manual JSON export, do you get the snack bar that says "The export was successful", or do you get a snack bar with an error message? Or do you get no snack bar at all?

No error or snack bar, No files are generated, .txt or .json, the folder is completely empty.

1ycx commented 8 hours ago

Looking at the logs, it seems that the file name is too long. Not sure what else is the issue. Screenshot_20241013-141905

1ycx commented 8 hours ago

Also, this is what I meant about the automatic export directory (even though the selected directory is something else)-

image