hughsk / atom-npm-install

Automatically install and save any missing npm modules being used in the current file
http://atom.io/packages/npm-install
MIT License
80 stars 7 forks source link

Uncaught TypeError: Cannot read property 'getBuffer' of undefined #9

Open sanketsahu opened 9 years ago

sanketsahu commented 9 years ago

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 0.194.0 System: Mac OS X 10.10.3 Thrown From: npm-install package, v2.0.0

Stack Trace

Uncaught TypeError: Cannot read property 'getBuffer' of undefined

At /Users/sanket/.atom/packages/npm-install/index.js:72

TypeError: Cannot read property 'getBuffer' of undefined
  at atom-workspace.<anonymous> (/Users/sanket/.atom/packages/npm-install/index.js:72:22)
  at atom-workspace.handler (/Applications/Atom.app/Contents/Resources/app.asar/src/space-pen-extensions.js:115:32)
  at atom-workspace.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/space-pen/vendor/jquery.js:4681:9)
  at atom-workspace.elemData.handle (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/space-pen/vendor/jquery.js:4359:46)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:238:29)
  at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
  at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/command-palette/lib/command-palette-view.js:120:32)
  at CommandPaletteView.module.exports.SelectListView.confirmSelection (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
  at space-pen-div.atom.commands.add.core:confirm (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:109:19)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:238:29)
  at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:519:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:354:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:178:20)

Commands

  5x -1:39.2.0 core:backspace (atom-text-editor.editor.mini)
     -1:36.3.0 core:confirm (atom-text-editor.editor.mini)
     -1:09.3.0 core:select-all (atom-text-editor.editor.mini)
  2x -1:05.5.0 core:confirm (atom-text-editor.editor.mini)
     -0:30.4.0 core:close (div.settings-view.pane-item)
     -0:28.4.0 command-palette:toggle (atom-pane.pane.active)
     -0:26 core:confirm (atom-text-editor.editor.mini)
     -0:26 bower-install:save (atom-pane.pane.active)
     -0:14.9.0 command-palette:toggle (atom-pane.pane.active)
     -0:13.9.0 core:backspace (atom-text-editor.editor.mini)
     -0:12 core:confirm (atom-text-editor.editor.mini)
     -0:12 composer:install (atom-pane.pane.active)
     -0:04.0 command-palette:toggle (atom-pane.pane.active)
     -0:02.4.0 core:move-down (atom-text-editor.editor.mini)
     -0:01.4.0 core:confirm (atom-text-editor.editor.mini)
     -0:01.4.0 npm-install:save (atom-pane.pane.active)

Config

{
  "core": {
    "themes": [
      "seti-ui",
      "seti-syntax"
    ]
  }
}

Installed Packages

# User
angularjs, v0.2.0
atom-beautify, v0.24.1
autoclose-html, v0.15.0
autocomplete-css, v0.6.0
autocomplete-html, v0.5.0
autocomplete-plus, v2.12.0
bower-install, v0.2.4
change-case, v0.5.1
color-picker, v1.7.0
composer, v0.3.1
language-blade, v0.12.0
laravel, v0.4.2
linter, v0.12.1
linter-php, v0.0.12
markdown-scroll-sync, v0.3.3
npm-install, v2.0.0
save-session, v0.14.0
seti-syntax, v0.4.0
seti-ui, v0.6.3
todo-show, v0.8.0

# Dev
No dev packages