Closed Bambunote closed 3 years ago
Sorry but I have the same problem.
My OS is Windows10 Professional
[Enter steps to reproduce:]
Atom: 1.57.0 x64 Electron: 9.4.4 OS: Unknown Windows version Thrown From: markdown-preview-plus package 4.11.0
Error reported when Markdown Preview Plus view is loading
At Cannot read property 'moveToSuccessor' of undefined
TypeError: Cannot read property 'moveToSuccessor' of undefined
at HighlightIterator.moveToSuccessor (~/AppData/Local/atom/app-1.57.0/resources/app/static/<embedded>:11:3423669)
at /packages/markdown-preview-plus/dist/main.js:1:199782
at /packages/markdown-preview-plus/dist/main.js:1:198971
at async Promise.all (index 15)
at Ei (/packages/markdown-preview-plus/dist/main.js:1:197589)
at /packages/markdown-preview-plus/dist/main.js:1:76242)
at Bo.renderMarkdownText (/packages/markdown-preview-plus/dist/main.js:1:225684)
-4:31 tree-view:remove (span.name.icon.icon-file-text)
2x -4:20.9.0 intentions:highlight (input.hidden-input)
-4:18.3.0 markdown-preview-plus:toggle (input.hidden-input)
-0:36.6.0 settings-view:open (a.btn-issue.btn.btn-error)
-0:19.6.0 pane:reopen-closed-item (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
-0:06.8.0 intentions:highlight (input.hidden-input)
-0:06.0 markdown-preview-plus:toggle (input.hidden-input)
busy-signal 2.0.1
gcc-make-run 0.2.12
intentions 2.1.1
linter 3.4.0
linter-gcc 0.9.0
linter-ui-default 3.4.1
markdown-preview-plus 4.11.0
simplified-chinese-menu 5.3.5
Which is a completely different error... and Atom is being a donkey sending people to a closed issue. Investigating. May take a bit.
Actually, a minimal testcase would be really helpful, if you can provide one.
Yeah... actually, I can't really debug this without a testcase. Something apparently goes wrong in the Atom internals here, and without understanding what causes that, I can't really fix the issue. I only can suppress the error itself, which wouldn't be very helpful. So I really need a document on which this happens and maybe a reproduction guide if this doesn't happen every time.
In the meantime, the error is thrown from tree-sitter highlighter, apparently. The workaround is to switch to the legacy highlighter, i.e. set this in the markdown-preview-plus settings:
SORRY but I am just a noob user ( a middle school student from China ) . Please forgive me for not answering your comment. I was busy fixing a bug in another code of mine. There was an update uploaded and I just downloaded it and it may (or must) fix the bug. Thanks Atom (Though I've just used it for only 5 days) . Maybe I can close the comment. Thanks @lierdakil .
Sorry Maybe I can close the issue.
The point of the update was to fix the hard crash only, but the error message should still pop up (if it happens, that is). Anyway, if the issue doesn't reproduce, then maybe it was a one-off hiccup. If a scary-looking error message pops up again, though, feel free to open a new issue. Also, when creating an issue here, try to include sample input (i.e. Markdown source) which prompts the error message if possible and/or applicable.
Thank you , but it does disappeared.
Maybe the update also fixed the problem indirectly.
------------------ 原始邮件 ------------------ 发件人: "Nikolay @.>; 发送时间: 2021年7月27日(星期二) 晚上10:06 收件人: @.>; 抄送: @.>; "State @.>; 主题: Re: [atom-community/markdown-preview-plus] Any reason why this issue was closed? I'm having the same error. (#527)
The point of the update was to fix the hard crash only, but the error message should still pop up (if it happens, that is). Anyway, if the issue doesn't reproduce, then maybe it was a one-off hiccup. If a scary-looking error message pops up again, though, feel free to open a new issue. Also, when creating an issue here, try to include sample input (i.e. Markdown source) which prompts the error message if possible and/or applicable.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.
Any reason why this issue was closed? I'm having the same error.
[Enter steps to reproduce:]
Atom: 1.57.0 x64 Electron: 9.4.4 OS: macOS 11.4 Thrown From: markdown-preview-plus package 4.10.0
Stack Trace
Error reported when Markdown Preview Plus view is loading
Commands
Non-Core Packages
Originally posted by @rjbergerud in https://github.com/atom-community/markdown-preview-plus/issues/508#issuecomment-858070591