]> arthur.barton.de Git - atom-ax-pipe.git/commitdiff
Use "atom.workspace.addBottomPanel" workspace-addBottomPanel
authorAlexander Barton <alex@barton.de>
Thu, 25 Jun 2015 14:11:35 +0000 (16:11 +0200)
committerAlexander Barton <alex@barton.de>
Thu, 25 Jun 2015 15:56:09 +0000 (17:56 +0200)
"atom.workspaceView.append" isn't available any more and resulted in the
following error message:

Uncaught TypeError: Cannot read property 'append' of undefined

At .../lib/command-view.coffee:55

TypeError: Cannot read property 'append' of undefined
  at CommandView.module.exports.CommandView.initialize (.../lib/command-view.coffee:55:23)
  at CommandView.View (.../node_modules/atom-space-pen-views/node_modules/space-pen/lib/space-pen.js:184:25)
  at new CommandView (.../lib/command-view.coffee:6:3)
  at Object.module.exports.run (.../lib/pipe.coffee:17:9)
  at atom-workspace.<anonymous> (.../lib/pipe.coffee:9:57)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (.../Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:241: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:159: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:241: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:520:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (.../Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:355:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (.../Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:180:20)

lib/command-view.coffee

index 0b9e865b82e7b775d5948f5ef3bfed0b54dff338..042a048eeb10712021ce5a01a9f93236e744660b 100644 (file)
@@ -52,5 +52,5 @@ class CommandView extends View
           if historyPos >= history.length
             cur = @commandLine.getText()
 
-    atom.workspaceView.append(this)
+    atom.workspace.addBottomPanel(item: this)
     @commandLine.focus()