Open jimklo opened 8 years ago
I have the same issue with Atom version 1.9.8 and package version 0.2.0
I think it`s still not fixed. version 0.2.1 atom 1.10.2
TypeError: Cannot read property 'length' of null
at /Users/zk/.atom/packages/table-editor/lib/table-processors.coffee:105:42
at Object.exports.parseString (/Users/zk/.atom/packages/table-editor/node_modules/asciiparse/index.js:112:3)
at processMarkdownTable (/Users/zk/.atom/packages/table-editor/lib/table-processors.coffee:85:27)
at /Users/zk/.atom/packages/table-editor/lib/table-processors.coffee:152:3
at TableFormatter.module.exports.TableFormatter.getFormattedTableText (/Users/zk/.atom/packages/table-editor/lib/table-formatter.coffee:89:21)
at TableFormatter.module.exports.TableFormatter.getSelectionRanges (/Users/zk/.atom/packages/table-editor/lib/table-formatter.coffee:152:17)
at Object.module.exports.TableEditor.formatTable (/Users/zk/.atom/packages/table-editor/lib/table-editor.coffee:199:7)
at atom-text-editor.subscriptions.add.atom.commands.add.table-editor:next-cell (/Users/zk/.atom/packages/table-editor/lib/table-editor.coffee:33:37)
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)
I suspect this bug has the same root cause as issues #2, #3, #4, and #5: they are all trying to work with a null object.
[Enter steps to reproduce below:]
Here's the RST table that throws the error:
Atom Version: 1.7.4 System: Mac OS X 10.10.5 Thrown From: table-editor package, v0.2.0
Stack Trace
Uncaught TypeError: Cannot read property 'replace' of undefined
Commands
Config
Installed Packages