Comments (14)
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.
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.
I just managed to recover my note from the serialized state in ~/.atom/storage/
Nifty! I had no idea that was possible ⚡
from nvatom.
Actually, just downgrading to 0.1.0 (using apm
) seems to have wiped out the note.
from nvatom.
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.
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.
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.
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.
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.
If someone have any idea preventing the default note directory overwrite upon version update, please let me know. Thanks!
from nvatom.
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.
Thanks for the suggestion. Unpublished it. I'll do the rest later this week. Thanks!
from nvatom.
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.
Thanks! nvatom is now published.
8384b81
https://atom.io/packages/nvatom
from nvatom.
Related Issues (20)
- Uncaught Error: Cannot find module 'docquery' HOT 1
- Uncaught Error: cache length is wrong
- Uncaught TypeError: Cannot read property 'body' of undefined
- Cannot close tab with task renamed externally
- Feature request : sync with Simplenote
- Failed to load package Cannot find module 'fs-plus' HOT 1
- Unable to install in Atom 1.11.2 HOT 1
- Markdown Preview cannot be open when nvatom is used HOT 1
- Object.extname is deprecated. HOT 1
- Uncaught Error: ENOENT: no such file or directory, unlink '~/Dropbox/Notes/nvatom bug example.md'
- Incompatibility Between NVAtom and Markdown-Preview
- Uncaught Error: ENOENT: no such file or directory, unlink 'file.md'
- Autosave is causing lag
- Failed to activate the nvatom package
- Uncaught Error: Can't save destroyed buffer
- Uncaught Error: ENOENT: no such file or directory, unlink '~/Documents/Fitness/fitness.md'
- Ambiguous attribution HOT 1
- Why remove instead of change name? HOT 1
- Changes required due to TextBuffer.save becoming async in Atom 1.19
- Atom Notes Fork HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvatom.