Markdown preview is blank

Answered

Markdown preview is blank when running Idea on WSL Ubuntu.

Is there a workaround/fix?

2018-12-31 17:52:29,402 [1144834] ERROR - llij.ide.plugins.PluginManager - TypeError: null is not an object (evaluating 'document.body.scrollTop')
netscape.javascript.JSException: TypeError: null is not an object (evaluating 'document.body.scrollTop')
at com.sun.webkit.dom.JSObject.fwkMakeException(JSObject.java:156)
at com.sun.webkit.WebPage.twkExecuteScript(Native Method)
at com.sun.webkit.WebPage.executeScript(WebPage.java:1509)
at javafx.scene.web.WebEngine.executeScript(WebEngine.java:1005)
at org.intellij.plugins.markdown.ui.preview.javafx.MarkdownJavaFxHtmlPanel$ScrollPreservingListener.changed(MarkdownJavaFxHtmlPanel.java:183)
at org.intellij.plugins.markdown.ui.preview.javafx.MarkdownJavaFxHtmlPanel$ScrollPreservingListener.changed(MarkdownJavaFxHtmlPanel.java:176)
at com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:361)
at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
at javafx.beans.property.ReadOnlyObjectPropertyBase.fireValueChangedEvent(ReadOnlyObjectPropertyBase.java:74)
at javafx.beans.property.ReadOnlyObjectWrapper.fireValueChangedEvent(ReadOnlyObjectWrapper.java:102)
at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:112)
at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:146)
at javafx.scene.web.WebEngine$LoadWorker.updateState(WebEngine.java:1287)
at javafx.scene.web.WebEngine$LoadWorker.dispatchLoadEvent(WebEngine.java:1388)
at javafx.scene.web.WebEngine$LoadWorker.access$1200(WebEngine.java:1280)
at javafx.scene.web.WebEngine$PageLoadListener.dispatchLoadEvent(WebEngine.java:1267)
at com.sun.webkit.WebPage.fireLoadEvent(WebPage.java:2498)
at com.sun.webkit.WebPage.fwkFireLoadEvent(WebPage.java:2342)
at com.sun.webkit.WebPage.twkLoad(Native Method)
at com.sun.webkit.WebPage.load(WebPage.java:1261)
at javafx.scene.web.WebEngine.loadContent(WebEngine.java:957)
at javafx.scene.web.WebEngine.loadContent(WebEngine.java:942)
at com.intellij.ui.javafx.JavaFxHtmlPanel.lambda$setHtml$6(JavaFxHtmlPanel.java:87)
at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at com.sun.glass.ui.gtk.GtkApplication.lambda$null$5(GtkApplication.java:139)
at java.lang.Thread.run(Thread.java:745)
2018-12-31 17:52:29,403 [1144835] ERROR - llij.ide.plugins.PluginManager - IntelliJ IDEA 2018.3.2 Build #IU-183.4886.37
2018-12-31 17:52:29,403 [1144835] ERROR - llij.ide.plugins.PluginManager - JDK: 1.8.0_152-release; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o
2018-12-31 17:52:29,403 [1144835] ERROR - llij.ide.plugins.PluginManager - OS: Linux
3 comments
Comment actions Permalink

I have been getting this error in my logs recently as well in PHPStorm and blank output from the markdown preview. If I restart the IDE it works but as soon as I type anything in the editor part the preview goes blank until I restart.

1
Comment actions Permalink

If it happens with current IDE and Markdown versions, I'd file a new bug at https://youtrack.jetbrains.com/issues/RUBY and attach the logs there (https://intellij-support.jetbrains.com/hc/articles/207241085).

0

Please sign in to leave a comment.