ud-annotatrix icon indicating copy to clipboard operation
ud-annotatrix copied to clipboard

corpora lost on page reload

Open jonorthwash opened this issue 6 years ago • 8 comments

Currently it looks like saving to localstorage isn't working. Every time I edit some trees and reload the page, the trees I'd been working with are no longer there.

jonorthwash avatar Jan 12 '19 19:01 jonorthwash

hm weird, I'll hopefully have a minute to look into this later this week before school starts

keggsmurph21 avatar Jan 15 '19 04:01 keggsmurph21

Has this been fixed?

hildurjons avatar Mar 11 '19 19:03 hildurjons

@hildurjons, I'm pretty sure this is still a problem. It should be pretty easy to test based on the issue comment to determine whether it's been fixed or not. Update us here to let us know what you find!

jonorthwash avatar Mar 12 '19 03:03 jonorthwash

Hi! I just downloaded Annotatrix and I'm having trouble finding the saved file on my hard drive. It's probably the setup or me :) I'm running Ubuntu, Firefox browser. I can find a .json file under /corpora folder but I thought that the system saved a .corpus file in .conllu format. The system creates a .corpus file in conllu format if I download. Is this as designed? Regarding this issue I could not reproduce it. I did the following:

  1. uploaded conllu file
  2. edited a tree, created new relations etc.
  3. Reloaded the page (Ctrl+R) Actual result: system reloads page and displays the edited tree Expected result: same

hildurjons avatar Mar 12 '19 07:03 hildurjons

@hildurjons, javascript can't save anything to your system storage on its own. Annotatrix should allow you to download the corpus you've created, but I'm not sure if that's working.

jonorthwash avatar Jun 01 '19 21:06 jonorthwash

Fixed in #356

yaskevich avatar Jun 02 '19 20:06 yaskevich

This might only happen now when the size of the corpus exceeds localstorage's quota. In this case, it seems to silently fail to save to localstorage. This should be fixed.

jonorthwash avatar Jun 10 '22 14:06 jonorthwash

Every time I edit some trees and reload the page, the trees I'd been working with are no longer there.

I'm still getting exactly this behaviour.

jonorthwash avatar Jun 15 '22 20:06 jonorthwash