From 736ad60dd085428b62635580d1feeb24e43d2e2c Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Thu, 25 Jun 2015 16:11:35 +0200 Subject: [PATCH] Use "atom.workspace.addBottomPanel" "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. (.../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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/command-view.coffee b/lib/command-view.coffee index 0b9e865..042a048 100644 --- a/lib/command-view.coffee +++ b/lib/command-view.coffee @@ -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() -- 2.39.2