Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Uncaught TypeError: Cannot read property 'isEmpty' of undefined #102

Closed

Description

@rachel-carvalho

On a .less file, over a samba share:

  1. Used a snippet
  2. Cut last line of generated text
  3. Select whole file until line before end
  4. Press TAB

Atom Version: 0.176.0
System: Mac OS X 10.10.1
Thrown From: bracket-matcher package, v0.69.0

Stack Trace

Uncaught TypeError: Cannot read property 'isEmpty' of undefined

At /Applications/Atom.app/Contents/Resources/app/src/workspace.js:710

TypeError: Cannot read property 'isEmpty' of undefined
  at BracketMatcherView.module.exports.BracketMatcherView.updateMatch (/Applications/Atom.app/Contents/Resources/app/node_modules/bracket-matcher/lib/bracket-matcher-view.js:108:42)
  at /Applications/Atom.app/Contents/Resources/app/node_modules/bracket-matcher/lib/bracket-matcher-view.js:40:24
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
  at /Applications/Atom.app/Contents/Resources/app/src/text-editor.js:210:32
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
  at DisplayBuffer.module.exports.DisplayBuffer.emitDidChange (/Applications/Atom.app/Contents/Resources/app/src/display-buffer.js:320:20)
  at DisplayBuffer.module.exports.DisplayBuffer.handleBufferMarkersUpdated (/Applications/Atom.app/Contents/Resources/app/src/display-buffer.js:1588:21)
  at /Applications/Atom.app/Contents/Resources/app/src/display-buffer.js:5:61
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/service-hub/node_modules/event-kit/lib/emitter.js:82:11)
  at TextBuffer.module.exports.TextBuffer.applyPatch (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:599:20)
  at BufferPatch.module.exports.BufferPatch.applyTo (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/buffer-patch.js:74:21)
  at Transaction.module.exports.Transaction.applyTo (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/transaction.js:60:29)
  at History.module.exports.History.abortTransaction (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:165:24)
  at History.module.exports.History.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:122:16)
  at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:687:27)
  at /Applications/Atom.app/Contents/Resources/app/node_modules/whitespace/lib/whitespace.js:52:25
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/service-hub/node_modules/event-kit/lib/emitter.js:82:11)
  at TextBuffer.module.exports.TextBuffer.saveAs (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:965:20)
  at TextBuffer.module.exports.TextBuffer.save (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:958:19)
  at TextEditor.module.exports.TextEditor.save (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:620:26)
  at Pane.module.exports.Pane.saveItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:538:16)
  at Pane.module.exports.Pane.saveActiveItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:522:19)
  at Workspace.module.exports.Workspace.saveActivePaneItemAndReportErrors (/Applications/Atom.app/Contents/Resources/app/src/workspace.js:689:44)
  at Workspace.module.exports.Workspace.saveActivePaneItem (/Applications/Atom.app/Contents/Resources/app/src/workspace.js:679:19)
  at atom-workspace.atom.commands.add.core:save (/Applications/Atom.app/Contents/Resources/app/src/workspace-element.js:295:30)
  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:558:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:396:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:170:20)

Commands

  2x -0:21.6 editor:newline (atom-text-editor.editor.is-focused)
     -0:21.1 snippets:next-tab-stop (atom-text-editor.editor.is-focused)
     -0:21.0 snippets:expand (atom-text-editor.editor.is-focused)
     -0:15.7 editor:move-to-beginning-of-word (input)
     -0:15.1 core:move-left (atom-text-editor.editor.is-focused)
     -0:14.0 editor:consolidate-selections (atom-text-editor.editor.is-focused)
     -0:13.3 core:move-up (atom-text-editor.editor.is-focused)
     -0:12.7 core:cut (atom-text-editor.editor.is-focused)
     -0:11.8 core:select-down (atom-text-editor.editor.is-focused)
     -0:11.5 core:cut (atom-text-editor.editor.is-focused)
     -0:11.1 core:move-up (atom-text-editor.editor.is-focused)
     -0:10.4 core:move-down (atom-text-editor.editor.is-focused)
     -0:10.0 core:select-to-bottom (atom-text-editor.editor.is-focused)
     -0:09.4 core:select-up (atom-text-editor.editor.is-focused)
     -0:08.8 snippets:next-tab-stop (atom-text-editor.editor.is-focused)
     -0:01.4 core:save (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "remember-session",
      "linter-jshint",
      "merge-conflicts"
    ],
    "themes": [
      "atom-dark-ui",
      "monokai"
    ]
  }
}

Installed Packages

# User
atom-color-highlight, v3.0.5
autoclose-html, v0.14.0
autocomplete-plus, v1.1.0
file-types, v0.3.0
highlight-line, v0.9.3
language-jade, v0.3.0
language-smarty-php, v0.4.0
linter, v0.10.1
linter-jscs, v1.4.9
monokai, v0.11.0
save-session, v0.11.3

# Dev
No dev packages

/cc @atom/core

Activity

  1. RodrigoEspinosa commented on Mar 5, 2015

    @RodrigoEspinosa

    This is happening to me too in a javascript file.

    1. Select a block of code.
    2. Try to replace it (hitting delete for example)

    Atom Version: 0.186.0
    System: Mac OS X 10.10.2
    Thrown From: bracket-matcher package, v0.71.0

    Stack Trace

    Uncaught TypeError: Cannot read property 'isEmpty' of undefined

    At /Applications/Atom.app/Contents/Resources/app/node_modules/bracket-matcher/lib/bracket-matcher-view.js:108
    
    TypeError: Cannot read property 'isEmpty' of undefined
      at BracketMatcherView.module.exports.BracketMatcherView.updateMatch (/Applications/Atom.app/Contents/Resources/app/node_modules/bracket-matcher/lib/bracket-matcher-view.js:108:42)
      at /Applications/Atom.app/Contents/Resources/app/node_modules/bracket-matcher/lib/bracket-matcher-view.js:40:24
      at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
      at /Applications/Atom.app/Contents/Resources/app/src/text-editor.js:211:32
      at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
      at DisplayBuffer.module.exports.DisplayBuffer.emitDidChange (/Applications/Atom.app/Contents/Resources/app/src/display-buffer.js:318:20)
      at DisplayBuffer.module.exports.DisplayBuffer.handleBufferMarkersUpdated (/Applications/Atom.app/Contents/Resources/app/src/display-buffer.js:1570:21)
      at /Applications/Atom.app/Contents/Resources/app/src/display-buffer.js:5:61
      at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
      at TextBuffer.module.exports.TextBuffer.applyPatch (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:599:20)
      at BufferPatch.module.exports.BufferPatch.applyTo (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/buffer-patch.js:74:21)
      at Transaction.module.exports.Transaction.applyTo (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/transaction.js:60:29)
      at History.module.exports.History.abortTransaction (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:165:24)
      at History.module.exports.History.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:122:16)
      at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:687:27)
      at TextEditor.module.exports.TextEditor.transact (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1215:26)
      at atom-text-editor.newCommandListeners.(anonymous function) (/Applications/Atom.app/Contents/Resources/app/src/text-editor-element.js:298:22)
      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:558:16)
      at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:396:22)
      at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:182:20)
    
    

    Commands

         -0:33.1 editor:consolidate-selections (atom-text-editor.editor.is-focused)
         -0:33.1 AtomPair:hide views (atom-text-editor.editor.is-focused)
         -0:32.2 editor:consolidate-selections (atom-text-editor.editor.is-focused)
         -0:32.2 AtomPair:hide views (atom-text-editor.editor.is-focused)
         -0:32.0 editor:consolidate-selections (atom-text-editor.editor.is-focused)
         -0:32.0 AtomPair:hide views (atom-text-editor.editor.is-focused)
         -0:24.2 core:close (atom-text-editor.editor.is-focused)
         -0:12.7 core:backspace (atom-text-editor.editor.is-focused)
         -0:11.5 editor:consolidate-selections (atom-text-editor.editor.is-focused)
         -0:11.5 AtomPair:hide views (atom-text-editor.editor.is-focused)
         -0:10.1 core:save (atom-text-editor.editor.is-focused)
         -0:09.5 core:close (atom-text-editor.editor.is-focused)
         -0:01.7 emmet:toggle-comment (atom-text-editor.editor.is-focused)
         -0:01.7 editor:toggle-line-comments (atom-text-editor.editor.is-focused)
         -0:00.7 emmet:toggle-comment (atom-text-editor.editor.is-focused)
         -0:00.7 editor:toggle-line-comments (atom-text-editor.editor.is-focused)
    

    Config

    {
      "core": {
        "followSymlinks": true,
        "disabledPackages": [
          "atom-lint",
          "linter-pep8",
          "linter-pylint",
          "python-isort",
          "autocomplete",
          "timekeeper",
          "symbols-view",
          "vim-mode",
          "atom-spotify",
          "color-picker",
          "bower-install",
          "Tern",
          "atom-ctags",
          "atom-wield",
          "terminal-status",
          "autocomplete-jedi",
          "slack-chat",
          "web-view",
          "web-browser"
        ],
        "themes": [
          "quantum-ui",
          "quantum-syntax"
        ],
        "projectHome": "/User/rec/Documents/Projects/rec",
        "excludeVcsIgnoredPaths": false,
        "audioBeep": false
      }
    }

    Installed Packages

    # User
    achievements, v0.7.0
    atom-django, v0.2.1
    atom-jade, v0.1.0
    atom-pair, v0.37.0
    atom-ternjs, v0.5.2
    auto-update-packages, v0.2.2
    autocomplete-paths, v1.0.2
    autocomplete-plus, v2.4.0
    autocomplete-snippets, v1.0.1
    django-templates, v0.3.0
    editorconfig, v0.3.0
    emmet, v2.3.4
    file-icons, v1.5.0
    git-log, v0.3.0
    irc, v0.2.9
    language-csharp, v0.5.0
    language-jade, v0.3.0
    language-lua, v0.9.0
    language-puppet, v0.10.0
    language-restructuredtext, v0.3.0
    linter, v0.12.0
    linter-csslint, v0.0.11
    linter-flake8, v1.3.0
    linter-jshint, v0.1.0
    minimap, v4.5.0
    project-manager, v1.15.5
    quantum-syntax, v0.2.1
    quantum-ui, v0.2.0
    tabs-to-spaces, v0.8.1
    
    # Dev
    No dev packages
  2. tjmehta commented on Apr 22, 2015

    @tjmehta

    +1... This bug has been ongoing for over a week. Very annoying as I have just transitioned to atom.

    Atom Version: 0.192.0
    System: Mac OS X 10.10.1 (Yosemite)
    Thrown From: bracket-matcher package, v0.73.0

    REPRO STEPS:
    The problems is intermittent, but it frequently repros when I try to split-pane right
    (CMD+k right)

  3. winstliu commented on Apr 22, 2015

    @winstliu
    Contributor

    Is this reproducible in safe mode (atom --safe)?

  4. tjmehta commented on Apr 22, 2015

    @tjmehta

    I am unfamiliar with atom --safe will that still run with bracket-matcher enabled?

  5. winstliu commented on Apr 22, 2015

    @winstliu
    Contributor

    Yes. It only disables community packages (eg ones that you installed manually from Settings-->Install).

  6. irobayna commented on May 4, 2015

    @irobayna

    @50Wliu this does not happen when running atom --safe

  7. winstliu commented on May 4, 2015

    @winstliu
    Contributor

    In that case, this isn't an Atom bug. You can try to use the package-cop by @mark-hahn to figure out which package is causing this error.

  8. despairblue commented on Jul 2, 2015

    @despairblue

    FWIW: happened just to me. No idea how to get atom into this state, but when it's in this state:

    It happens when I try to open a new pane (ctrl-k, right arrow):

    [Enter steps to reproduce below:]
    Atom Version: 1.0.0
    System: "Arch Linux"
    Thrown From: bracket-matcher package, v0.76.0

    Stack Trace

    Uncaught TypeError: Cannot read property 'isEmpty' of undefined

    At /usr/share/atom/resources/app.asar/node_modules/bracket-matcher/lib/bracket-matcher-view.js:108
    
    TypeError: Cannot read property 'isEmpty' of undefined
      at BracketMatcherView.module.exports.BracketMatcherView.updateMatch (/usr/share/atom/resources/app.asar/node_modules/bracket-matcher/lib/bracket-matcher-view.js:108:42)
      at new BracketMatcherView (/usr/share/atom/resources/app.asar/node_modules/bracket-matcher/lib/bracket-matcher-view.js:74:12)
      at /usr/share/atom/resources/app.asar/node_modules/bracket-matcher/lib/main.js:30:9
      at /usr/share/atom/resources/app.asar/src/workspace.js:281:16
      at /usr/share/atom/resources/app.asar/src/workspace.js:338:18
      at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
      at PaneContainer.module.exports.PaneContainer.addedPaneItem (/usr/share/atom/resources/app.asar/src/pane-container.js:375:27)
      at /usr/share/atom/resources/app.asar/src/pane-container.js:357:19
      at /usr/share/atom/resources/app.asar/src/pane-container.js:127:16
      at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
      at PaneContainer.module.exports.PaneContainer.didAddPane (/usr/share/atom/resources/app.asar/src/pane-container.js:315:27)
      at Pane.module.exports.Pane.setContainer (/usr/share/atom/resources/app.asar/src/pane.js:100:26)
      at PaneAxis.module.exports.PaneAxis.addChild (/usr/share/atom/resources/app.asar/src/pane-axis.js:142:13)
      at PaneAxis.module.exports.PaneAxis.insertChildAfter (/usr/share/atom/resources/app.asar/src/pane-axis.js:214:19)
      at Pane.module.exports.Pane.split (/usr/share/atom/resources/app.asar/src/pane.js:690:23)
      at Pane.module.exports.Pane.splitRight (/usr/share/atom/resources/app.asar/src/pane.js:656:19)
      at atom-pane.atom.commands.add.pane:split-right (/usr/share/atom/resources/app.asar/src/pane-element.js:270:30)
      at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app.asar/src/command-registry.js:241:29)
      at /usr/share/atom/resources/app.asar/src/command-registry.js:3:61
      at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/usr/share/atom/resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:520:16)
      at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/usr/share/atom/resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:355:22)
      at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/usr/share/atom/resources/app.asar/src/window-event-handler.js:180:20)
    
    

    Commands

         -3:49.3.0 core:backspace (atom-text-editor.editor.is-focused)
      3x -2:17.3.0 core:close (atom-text-editor.editor.is-focused)
         -2:04.9.0 pane:split-right (atom-text-editor.editor.is-focused)
         -1:56 key-binding-resolver:toggle (atom-text-editor.editor.is-focused)
         -1:53.9.0 pane:split-right (atom-text-editor.editor.is-focused)
         -1:19.6.0 window:toggle-dev-tools (a.btn-issue.btn.btn-error)
         -1:07.9.0 pane:split-right (a.btn-issue.btn.btn-error)
         -1:00.6.0 editor:join-lines (atom-text-editor.editor.is-focused)
         -0:53.2.0 pane:split-right (atom-text-editor.editor.is-focused)
         -0:22.5.0 editor:consolidate-selections (atom-text-editor.editor.is-focused)
         -0:22.5.0 core:cancel (atom-text-editor.editor.is-focused)
         -0:19.6.0 key-binding-resolver:toggle (atom-text-editor.editor.is-focused)
         -0:19.1.0 editor:join-lines (atom-text-editor.editor.is-focused)
      4x -0:16.8.0 editor:select-line (atom-text-editor.editor.is-focused)
         -0:12.8.0 editor:join-lines (atom-text-editor.editor.is-focused)
         -0:03.7.0 pane:split-right (atom-text-editor.editor.is-focused)
    

    Config

    {
      "core": {
        "excludeVcsIgnoredPaths": false,
        "disabledPackages": [
          "atom-color-highlight",
          "atom-pair",
          "atomatigit",
          "autocomplete",
          "autocomplete",
          "es-navigation",
          "filetype-color",
          "grunt-runner",
          "incremental-search",
          "linter-eslint",
          "linter-jshint",
          "linter-scspell",
          "markdown-scroll-sync",
          "metrics",
          "minimap-color-highlight",
          "minimap-find-and-replace",
          "minimap-git-diff",
          "minimap-highlight-selected",
          "minimap",
          "navigate",
          "package-cop",
          "starred-package-installer",
          "symbols-tree-view",
          "tab-smart-sort",
          "Tern",
          "test-status",
          "themed-settings",
          "travis-ci-status",
          "tree-view-breadcrumb",
          "tree-view-open-files",
          "welcome",
          "zentabs",
          "tree-view"
        ],
        "projectHome": "/home/despairblue/vcs/git/",
        "destroyEmptyPanes": false,
        "autoHideMenuBar": true
      }
    }

    Installed Packages

    # User
    angularjs, v0.3.0
    atom-alignment, v0.12.1
    atom-beautify, v0.28.7
    atom-ternjs, v0.6.7
    atom-zeal, v0.1.3
    autocomplete-emojis, v2.2.2
    autocomplete-paths, v1.0.2
    block-travel, v1.0.2
    bug-report, v0.7.1
    color-picker, v2.0.7
    compare-files, v0.6.1
    editorconfig, v1.0.1
    file-icons, v1.5.8
    git-log, v0.4.1
    go-plus, v3.3.12
    grammar-token-limit, v0.1.1
    highlight-selected, v0.10.1
    indentation-indicator, v0.6.0
    javascript-snippets, v1.0.0
    jumpy, v2.0.9
    language-dockerfile, v0.1.0
    language-dot, v1.6.0
    language-fish-shell, v1.0.2
    language-haskell, v1.1.6
    language-latex, v0.6.1
    language-nimrod, v0.1.0
    language-puppet, v0.12.0
    language-tss, v0.4.0
    latex, v0.24.2
    linter, v1.1.0
    linter-coffeelint, v0.3.2
    linter-flow, v0.1.6
    linter-htmlhint, v0.0.17
    linter-js-standard, v1.0.5
    linter-js-yaml, v1.1.1
    linter-puppet-lint, v0.2.9
    linter-shellcheck, v0.0.8
    markdown-preview-opener, v0.1.1
    nuclide-click-to-symbol, vundefined
    nuclide-code-format, v0.0.0
    nuclide-diff-view, v0.0.0
    nuclide-file-tree, v0.0.0
    nuclide-file-watcher, v0.0.0
    nuclide-flow, v0.0.0
    nuclide-hack, v0.0.0
    nuclide-hg-repository, v0.0.0
    nuclide-installer, v0.0.0
    nuclide-language-hack, v0.0.0
    nuclide-quick-open, v0.0.0
    nuclide-remote-projects, v0.0.0
    nuclide-type-hint, v0.0.0
    package-sync, v0.2.0
    pane-layout-plus, v0.7.3
    pdf-view, v0.22.0
    pigments, v0.8.2
    project-manager, v1.15.10
    react, v0.12.3
    regex-railroad-diagram, v0.8.1
    sort-lines, v0.11.0
    swap-panes, v0.2.0
    tabs-to-spaces, v0.11.0
    
    # Dev
    linter, v1.1.0

    And when trying to join lines (ctrl-j)

    At /usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:745
    
    TypeError: Cannot read property 'isEmpty' of undefined
      at BracketMatcherView.module.exports.BracketMatcherView.updateMatch (/usr/share/atom/resources/app.asar/node_modules/bracket-matcher/lib/bracket-matcher-view.js:108:42)
      at /usr/share/atom/resources/app.asar/node_modules/bracket-matcher/lib/bracket-matcher-view.js:40:24
      at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
      at /usr/share/atom/resources/app.asar/src/text-editor.js:236:32
      at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
      at DisplayBuffer.module.exports.DisplayBuffer.emitDidChange (/usr/share/atom/resources/app.asar/src/display-buffer.js:311:20)
      at DisplayBuffer.module.exports.DisplayBuffer.updateScreenLines (/usr/share/atom/resources/app.asar/src/display-buffer.js:1562:19)
      at DisplayBuffer.module.exports.DisplayBuffer.handleTokenizedBufferChange (/usr/share/atom/resources/app.asar/src/display-buffer.js:1525:12)
      at /usr/share/atom/resources/app.asar/src/display-buffer.js:5:61
      at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
      at TokenizedBuffer.module.exports.TokenizedBuffer.handleBufferChange (/usr/share/atom/resources/app.asar/src/tokenized-buffer.js:403:27)
      at /usr/share/atom/resources/app.asar/src/tokenized-buffer.js:62:24
      at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
      at TextBuffer.module.exports.TextBuffer.applyChange (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:626:20)
      at TextBuffer.module.exports.TextBuffer.revertToCheckpoint (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:777:16)
      at TextBuffer.module.exports.TextBuffer.transact (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:743:14)
      at TextEditor.module.exports.TextEditor.transact (/usr/share/atom/resources/app.asar/src/text-editor.js:1152:26)
      at /usr/share/atom/resources/app.asar/src/text-editor.js:785:24
      at TextEditor.module.exports.TextEditor.mergeSelections (/usr/share/atom/resources/app.asar/src/text-editor.js:1990:43)
      at TextEditor.module.exports.TextEditor.mergeIntersectingSelections (/usr/share/atom/resources/app.asar/src/text-editor.js:1964:35)
      at TextEditor.module.exports.TextEditor.mutateSelectedText (/usr/share/atom/resources/app.asar/src/text-editor.js:783:19)
      at TextEditor.module.exports.TextEditor.joinLines (/usr/share/atom/resources/app.asar/src/text-editor.js:1058:19)
      at TextEditor.atom.commands.add.stopEventPropagationAndGroupUndo.editor:join-lines (/usr/share/atom/resources/app.asar/src/text-editor-element.js:619:19)
      at /usr/share/atom/resources/app.asar/src/text-editor-element.js:307:34
      at TextBuffer.module.exports.TextBuffer.transact (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:740:18)
      at TextEditor.module.exports.TextEditor.transact (/usr/share/atom/resources/app.asar/src/text-editor.js:1152:26)
      at atom-text-editor.newCommandListeners.(anonymous function) (/usr/share/atom/resources/app.asar/src/text-editor-element.js:306:22)
      at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app.asar/src/command-registry.js:241:29)
      at /usr/share/atom/resources/app.asar/src/command-registry.js:3:61
      at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/usr/share/atom/resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:520:16)
      at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/usr/share/atom/resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:355:22)
      at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/usr/share/atom/resources/app.asar/src/window-event-handler.js:180:20)
    
    

    or when typing, basically anything that would change the buffer

    At /usr/share/atom/resources/app.asar/node_modules/bracket-matcher/lib/bracket-matcher-view.js:108
    
    TypeError: Cannot read property 'isEmpty' of undefined
      at BracketMatcherView.module.exports.BracketMatcherView.updateMatch (/usr/share/atom/resources/app.asar/node_modules/bracket-matcher/lib/bracket-matcher-view.js:108:42)
      at /usr/share/atom/resources/app.asar/node_modules/bracket-matcher/lib/bracket-matcher-view.js:40:24
      at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
      at /usr/share/atom/resources/app.asar/src/text-editor.js:236:32
      at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
      at DisplayBuffer.module.exports.DisplayBuffer.emitDidChange (/usr/share/atom/resources/app.asar/src/display-buffer.js:311:20)
      at DisplayBuffer.module.exports.DisplayBuffer.updateScreenLines (/usr/share/atom/resources/app.asar/src/display-buffer.js:1562:19)
      at DisplayBuffer.module.exports.DisplayBuffer.handleTokenizedBufferChange (/usr/share/atom/resources/app.asar/src/display-buffer.js:1525:12)
      at /usr/share/atom/resources/app.asar/src/display-buffer.js:5:61
      at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
      at TokenizedBuffer.module.exports.TokenizedBuffer.handleBufferChange (/usr/share/atom/resources/app.asar/src/tokenized-buffer.js:403:27)
      at /usr/share/atom/resources/app.asar/src/tokenized-buffer.js:62:24
      at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
      at TextBuffer.module.exports.TextBuffer.applyChange (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:626:20)
      at TextBuffer.module.exports.TextBuffer.revertToCheckpoint (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:777:16)
      at TextBuffer.module.exports.TextBuffer.transact (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:743:14)
      at TextEditor.module.exports.TextEditor.transact (/usr/share/atom/resources/app.asar/src/text-editor.js:1152:26)
      at /usr/share/atom/resources/app.asar/src/text-editor.js:785:24
      at TextEditor.module.exports.TextEditor.mergeSelections (/usr/share/atom/resources/app.asar/src/text-editor.js:1990:43)
      at TextEditor.module.exports.TextEditor.mergeIntersectingSelections (/usr/share/atom/resources/app.asar/src/text-editor.js:1964:35)
      at TextEditor.module.exports.TextEditor.mutateSelectedText (/usr/share/atom/resources/app.asar/src/text-editor.js:783:19)
      at TextEditor.module.exports.TextEditor.insertText (/usr/share/atom/resources/app.asar/src/text-editor.js:743:21)
      at TextEditor.object.(anonymous function) [as insertText] (/usr/share/atom/resources/app.asar/node_modules/underscore-plus/lib/underscore-plus.js:77:27)
      at TextEditorComponent.module.exports.TextEditorComponent.onTextInput (/usr/share/atom/resources/app.asar/src/text-editor-component.js:444:35)
      at HTMLDivElement.<anonymous> (/usr/share/atom/resources/app.asar/src/text-editor-component.js:3:61)
    
    

    I hope the different stack traces help to pin down this issue.

  9. despairblue commented on Jul 2, 2015

    @despairblue

    btw closing the buffer and opening the same file again does not help. All other files work fine.

    Reloading atom helps. I think this might have something to do with updating packages using apm while atom is running. Just a hunch.

  10. budda commented on Jul 19, 2015

    @budda

    Like @despairblue mentioned, I got the same error when opening a new view pane > split right.

  11. tylerFowler commented on Jul 20, 2015

    @tylerFowler

    Also seeing this when trying to split a new pane (both via shortcut & context menu) but only as of today.

  12. 3 remaining items

  13. dos1 commented on Jul 23, 2015

    @dos1

    Well, made my comment straight from Atom's error dialog. Then I disabled the module (still failed), restarted (it worked), and then reenabled the module - and it still works.

  14. nathansobo commented on Jul 23, 2015

    @nathansobo
    Contributor

    The last selection is somehow getting removed from the editor, and I'm not sure how it's happening. I've added an assertion to report when it happens to our error tracker, but there's some noise right now caused by a legitimate situation where the selection is removed and then restored when splitting selections into lines. These spurious reports will be eliminated in the next release so hopefully it will be easier to track when it's happening.

  15. nathansobo commented on Jul 23, 2015

    @nathansobo
    Contributor

    It looks like a package called Sublime Style Column Selection is destroying the last selection in certain cases. Once we're sure none of our own packages do this, we should probably throw an error when this is attempted.

  16. dos1 commented on Jul 23, 2015

    @dos1

    I don't have this package installed:
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    └── [email protected]
    Atom 1.0.2 on GNU/Linux

  17. tylerFowler commented on Jul 23, 2015

    @tylerFowler

    Ok it seems like this is still randomly cropping up, reloading the window fixes the issue. I'll go ahead and work in Atom safe mode for a while and see if it still happens.

    My packages:

    System:
    OSX Yosemite on Early 2015 MBP w/ Atom Version 1.0.2 (latest)

  18. tylerFowler commented on Jul 23, 2015

    @tylerFowler

    Update: didn't happen in safe mode, though after I switched back to the regular Atom I found another nasty version of this where I'd get this error whenever I try to save (and the file won't save!).

  19. nathansobo commented on Jul 24, 2015

    @nathansobo
    Contributor

    Once I start throwing exceptions when removing the last selection we'll figure out when it's happening. It's also possible the bracket matcher is still attached to a destroyed editor (editors destroy all their selections when they are destroyed), but I don't know how that would happen.

  20. eighteyes commented on Jul 28, 2015

    @eighteyes

    Hit Cmd-K then right arrow seems to reproduce this pretty consistently

    $ apm list
    Built-in Atom packages (88)
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    └── [email protected]

    /Users/god/.atom/packages (26)
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    └── [email protected]

  21. nathansobo commented on Jul 28, 2015

    @nathansobo
    Contributor

    @eighteyes Try uninstalling Sublime-style-column-selection as it's a known culprit here.

  22. eighteyes commented on Jul 28, 2015

    @eighteyes

    ty :)

    On Tue, Jul 28, 2015 at 12:29 PM, Nathan Sobo [email protected]
    wrote:

    @eighteyes https://github.com/eighteyes Try uninstalling
    Sublime-style-column-selection as it's a known culprit here.

    —
    Reply to this email directly or view it on GitHub
    #102 (comment)
    .

  23. drom commented on Aug 5, 2015

    @drom

    [Enter steps to reproduce below:]

    1. Open JavaScript file
    2. Mouse-Right-Click >> Split Right

    Atom Version: 1.0.3
    System: "openSUSE 13.2
    Thrown From: bracket-matcher package, v0.76.0

    Stack Trace

    Uncaught TypeError: Cannot read property 'isEmpty' of undefined

    At /usr/share/atom/resources/app.asar/node_modules/bracket-matcher/lib/bracket-matcher-view.js:108
    
    TypeError: Cannot read property 'isEmpty' of undefined
      at BracketMatcherView.module.exports.BracketMatcherView.updateMatch (/usr/share/atom/resources/app.asar/node_modules/bracket-matcher/lib/bracket-matcher-view.js:108:42)
      at new BracketMatcherView (/usr/share/atom/resources/app.asar/node_modules/bracket-matcher/lib/bracket-matcher-view.js:74:12)
      at /usr/share/atom/resources/app.asar/node_modules/bracket-matcher/lib/main.js:30:9
      at /usr/share/atom/resources/app.asar/src/workspace.js:281:16
      at /usr/share/atom/resources/app.asar/src/workspace.js:342:18
      at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
      at PaneContainer.module.exports.PaneContainer.addedPaneItem (/usr/share/atom/resources/app.asar/src/pane-container.js:352:27)
      at /usr/share/atom/resources/app.asar/src/pane-container.js:334:19
      at /usr/share/atom/resources/app.asar/src/pane-container.js:96:16
      at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
      at PaneContainer.module.exports.PaneContainer.didAddPane (/usr/share/atom/resources/app.asar/src/pane-container.js:288:27)
      at Pane.module.exports.Pane.setContainer (/usr/share/atom/resources/app.asar/src/pane.js:100:26)
      at PaneAxis.module.exports.PaneAxis.addChild (/usr/share/atom/resources/app.asar/src/pane-axis.js:142:13)
      at PaneAxis.module.exports.PaneAxis.insertChildAfter (/usr/share/atom/resources/app.asar/src/pane-axis.js:214:19)
      at Pane.module.exports.Pane.split (/usr/share/atom/resources/app.asar/src/pane.js:712:23)
      at Pane.module.exports.Pane.splitRight (/usr/share/atom/resources/app.asar/src/pane.js:678:19)
      at atom-pane.atom.commands.add.pane:split-right (/usr/share/atom/resources/app.asar/src/pane-element.js:270:30)
      at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app.asar/src/command-registry.js:241:29)
      at CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app.asar/src/command-registry.js:3:61)
      at CommandRegistry.module.exports.CommandRegistry.dispatch (/usr/share/atom/resources/app.asar/src/command-registry.js:156:19)
      at [object Object].jQuery.fn.trigger (/usr/share/atom/resources/app.asar/src/space-pen-extensions.js:64:23)
      at EventEmitter.<anonymous> (/usr/share/atom/resources/app.asar/src/window-event-handler.js:75:67)
      at emitTwo (events.js:87:13)
      at EventEmitter.emit (events.js:169:7)
      at EventEmitter.ipc.sendSync (/usr/share/atom/resources/atom.asar/renderer/api/lib/ipc.js:21:31)
      at BrowserWindow.RemoteMemberFunction [as emit] (/usr/share/atom/resources/atom.asar/renderer/api/lib/remote.js:110:29)
      at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (/usr/share/atom/resources/app.asar/src/context-menu-manager.js:170:31)
      at HTMLDocument.<anonymous> (/usr/share/atom/resources/app.asar/src/window-event-handler.js:150:33)
      at HTMLDocument.handler (/usr/share/atom/resources/app.asar/src/space-pen-extensions.js:112:34)
      at HTMLDocument.jQuery.event.dispatch (/usr/share/atom/resources/app.asar/node_modules/space-pen/vendor/jquery.js:4681:9)
      at HTMLDocument.elemData.handle (/usr/share/atom/resources/app.asar/node_modules/space-pen/vendor/jquery.js:4359:46)
    
    

    Commands

      2x -0:17.3.0 pane:show-next-item (atom-text-editor.editor.is-focused)
    

    Config

    {
      "core": {
        "audioBeep": false,
        "themes": [
          "atom-dark-ui",
          "atom-dark-syntax"
        ]
      }
    }

    Installed Packages

    # User
    atom-beautify, v0.28.8
    atom-html-preview, v0.1.11
    atom-ternjs, v0.7.1
    git-log, v0.4.1
    language-dot, v1.6.0
    language-jade, v0.6.2
    language-pegjs, v0.5.0
    language-rust, v0.4.4
    language-verilog, v0.3.0
    linter, v1.3.0
    linter-eslint, v3.0.2
    linter-rust, v0.2.6
    markdown-preview-katex, v0.3.4
    minimap, v4.12.2
    pdf-view, v0.23.0
    regex-railroad-diagram, v0.8.3
    rust-api-docs-helper, v0.5.1
    svg-preview, v0.6.1
    tabs-to-spaces, v0.11.0
    tidy-markdown, v1.0.0
    travis-ci-status, v0.16.0
    
    # Dev
    No dev packages
  24. drom commented on Aug 17, 2015

    @drom

    it is annoying 😞

  25. added a commit that references this issue on Aug 27, 2015
    4bbc1d8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions