Skip to content

Uncaught TypeError: Cannot read property 'match' of undefined #4

@mmattozzi

Description

@mmattozzi

Created table

| a | b |
| 1 | 2 |
| 3   

Pressed tab when cursor was after 'a'

Atom Version: 1.7.0-beta0
System: Mac OS X 10.9.5
Thrown From: table-editor package, v0.2.0

Stack Trace

Uncaught TypeError: Cannot read property 'match' of undefined

At /Users/mmattozzi/Dropbox/Atom/packages/table-editor/lib/table-editor.coffee:104

TypeError: Cannot read property 'match' of undefined
    at Object.module.exports.TableEditor.isInTable (/Users/mmattozzi/Dropbox/Atom/packages/table-editor/lib/table-editor.coffee:104:12)
    at Object.module.exports.TableEditor.getTableForSelection (/Users/mmattozzi/Dropbox/Atom/packages/table-editor/lib/table-editor.coffee:155:12)
    at Object.module.exports.TableEditor.getTablesForSelections (/Users/mmattozzi/Dropbox/Atom/packages/table-editor/lib/table-editor.coffee:140:19)
    at Object.module.exports.TableEditor.formatTable (/Users/mmattozzi/Dropbox/Atom/packages/table-editor/lib/table-editor.coffee:175:25)
    at atom-text-editor.subscriptions.add.atom.commands.add.table-editor:next-cell (/Users/mmattozzi/Dropbox/Atom/packages/table-editor/lib/table-editor.coffee:33:37)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at /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.handleDocumentKeyEvent (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/window-event-handler.js:98:36)
    at HTMLDocument.<anonymous> (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)

Commands

     -0:41.7.0 editor:indent (atom-text-editor.editor.is-focused)
     -0:38.4.0 editor:newline (atom-text-editor.editor.is-focused.table-editor-active)
     -0:36.5.0 snippets:next-tab-stop (atom-text-editor.editor.is-focused)
     -0:36.5.0 snippets:expand (atom-text-editor.editor.is-focused)
     -0:36.5.0 editor:indent (atom-text-editor.editor.is-focused)
     -0:35.9.0 snippets:next-tab-stop (atom-text-editor.editor.is-focused)
     -0:35.9.0 snippets:expand (atom-text-editor.editor.is-focused)
     -0:35.9.0 editor:indent (atom-text-editor.editor.is-focused)
     -0:32 core:select-all (atom-text-editor.editor.is-focused)
     -0:31.1.0 command-palette:toggle (atom-text-editor.editor.is-focused)
 10x -0:24.6.0 core:move-down (atom-text-editor.editor.mini.is-focused)
     -0:23.2.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
     -0:23.2.0 core:cancel (atom-text-editor.editor.mini.is-focused)
     -0:02.7.0 core:move-up (atom-text-editor.editor.is-focused)
  3x -0:01.5.0 core:move-right (atom-text-editor.editor.is-focused.table-editor-active)
     -0:00.5.0 table-editor:next-cell (atom-text-editor.editor.is-focused.table-editor-active)

Config

{
  "core": {
    "disabledPackages": [
      "whitespace"
    ]
  }
}

Installed Packages

# User
compactor, v0.0.0
pretty-json, v0.3.3
table-editor, v0.2.0

# Dev
No dev packages

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions