Alexander Barton [Thu, 25 Jun 2015 14:11:35 +0000 (16:11 +0200)]
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.<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)
Alexander Barton [Thu, 25 Jun 2015 15:51:21 +0000 (17:51 +0200)]
Don't use editor.{begin|commit}Transaction
This solves the following error (but I'm not sure if not using transactions
at all is the "real" solution ...):
Uncaught TypeError: undefined is not a function
At .../Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:1156
TypeError: undefined is not a function
at TextEditor.module.exports.TextEditor.beginTransaction (.../Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:1156:26)
at .../lib/pipe.coffee:37:14
at space-pen-div.<anonymous> (.../lib/command-view.coffee:32:7)
at space-pen-div.jQuery.event.dispatch (.../node_modules/atom-space-pen-views/node_modules/space-pen/node_modules/jquery/dist/jquery.js:4435:9)
at space-pen-div.elemData.handle (.../node_modules/atom-space-pen-views/node_modules/space-pen/node_modules/jquery/dist/jquery.js:4121:28)
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)