ttscoff / nv

MultiMarkdown version of Notational Velocity with Markdown editing features and preview
http://brettterpstra.com/projects/nvalt
BSD 3-Clause "New" or "Revised" License
1.77k stars 198 forks source link

nvALT claims to be syncing more notes than I have #430

Open shimstu opened 7 years ago

shimstu commented 7 years ago

Often when I wake up my macbook, nvALT says it is syncing >2900 notes, yet I only have <1600 notes in my system. I'm syncing with Simplenote and keeping the notes as .txt files in Dropbox. For some reason it seems to need to "sync" all 2900 notes before any of my recent changes get pulled from Simplenote into nvALT.

thanks for helping!

ttscoff commented 7 years ago

It sounds like there's probably some kind of corruption happening. I would create a brand new folder, then point nvALT to it in preferences, and let it sync from Simplenote with a clean slate.

shimstu commented 7 years ago

Right on. Thanks for the tip. And for all you do for the little man. I'll try it out. Sorry to be a nudge! Happy New Year.

shimstu commented 7 years ago

Well that didn't work. nvALT, instead of syncing all of my notes from Simplenote, actually deleted 90% of them, syncing them with a folder in my Trash, even though I had directed nvALT to a new folder in my directory, as per your instructions. Total meltdown, and lost most of the tags in my Simplenotes, which broke the link I had in several hundred notes shared with my wife. Argh. Now I'm manually rebuilding the whole thing note by note. Oh well

shimstu commented 7 years ago

Before I created a new folder, nvALT said it was syncing over 3000 notes from Simplenote - more than double what was in my Simplenote.

When I followed your suggestion, nvALT started syncing over 4600 notes. I deleted all folders and Notes and Settings files and yet somewhere this corrupt data still exists..

screen shot 2017-01-06 at 12 12 53 pm screen shot 2017-01-06 at 12 15 50 pm

ttscoff commented 7 years ago

If I recall correctly, it was possible for a note in Simplenote to contain hidden control characters that would cause serious trouble for nvALT. Search the issues, but I think the solution was a matter of note-by-note testing…

-Brett

On 6 Jan 2017, at 14:54, shimstu wrote:

Before I created a new folder, nvALT said it was syncing over 3000 notes from Simplenote - more than double what was in my Simplenote.

When I followed your suggestion, nvALT started syncing over 4600 notes. I deleted all folders and Notes and Settings files and yet somewhere this corrupt data still exists..

screen shot 2017-01-06 at 12 12 53 
pm screen shot 2017-01-06 at 12 15 50 
pm

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/ttscoff/nv/issues/430#issuecomment-271003471

shimstu commented 7 years ago

Hi - still having the same issues and wondering how I would go about doing note-by-note testing. I currently have 2041 notes in my system, but nvALT keeps saying it is syncing about 3300 notes. How would I even find the hidden characters?

THanks

m2habert commented 6 years ago

Hi, I believe that the issue is related to Simplenote's version history system that it saves for each file.

I've tried deleting almost all of notes @ nvALT (close to 3300), then waiting the sync to fully mirror the effects at Simplenote, only to sync then with an "empty" nvALT alternative : nvpy (https://github.com/cpbotha/nvpy):

the few notes I left undeleted showed up fine, but nvpy reported syncing an absurd number of notes as well (more than 4000), and in its folder subsequently the more than 4000 files it reported having synced.

A temporary fix that solves the issue, probably temporarily, would be: