Giter Club home page Giter Club logo

swap-panes's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

dcalhoun

swap-panes's Issues

Uncaught Error: Pane has been destroyed

Installed. Set keybindings to p w [hjkl]. Tried. Got my pane all destroyed. :(

Atom Version: 1.4.0-dev-aca12a8
System: Mac OS X 10.11.1
Thrown From: swap-panes package, v0.2.0

Stack Trace

Uncaught Error: Pane has been destroyed

At /Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:620

Error: Pane has been destroyed
    at Pane.module.exports.Pane.activate (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:620:15)
    at Object.module.exports.swapPane (/Users/naoru/.atom/packages/swap-panes/lib/swap-panes.coffee:41:12)
    at Object.module.exports.swap (/Users/naoru/.atom/packages/swap-panes/lib/swap-panes.coffee:34:8)
    at Object.module.exports.swapLeft (/Users/naoru/.atom/packages/swap-panes/lib/swap-panes.coffee:11:17)
    at atom-workspace.<anonymous> (/Users/naoru/.atom/packages/swap-panes/lib/swap-panes.coffee:4:69)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260: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:533:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:356:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:97:36)
    at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)

Commands

     -0:21.5.0 core:move-down (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
     -0:21.3.0 core:backspace (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
     -0:21.1.0 exit-insert-mode-if-preceded-by-j (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
     -0:20.8.0 core:move-down (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
     -0:20.6.0 core:backspace (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
  2x -0:19.8.0 core:move-up (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
  8x -0:19 editor:move-to-end-of-word (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
     -0:17.1.0 editor:select-to-end-of-word (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
     -0:14.8.0 core:move-down (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
  4x -0:14.5.0 core:backspace (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
     -0:12.7.0 core:move-down (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
     -0:11.8.0 find-and-replace:select-next (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
     -0:10.5.0 core:save (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
     -0:08.4.0 vim-mode:activate-normal-mode (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
     -0:02.5.0 swap-panes:swap-left (atom-text-editor.editor.vim-mode.is-focused.normal-mode)
  3x -0:02.5.0 blur (atom-text-editor.editor.vim-mode.is-focused.normal-mode)

Config

{
  "core": {
    "excludeVcsIgnoredPaths": false,
    "disabledPackages": [
      "background-tips",
      "csslint"
    ],
    "themes": [
      "one-dark-ui",
      "base16-tomorrow-dark-theme"
    ],
    "packagesWithKeymapsDisabled": [
      "csslint"
    ]
  }
}

Installed Packages

# User
activate-power-mode, v0.3.2
atom-ternjs, v0.9.1
autocomplete-paths, v1.0.2
blame, v0.8.1
color-picker, v2.0.13
editorconfig, v1.2.2
emmet, v2.3.15
ex-mode, v0.7.0
file-icons, v1.6.12
file-types, v0.5.1
goto-scope, v0.2.9
javascript-snippets, v1.0.0
linter, v1.11.2
linter-jscs, v3.2.0
move-panes, v0.2.0
open-this, v0.1.7
pane-split-moves-tab, v0.0.3
pretty-json, v0.4.1
swap-panes, v0.2.0
tab-control, v0.6.8
tabs-to-spaces, v1.0.1
vim-mode, v0.63.0

# Dev
No dev packages

Swapping destroys 'target' pane

When I activate one of swap-panes' commands, the 'target' pane is destroyed. So, for example, if the left pane is active, and I hit alt-ctrl-shift-right, the right pane simply disappears, leaving only the left.

Less surprising, if I perform the reverse operation, swap-panes throws an Uncaught TypeError: Cannot read property '0' of undefined with the following stack trace:

TypeError: Cannot read property '0' of undefined
  at Object.module.exports.swap (C:\Users\scorbeil\.atom\packages\swap-panes\lib\swap-panes.coffee:30:6)
  at Object.module.exports.swapRight (C:\Users\scorbeil\.atom\packages\swap-panes\lib\swap-panes.coffee:10:18)
  at atom-workspace.<anonymous> (C:\Users\scorbeil\.atom\packages\swap-panes\lib\swap-panes.coffee:3:70)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\scorbeil\AppData\Local\atom\app-1.0.0\resources\app.asar\src\command-registry.js:241:29)
  at C:\Users\scorbeil\AppData\Local\atom\app-1.0.0\resources\app.asar\src\command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (C:\Users\scorbeil\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:520:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (C:\Users\scorbeil\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:355:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (C:\Users\scorbeil\AppData\Local\atom\app-1.0.0\resources\app.asar\src\window-event-handler.js:180:20)

Uncaught TypeError: Cannot read property '0' of undefined

Uncaught TypeError: Cannot read property '0' of undefined

Atom Version: 0.155.0
System: Mac OS X 10.10.1
Thrown From: swap-panes package, v0.1.0

Steps To Reproduce

  1. ...
  2. ...

Stack Trace

At /Users/katwake/.atom/packages/swap-panes/lib/swap-panes.coffee:31

TypeError: Cannot read property '0' of undefined
  at Object.module.exports.swap (/Users/katwake/.atom/packages/swap-panes/lib/swap-panes.coffee:31:6)
  at Object.module.exports.swapLeft (/Users/katwake/.atom/packages/swap-panes/lib/swap-panes.coffee:12:17)
  at atom-workspace.<anonymous> (/Users/katwake/.atom/packages/swap-panes/lib/swap-panes.coffee:5:60)
  at atom-workspace.handler (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:115:32)
  at atom-workspace.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4681:9)
  at atom-workspace.elemData.handle (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4359:46)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
  at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:549:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:391:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:167:20)

/cc @atom/core

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.