Coder Social home page Coder Social logo

Upgrade to 0.2.0 removes notes about nvatom HOT 14 CLOSED

jrs65 avatar jrs65 commented on July 30, 2024
Upgrade to 0.2.0 removes notes

from nvatom.

Comments (14)

jonmagic avatar jonmagic commented on July 30, 2024

Anyway there seems to be some kind of bug where notes get removed upon upgrade. Does the note directory get cleared out when atom updates the package directory?

This isn't the intended behavior. I tried replicating the issue described by uninstalling the package, then installing version 0.1.0 from the command line with apm install [email protected], opening a note in Atom with the notational-velocity package, then upgrading to 0.2.0 using the package update settings page. After upgrading my note was still intact and I checked and my Notes folder and all of its contents were intact as well.

If we can replicate it we can hopefully figure out why that might have happened.

from nvatom.

jrs65 avatar jrs65 commented on July 30, 2024

Yes, unfortunately it might be one of those bugs that is hard to reproduce. I just managed to recover my note from the serialized state in ~/.atom/storage/, so I can have spend a few minutes trying to reproduce it.

from nvatom.

jonmagic avatar jonmagic commented on July 30, 2024

I just managed to recover my note from the serialized state in ~/.atom/storage/

Nifty! I had no idea that was possible ⚡

from nvatom.

jrs65 avatar jrs65 commented on July 30, 2024

Actually, just downgrading to 0.1.0 (using apm) seems to have wiped out the note.

from nvatom.

jonmagic avatar jonmagic commented on July 30, 2024

Actually, just downgrading to 0.1.0 (using apm) seems to have wiped out the note.

Can you list more details about your system, OS & version, apm -v output, etc? Is your notes folder inside your home directory?

from nvatom.

jrs65 avatar jrs65 commented on July 30, 2024

And repeating the upgrade has wiped it out again.

Indeed I can give you more details (apologies, should have put them in earlier). I'm on OS X 10.10.5, atom version 1.0.11, apm -v output:

$ apm -v
apm  1.0.4
npm  2.13.3
node 0.10.40
python 2.7.8
git 2.3.2

Probably the most pertinent information is that I left the notebook directory as the default location ~/.atom/packages/notational-velocity/notebook. I imagine it shouldn't wipe out notes from there, but I'll probably move my notes directory out of the .atom tree where I imagine they should be a little safer.

Recovering the note was a combination of a guess, grep and some luck :)

from nvatom.

jonmagic avatar jonmagic commented on July 30, 2024

Probably the most pertinent information is that I left the notebook directory as the default location ~/.atom/packages/notational-velocity/notebook. I imagine it shouldn't wipe out notes from there, but I'll probably move my notes directory out of the .atom tree where I imagine they should be a little safer.

Oh interesting, I bet it's this. I wonder if the entire package directory gets replaced on upgrade? might be safer to make the default something like ~/.atom/notational-velocity-notes

from nvatom.

jonmagic avatar jonmagic commented on July 30, 2024

Oh interesting, I bet it's this. I wonder if the entire package directory gets replaced on upgrade? might be safer to make the default something like ~/.atom/notational-velocity-notes

On initialize it will need to check if the notes dir is the default and if it is create the directory if it doesn't already exist and copy the default notes to the new directory.

from nvatom.

seongjaelee avatar seongjaelee commented on July 30, 2024

Oh... this is a terrible, terrible bug...

On initialize it will need to check if the notes dir is the default and if it is create the directory if it doesn't already exist and copy the default notes to the new directory.

I can do this, but I guess there is no way that we can prevent somebody losing their notes after upgrade for v0.1.0...?

from nvatom.

seongjaelee avatar seongjaelee commented on July 30, 2024

If someone have any idea preventing the default note directory overwrite upon version update, please let me know. Thanks!

from nvatom.

jonmagic avatar jonmagic commented on July 30, 2024

If someone have any idea preventing the default note directory overwrite upon version update, please let me know. Thanks!

One idea I had was to apm unpublish [email protected], then change the project name to something like nvatom, kind of like nvalt (which I always used instead of Notational Velocity before I found your atom package).

Add an obvious big headline to the notational-velocity package readme that points people to the new package and explains why you're doing the rename. Also mention that removing the plugin may remove their notes, so they should install the new nvatom package first to make sure their notes make it into a safe place.

Have the first version of the new nvatom package handle all of the notes directory stuff, including porting notes over from an old notational-velocity package.

from nvatom.

seongjaelee avatar seongjaelee commented on July 30, 2024

Thanks for the suggestion. Unpublished it. I'll do the rest later this week. Thanks!

from nvatom.

jrs65 avatar jrs65 commented on July 30, 2024

Great! Glad you've figured out a path forward.

BTW, thanks for putting the package together! I've been really enjoying using it.

from nvatom.

seongjaelee avatar seongjaelee commented on July 30, 2024

Thanks! nvatom is now published.

8384b81
https://atom.io/packages/nvatom

from nvatom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.