Laverna / laverna

Laverna is a JavaScript note taking application with Markdown editor and encryption support. Consider it like open source alternative to Evernote.
https://laverna.cc/index.html
Mozilla Public License 2.0
9.2k stars 801 forks source link

Cannot view most of my notes #341

Closed claell closed 8 years ago

claell commented 8 years ago

On Firefox I cannot view most of my notes when clicking on them. Only the last one works (probably because I have not set a notebook for it). Also there are no notebooks available, which I created.

The migrate html does not help. Probably there is some old stuff not compatible with the new version?

claell commented 8 years ago

Also a few notes seem to be missing.

wwebfor commented 8 years ago

Does it show anything in the developer console?

You can also try to clear browser's cache.

claell commented 8 years ago

Clearing cache did not help, unfortunately. Here is the output of the console: bildschirmfoto vom 2015-12-25 16-58-57

wwebfor commented 8 years ago

Please, try to disable Dropbox sync in settings. Probably it is something related to synchronizing.

claell commented 8 years ago

I disabled it, but that changed nothing, so I used indexedDB.deleteDatabase('notes-db'); in console. Then I got no notes displayed at all after reloading. The problem now is, how to set up sync again?

wwebfor commented 8 years ago

You can setup synchronization in the settings. Click on "All notes", then on "Sync". After that choose your sync method and click "save".

claell commented 8 years ago

The problem is after setting up sync again in the settings it syncs again (without authorisation dialogue by the way) and all notes appear again. Unfortunately I am facing the same problem again then :(

claell commented 8 years ago

After deleting the cache and plugin data on Chrome and setting up sync there again I am experiencing the same problem there.

wwebfor commented 8 years ago

We are sorry to hear that. We will try to address that bug. Seems like it is trying to save something but failing (probably a tag or a notebook)

wwebfor commented 8 years ago

By the way, did it start happening in this update after a while or immediately? Does it work in nightly version?

claell commented 8 years ago

Thanks. I noticed it today on the nightly version. I set it up on this PC with the steps you told me in a different issue two days ago. As far as I remember it did work that time. Maybe there is something wrong with my Dropbox files which causes this.

Also Merry Christmas to you, pretty nice of you to reply to issues during this time :)

wwebfor commented 8 years ago

Thanks. We'll try to reproduce it and fix. It seems like it is related to tag validation.

wwebfor commented 8 years ago

@claell can you try to move Apps/Laverna/notes-db/tags folder on Dropbox to somewhere else?

claell commented 8 years ago

I just tried this, but unfortunately it did not solve the problem.

wwebfor commented 8 years ago

Thanks for trying. I was just trying to figure out what exactly is causing the problem. Can you also try to find what is causing validation error by clicking on the error message:

screen

claell commented 8 years ago

No problem. This is what I got when clicking on "Arguments": bildschirmfoto vom 2015-12-29 19-04-54

Also I saw that there was one notebook in the Dropbox folder which was edited on the 18th December, although it was pretty old already. The other ones weren't edited:

bildschirmfoto vom 2015-12-29 19-07-41

This is the content of the json files:

{"id":"1","parentId":"0","name":"Maschinenbau","notes":[],"count":0,"synchronized":0,"type":"notebooks","trash":0,"created":0,"updated":0}

{"id":"9baf3b80-4e58-28d7-0805-50464eacd018","parentId":"0","name":"ToDo","synchronized":0,"count":0,"updated":1409158700571}

{"id":"077686b0-e63d-b48c-9b6e-edba7714283c","parentId":"0","name":"Notizen","synchronized":0,"count":0,"updated":1409497131185}

wwebfor commented 8 years ago

It looks like notebooks weren't corrupt or anything like that.

claell commented 8 years ago

Alright. So any hints from the error message?

wwebfor commented 8 years ago

Unfortunately, no. From one side, it's obvious it happens immediately after synchronization. From the other, notes and other data should still be visible.

Did you used to have notes with empty titles?

claell commented 8 years ago

Normally not, but I might have created a test note to describe a problem and saved it.

wwebfor commented 8 years ago

We may have an idea how to solve this. We'll try to release a hotfix tomorrow.

claell commented 8 years ago

Ok, will try then :)

wwebfor commented 8 years ago

Probably the problem was solved. Can you try it when you have time?

claell commented 8 years ago

Yes, seems to be fixed now. My notebooks are shown again and I can see the notes when I click on them. Thank you for the fast fix.