vsch / idea-multimarkdown

Markdown language support for IntelliJ IDEA.
https://plugins.jetbrains.com/plugin/7896-markdown-navigator
Apache License 2.0
812 stars 129 forks source link

Consider migrating to JCEF for the preview #873

Open prigara opened 4 years ago

prigara commented 4 years ago

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).

ddnexus commented 4 years ago

@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 vast@whiteants.net modified for idea darcula (c) Vladimir Schneider vladimir.schneider@gmail.com

holgerbrandl commented 3 years ago

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)

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.

breandan commented 3 years ago

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.

blevine commented 3 years ago

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)
ddnexus commented 3 years ago

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

kettenbach-it commented 3 years ago

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!

vjpr commented 2 years ago

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

sh2sg commented 2 years ago

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.

kettenbach-it commented 2 years ago

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