Markdown-preview-enhanced: Not working with Atom 1.41.0 ?

Created on 24 Oct 2019  ·  6Comments  ·  Source: shd101wyy/markdown-preview-enhanced

Windows 10 Pro 1809 17763.720
Atom 1.41.0 (x64)
MPE: 0.16.3

This morning, only "Loading Preview" is displayed.

It worked until yesterday.

It seems that Atom 1.41.0 was released yesterday and updated automatically.

https://github.com/atom/atom/releases/tag/v1.41.0

It worked after installing Atom 1.40.1

Most helpful comment

Hi @all, I just published a new release, which should fix the problem. Cheers :)

All 6 comments

This is unfortunate. I haven't been using atom for a while ever since I switched to vscode.
Not sure If I will have time to fix it this weekend, but I will try.
Thank you.

Many thanks @shd101wyy!

cc @jwoLondon (the issue might affect litvis again)

Following exception can be seen in dev tools console when invoking the preview:

Uncaught (in promise) Error: The WebView must be attached to the DOM and the dom-ready event emitted before this method can be called.
    at getGuestInstanceId (/usr/share/atom/resources/electron.asar/renderer/web-view/web-view.js:241)
    at HTMLElement.send (/usr/share/atom/resources/electron.asar/renderer/web-view/web-view.js:272)
    at MarkdownPreviewEnhancedView.postMessage (preview-content-provider.ts:769)
    at MarkdownPreviewEnhancedView.<anonymous> (preview-content-provider.ts:240)
    at Generator.next (<anonymous>)
    at /home/mgetka/.atom/packages/markdown-preview-enhanced/out/src/preview-content-provider.js:7
    at new Promise (<anonymous>)
    at __awaiter (/home/mgetka/.atom/packages/markdown-preview-enhanced/out/src/preview-content-provider.js:3)
    at MarkdownPreviewEnhancedView.loadPreview (preview-content-provider.ts:238)
    at MarkdownPreviewEnhancedView.<anonymous> (preview-content-provider.ts:165)
    at Generator.next (<anonymous>)
    at /home/mgetka/.atom/packages/markdown-preview-enhanced/out/src/preview-content-provider.js:7
    at new Promise (<anonymous>)
    at __awaiter (/home/mgetka/.atom/packages/markdown-preview-enhanced/out/src/preview-content-provider.js:3)
    at MarkdownPreviewEnhancedView.initEvents (preview-content-provider.ts:140)
    at atom.workspace.open.then (preview-content-provider.ts:223)

System info:

$ uname -srv
Linux 5.0.0-32-generic #34~18.04.2-Ubuntu SMP Thu Oct 10 10:36:02 UTC 2019
$ atom -v
Atom    : 1.41.0
Electron: 4.2.7
Chrome  : 69.0.3497.128
Node    : 10.11.0

Working on the fix now. Will be done soon hopefully. Thanks.

Hi @all, I just published a new release, which should fix the problem. Cheers :)

Thanks a lot !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

adamaltmejd picture adamaltmejd  ·  5Comments

fengxs269 picture fengxs269  ·  4Comments

AdexoMing picture AdexoMing  ·  3Comments

lambdafu picture lambdafu  ·  3Comments

abhayghatpande picture abhayghatpande  ·  5Comments