Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot read property 'length' of undefined #46

Open
sailxjx opened this issue May 6, 2016 · 0 comments
Open

Uncaught TypeError: Cannot read property 'length' of undefined #46

sailxjx opened this issue May 6, 2016 · 0 comments

Comments

@sailxjx
Copy link

sailxjx commented May 6, 2016

[Enter steps to reproduce below:]

  1. Edit markdown file
  2. command+shift+p -> tiny-markdown run

Atom Version: 1.7.3
System: Mac OS X 10.11.4
Thrown From: tidy-markdown package, v3.0.0

Stack Trace

Uncaught TypeError: Cannot read property 'length' of undefined

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

TypeError: Cannot read property 'length' of undefined
    at extractRows (/Users/tristan/.atom/packages/tidy-markdown/node_modules/tidy-markdown/lib/tables.coffee:83:36)
    at Object.module.exports.replacement (/Users/tristan/.atom/packages/tidy-markdown/node_modules/tidy-markdown/lib/converters.coffee:130:28)
    at process (/Users/tristan/.atom/packages/tidy-markdown/node_modules/tidy-markdown/lib/index.coffee:208:33)
    at module.exports (/Users/tristan/.atom/packages/tidy-markdown/node_modules/tidy-markdown/lib/index.coffee:270:5)
    at TidyMarkdown.run (/Users/tristan/.atom/packages/tidy-markdown/lib/index.coffee:40:17)
    at /Users/tristan/.atom/packages/tidy-markdown/lib/index.coffee:21:12
    at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:828:18)
    at /Users/tristan/.atom/packages/tidy-markdown/lib/index.coffee:19:14
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at TextBuffer.module.exports.TextBuffer.saveAs (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1091:20)
    at TextBuffer.module.exports.TextBuffer.save (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1083:19)
    at TextEditor.module.exports.TextEditor.save (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:660:26)
    at Pane.module.exports.Pane.saveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:718:18)
    at Pane.module.exports.Pane.saveActiveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:701:19)
    at Workspace.module.exports.Workspace.saveActivePaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:684:35)
    at atom-workspace.commandRegistry.add.core:save (/Applications/Atom.app/Contents/Resources/app.asar/src/register-default-commands.js:214:32)
    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:580:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:388:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:98:36)
    at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)

Commands

     -0:22.3.0 autocomplete-plus:confirm (atom-text-editor.editor.is-focused.autocomplete-active)
  2x -0:21.5.0 core:move-down (atom-text-editor.editor.is-focused)
  3x -0:20.8.0 editor:move-to-end-of-word (atom-text-editor.editor.is-focused)
  4x -0:19.5.0 core:undo (atom-text-editor.editor.is-focused)
     -0:17.4.0 core:move-down (atom-text-editor.editor.is-focused)
  3x -0:17.1.0 editor:move-to-end-of-word (atom-text-editor.editor.is-focused)
  3x -0:16.5.0 core:move-right (atom-text-editor.editor.is-focused)
     -0:16 editor:select-to-end-of-word (atom-text-editor.editor.is-focused)
     -0:15.6.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:14.6.0 editor:move-to-first-character-of-line (atom-text-editor.editor.is-focused.autocomplete-active)
     -0:14.5.0 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)
     -0:13.8.0 editor:move-to-first-character-of-line (atom-text-editor.editor.is-focused)
     -0:13.7.0 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)
     -0:13.6.0 core:save (atom-text-editor.editor.is-focused)
     -0:13.3.0 editor:move-to-first-character-of-line (atom-text-editor.editor.is-focused)
  2x -0:13.2.0 core:save (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "ignoredNames": [
      ".git",
      ".svn",
      ".DS_Store"
    ],
    "themes": [
      "atom-dark-ui",
      "atom-dark-syntax"
    ]
  },
  "tidy-markdown": {
    "ensureFirstHeaderIsH1": false
  }
}

Installed Packages

# User
atom-beautify, v0.29.7
docblockr, v0.7.3
linter, v1.11.4
linter-js-standard, v3.3.2
pretty-json, v1.0.3
standard-formatter, v2.0.0
tidy-markdown, v3.0.0

# Dev
No dev packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant