You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Atom: 1.24.1 x64 Electron: 1.6.16 OS: Mac OS X 10.13.3 Thrown From: document-outline package 2.1.1
Stack Trace
Uncaught TypeError: Cannot read property 'getCursorBufferPosition' of undefined
At /Users/daiyuanming/.atom/packages/document-outline/lib/outline-tree.js:97
TypeError: Cannot read property 'getCursorBufferPosition' of undefined
at OutlineTreeView.didClick (/packages/document-outline/lib/outline-tree.js:97:29)
I always run into this issue when I click on a header in the document-outline sidebar while the Markdown preview from markdown-preview-plus is the active windowpane.
Ideally document-outline would be made fully compatible with markdown-preview-plus, i.e. both the actual Markdown document as well as any an opened preview windowpane would scroll to the respective section of the document when a header is clicked in the document-outline sidebar, too. That would be awesome! Note that it doesn't have to be synchronized, i.e. it's not necessary that both the actual Markdown and the preview are scrolled together, because markdown-preview-plus already offers that synchronization!
As a presumably easier-to-implement workaround a message could be shown about having the "wrong" windowpane active (preview instead of actual document).
I've looked a bit closer right now, and the issue seems not actually the clicking on a link in the outline. Rather, the outline pane doesn't detect that it should be closed when the active tab changes to a PDF preview - or e.g. the Settings.
[Enter steps to reproduce:]
Atom: 1.24.1 x64
Electron: 1.6.16
OS: Mac OS X 10.13.3
Thrown From: document-outline package 2.1.1
Stack Trace
Uncaught TypeError: Cannot read property 'getCursorBufferPosition' of undefined
Commands
Non-Core Packages
The text was updated successfully, but these errors were encountered: