spaced-inbox icon indicating copy to clipboard operation
spaced-inbox copied to clipboard

Duplicate note text found! Please remove all duplicates and then re-import. ai-safety-inbox

Open Prague2049 opened this issue 2 years ago • 2 comments

I'm very interested in spaced-inbox notes. when I run python3 script.py in my terminal. I get the following feedback: Importing new notes from /Users/spaced-inbox/notes/inbox.txt... 1 new notes found... 1 notes were soft-deleted... done. Importing new notes from /Users/spaced-inbox/notes/ai-safety-inbox.txt... Duplicate note text found! Please remove all duplicates and then re-import. ai-safety-inbox

The notes I entered in inbox.txt are as follows: ====== This is the first note. The notes I entered in ai-safety-inbox.txt are as follows: ====== This is the second note.

Why Duplicate note text found?

Prague2049 avatar Sep 01 '23 12:09 Prague2049

Thanks for your interest!

What's happening here is that the stuff above the ====== in each file is considered a separate note (a note that consists of the empty string). So since it already found an empty note in inbox.txt, it's complaining that there's an identical (empty) note in ai-safety-inbox.txt. If you delete the ====== in at least one file, the import will succeed.

From a usability standpoint, this should be fixed at some point. But for now, not having to treat the empty-string-note as a special case and not having to mess around with the parsing algorithm are a slightly higher priority, so I'll leave this bug unfixed. But hopefully with the workaround above you'd still be willing to give the program another try.

riceissa avatar Sep 01 '23 18:09 riceissa

Thank you very much for your help! Evergreen notes are a very inspiring way to take notes.I've read quite a bit about it. I want to be able to actually use this method.

Prague2049 avatar Sep 02 '23 06:09 Prague2049