idea-multimarkdown icon indicating copy to clipboard operation
idea-multimarkdown copied to clipboard

Consider migrating to JCEF for the preview

Open prigara opened this issue 4 years ago • 9 comments

Hello,

Starting with version 2020.2 of the IDE, JavaFX is no longer bundled with the default JetBrains Runtime. As an alternative to these APIs, there's now integration with JCEF, which is a Java port of the CEF framework for embedding Chromium-based browsers in applications using Swing.

The IntelliJ team belives that JCEF will provide better stability and performance compared to JavaFX.

In IJ 2020.2 you can only use the default Swing preview in the Markdown Navigator plugin.

Adding the JavaFX Runtime for Plugins plugin and switching to the JavaFX preview, unfortunately, results in the IDE crash (it's probably related to the use of a newer, 11th version of JavaFX in the plugin).

prigara avatar Jul 24 '20 14:07 prigara

@vsch Hey Vlad, could you point me to the basic Github CSS that would work with the Spring preview? I was using the one with this comments on top, but now it looks quite messy and I have no idea how to get the right classes to edit.

github.com style (c) Vasily Polovnyov [email protected] modified for idea darcula (c) Vladimir Schneider [email protected]

ddnexus avatar Aug 04 '20 12:08 ddnexus

It seems that the latest versions use JCEF already. However, for me the integration with Markdown Navigator is highly buggy.

There are multiple issues (for me)

  • orphan JCEP helper processes (in system task manager) that consumes lots of cpu time.
  • very slow and laggy preview (which is not due to the renderer because the JB plugin is blazingly fast here)
  • can't copy RTF from preview anymore
  • preview often dies and does not update anymore (editor close & reopen needed)
  • Almost impossible to edit complex documents (with multiple images and a few hundred words) because it lags constantly and the editor almost freezes.

UX isso poor with JCEF preview being enabled for MN, that I had to switch back to JB Markdown plugin after several years of fun with MN. :-(

I'm happy to assist tracking down these issues. Alternatively, it would be great if the old preview could be brought back.

holgerbrandl avatar Nov 16 '20 20:11 holgerbrandl

orphan JCEP helper processes (in system task manager) that consumes lots of cpu time.

I am also encountering the issue of high CPU load due to jcef_helper in 3.0.202.112 with IU-203.5981.155.

breandan avatar Dec 10 '20 19:12 breandan

Also seeing high CPU usage

IntelliJ IDEA 2021.1.1 (Ultimate Edition)
Build #IU-211.7142.45, built on April 30, 2021
com.vladsch.idea.multimarkdown (3.0.202.112)

blevine avatar May 05 '21 20:05 blevine

orphan JCEP helper processes (in system task manager) that consumes lots of cpu time.

I see that a lot... monitoring it and killing the process became a very distracting burden

ddnexus avatar May 05 '21 22:05 ddnexus

orphan JCEP helper processes (in system task manager) that consumes lots of cpu time.

I see that a lot... monitoring it and killing the process became a very distracting burden

Same here!

kettenbach-it avatar Jun 07 '21 08:06 kettenbach-it

Seeing high CPU in Activity Monitor for the JCEF helper too.

vjpr avatar Sep 01 '21 22:09 vjpr

This issue has been opened more than 1 year, any plan to fix it? The orphan JCEF processes often appeared and caused 100% CPU usage.

sh2sg avatar Jan 13 '22 11:01 sh2sg

The plugin is not supported anymore by its developer: https://github.com/vsch/idea-multimarkdown/issues/918 You need to use the Jetbrains markdown plugin

kettenbach-it avatar Jan 13 '22 13:01 kettenbach-it