Closed rsshel closed 8 years ago
I've got exactly the same problem, also with version 1.8.0. Happens when I close a file.
Just tried nvatom for the first time though.
It is a very handy package. I use it on my Mac now instead of NValt. It still works on Mac, incidentally, with no problems after the update. Just a Linux problem.
Sent from my iPhone
On Jun 16, 2016, at 12:33 PM, Hendrik Buschmeier notifications@github.com wrote:
I've got exactly the same problem, also with version 1.8.0. Happens when I close a file.
Just tried nvatom for the first time though.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
/opt/atom/resources/app.asar/src/package-manager.js Hmm... I don't know what that file is. I'm using OSX... I'll find a linux machine tomorrow and play with it.
I'm using OS X as well (10.10 Yosemite):
/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:619
TypeError: Cannot read property 'name' of undefined
at PackageManager.module.exports.PackageManager.deactivatePackage (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:619:36)
at save (/Users/hendrik/.atom/packages/nvatom/lib/notational-velocity-view.coffee:108:25)
at later (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/underscore-plus/node_modules/underscore/underscore.js:724:25)
I have to correct myself: The error already happens when I save a file.
The problem is that nvatom tries to deactivate the package whitespace before saving (trailing whitespace is meaningful in Markdown) and that I had disabled it globally in Atom settings. Deactivating a package that is disabled, causes the function deactivatePackage
in PackageManager
to throw an error. Enabling the whitespace package globally fixed the problem.
@seongjaelee I am not familiar with CoffeeScript programming and currently do not have the time to look into this in more detail, but I think the problem should be easily fixable in nvatom by checking whether the package that will be deactivated is actually available (i.e. installed and enabled). In general this would better be addressed in the package manager itself though.
@rsshel Could you check, whether this fixes your problem as well?
Sorry for the slow reply. Yes, that did it for me! I also had whitespace disabled. Thanks!
Robert Shelton
On Thu, Jun 23, 2016 at 4:30 AM, Hendrik Buschmeier < notifications@github.com> wrote:
The problem is that nvatom tries to deactivate the package whitespace https://github.com/atom/whitespace before saving (trailing whitespace is meaningful in Markdown) and that I had disabled it globally in Atom settings. Deactivating a package that is disabled, causes the function deactivatePackage in PackageManager to throw an error. Enabling the whitespace package globally fixed the problem.
@seongjaelee https://github.com/seongjaelee I am not familiar with CoffeeScript programming and currently do not have the time to look into this in more detail, but I think the problem should be easily fixable in nvatom by checking whether the package that will be deactivated is actually available (i.e. installed and enabled). In general this would better be addressed in the package manager itself though.
@rsshel https://github.com/rsshel Could you check, whether this fixes your problem as well?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/seongjaelee/nvatom/issues/52#issuecomment-227983798, or mute the thread https://github.com/notifications/unsubscribe/ATCcU5_MygAj7R0peDZ8r2OFflUP5x7Dks5qOkQigaJpZM4I25OD .
I got it; the fix will be there soon. Thanks!
Just for the future reference to myself, package-manager.js is the compiled version of atom's package-manager.coffee.
Thanks a lot Robert and Hendrik tracking down this problem so far. =D
Thanks for fixing it so quickly.
[Enter steps to reproduce below:]
Atom Version: 1.8.0 System: Linux Mint Thrown From: nvatom package, v0.10.0
Stack Trace
Uncaught TypeError: Cannot read property 'name' of undefined
Commands
Config
Installed Packages