DavidLGoldberg / jumpy

The fastest way to jump around files and across visible panes in Atom
https://atom.io/packages/jumpy
MIT License
123 stars 16 forks source link

TypeError: Cannot read property '0' of null #84

Closed despairblue closed 8 years ago

despairblue commented 8 years ago

[Enter steps to reproduce below:]

Happens sometimes

Atom Version: 1.6.0-beta5 System: Mac OS X 10.11.3 Thrown From: jumpy package, v3.0.2

Stack Trace

Uncaught TypeError: Cannot read property '0' of null

At /Users/danny/.atom/packages/jumpy/lib/jumpy-view.coffee:201

TypeError: Cannot read property '0' of null
  at /Users/danny/.atom/packages/jumpy/lib/jumpy-view.coffee:201:14
  at Workspace.module.exports.Workspace.observeTextEditors (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/workspace.js:302:9)
  at JumpyView.toggle (/Users/danny/.atom/packages/jumpy/lib/jumpy-view.coffee:152:41)
  at atom-workspace.commands.add.atom.commands.add.jumpy:toggle (/Users/danny/.atom/packages/jumpy/lib/jumpy-view.coffee:41:33)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
  at __bind (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/command-registry.js:3:61)
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom Beta.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:570:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom Beta.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:378:22)
  at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeydown (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/window-event-handler.js:97:36)
  at HTMLDocument.__bind (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)

Commands

     -0:39.8.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:39.7.0 advanced-open-file:toggle (atom-text-editor.editor.hyperclick)
     -0:38.3.0 core:confirm (atom-text-editor.path-input.editor.mini.is-focused)
  2x -0:37.4.0 pane:show-previous-item (atom-text-editor.editor.is-focused.hyperclick)
  3x -0:36.1.0 pane:show-next-item (ol.results-view.list-tree.focusable-panel.has-collapsable-children)
  2x -0:30.9.0 pane:show-previous-item (atom-text-editor.editor.is-focused)
  3x -0:22.1.0 editor:select-line (atom-text-editor.editor.is-focused.hyperclick)
     -0:21.6.0 core:copy (atom-text-editor.editor.is-focused.hyperclick)
     -0:18.8.0 window:focus-pane-on-left (atom-text-editor.editor.is-focused.hyperclick)
     -0:18.1.0 core:paste (atom-text-editor.editor.is-focused.hyperclick)
     -0:16.8.0 atom-beautify:beautify-editor (atom-text-editor.editor.is-focused)
     -0:15.7.0 pane:show-next-item (atom-text-editor.editor.is-focused.hyperclick)
     -0:13.1.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:12.2.0 jumpy:toggle (atom-text-editor.editor.is-focused)
  3x -0:03.0 editor:select-line (atom-text-editor.editor.is-focused.hyperclick)
     -0:02.0 core:copy (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "autoHideMenuBar": true,
    "closeEmptyWindows": false,
    "customFileTypes": {
      "source.ini": [
        ".buckconfig",
        ".flowconfig"
      ],
      "source.json": [
        ".arcconfig"
      ],
      "source.python": [
        "BUCK"
      ]
    },
    "disabledPackages": [
      "atom-color-highlight",
      "atomatigit",
      "es-navigation",
      "filetype-color",
      "grunt-runner",
      "incremental-search",
      "linter-scspell",
      "markdown-scroll-sync",
      "metrics",
      "minimap-color-highlight",
      "minimap-find-and-replace",
      "minimap-git-diff",
      "minimap-highlight-selected",
      "minimap",
      "navigate",
      "tab-smart-sort",
      "Tern",
      "test-status",
      "themed-settings",
      "travis-ci-status",
      "tree-view-breadcrumb",
      "tree-view-open-files",
      "welcome",
      "nuclide-click-to-symbol",
      "nuclide-quick-open",
      "linter-jshint",
      "nuclide-file-tree",
      "nuclide-flow",
      "nuclide-file-tree-deux",
      "markdown-preview-opener",
      "nuclide-diagnostics-store",
      "nuclide-diagnostics-ui",
      "nuclide-debugger-node",
      "linter-htmlhint",
      "tree-view",
      "atom-pair",
      "Zen",
      "angularjs",
      "atom-zeal",
      "firepad",
      "language-tss",
      "lazy-motion",
      "open-plus",
      "swap-panes",
      "json-schema",
      "linter-flow",
      "javascript-snippets",
      "linter-js-standard",
      "starred-package-installer",
      "linter-puppet-lint"
    ],
    "excludeVcsIgnoredPaths": false,
    "projectHome": "~/vcs/git/"
  },
  "jumpy": {}
}

Installed Packages

# User
advanced-open-file, v0.14.2
atom-alignment, v0.12.1
atom-beautify, v0.28.22
atom-spotify2, v2.1.2
atom-ternjs, v0.13.2
atomic-chrome, v0.3.0
autocomplete-elixir, v1.5.13
autocomplete-emojis, v2.2.2
autocomplete-paths, v1.0.2
block-travel, v1.0.4
bug-report, v0.7.1
clipboard-plus, v0.5.1
color-picker, v2.1.1
compare-files, v0.6.2
docblockr, v0.7.3
editorconfig, v1.2.4
file-icons, v1.6.15
git-log, v0.4.1
go-plus, v3.5.4
grammar-token-limit, v0.1.1
haskell-grammar, v0.4.0
highlight-selected, v0.11.2
imdone-atom, v1.3.27
indentation-indicator, v0.6.0
jumpy, v3.0.2
language-babel, v2.15.4
language-docker, v1.1.6
language-dot, v1.6.0
language-elixir, v0.11.1
language-elm, v1.3.2
language-fish-shell, v1.0.2
language-haskell, v1.5.2
language-ini, v1.14.0
language-latex, v0.6.1
language-nimrod, v0.1.0
language-ocaml, v1.1.2
language-puppet, v0.17.0
language-thrift, v1.0.2
latex, v0.29.0
linter, v1.11.3
linter-coffeelint, v1.1.2
linter-elm-make, v0.4.0
linter-eslint, v7.0.0
linter-js-standard-engine, v0.0.4
linter-js-yaml, v1.2.5
linter-shellcheck, v1.1.0
nix, v2.1.0
nuclide, v0.118.0
one-tab, v0.8.0
package-cop, v0.2.10
package-sync, v1.0.0
pdf-view, v0.39.0
pigments, v0.24.1
react, v0.14.1
regex-railroad-diagram, v0.11.0
standard-formatter, v2.0.0
symbols-tree-view, v0.11.0
tabs-to-spaces, v1.0.2
tool-bar, v0.2.1
wakatime, v5.0.8

# Dev
No dev packages