Closed danielbayley closed 8 years ago
Same error message for me. Just upgraded to v2.1.1.
On the pane with the markdown preview tab in it, I also had a tab containing an unsaved, untitled text file. Switching to this unsaved file from any other tab triggered the error.
Saving the text file (no extension needed) fixed the behaviour for me.
Atom Version: 1.4.3 System: Mac OS X 10.10.5 Thrown From: markdown-scroll-sync package, v2.1.1
Uncaught TypeError: Cannot read property 'split' of undefined
At /Users/chris/.atom/packages/markdown-scroll-sync/lib/main.coffee:29
TypeError: Cannot read property 'split' of undefined
at isMarkdown (/Users/chris/.atom/packages/markdown-scroll-sync/lib/main.coffee:29:46)
at /Users/chris/.atom/packages/markdown-scroll-sync/lib/main.coffee:33:10
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 /Applications/Atom.app/Contents/Resources/app.asar/src/pane-container.js:333:27
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 Pane.module.exports.Pane.setActiveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:248:22)
at Pane.module.exports.Pane.activateItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:316:21)
at Pane.module.exports.Pane.activateItemAtIndex (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:310:19)
at Pane.module.exports.Pane.activatePreviousItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:277:21)
at Pane.module.exports.Pane.removeItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:391:16)
at Pane.module.exports.Pane.destroyItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:453:16)
at atom-tabs.TabBarView.onClick (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/tabs/lib/tab-bar-view.js:695:17)
-0:40.2.0 core:save (atom-text-editor.editor.is-focused)
-0:07.3.0 markdown-preview:toggle (atom-text-editor.editor.is-focused)
{
"core": {
"openEmptyEditorOnStart": false,
"projectHome": "/Users/chris/path/to/a/project"
}
}
# User
clock, v1.5.0
markdown-scroll-sync, v2.1.1
terminal-plus, v0.14.5
# Dev
No dev packages
Fixed in 2.1.2
Thanks.,
Nice one :+1:
Opening a source-preview pane triggers the following error from this package…
Atom Version: 1.4.3 System: Mac OS X 10.11.3 Thrown From: markdown-scroll-sync package, v2.1.1
Stack Trace
Uncaught TypeError: Cannot read property 'split' of undefined
Commands
Config
Installed Packages