riceissa / spaced-inbox

A minimal spaced writing inbox
Creative Commons Zero v1.0 Universal
64 stars 3 forks source link

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

Open Prague2049 opened 10 months ago

Prague2049 commented 10 months ago

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?

riceissa commented 10 months ago

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.

Prague2049 commented 10 months ago

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.