skuro / plantuml-mode

A major mode for editing PlantUML sources in Emacs
GNU General Public License v3.0
511 stars 96 forks source link

Only display stdout in preview #135

Closed xeruf closed 2 years ago

xeruf commented 3 years ago

Due to my JVM configuration, every run of java prints the following message to stderr:

Picked up _JAVA_OPTIONS: [...]

The problem is that that ends up in the preview buffer above the actual image - thus I have to always enter the buffer, remove the first line and press C-cC-c to view the actual image, which is super annoying.

I think stderr should never end up in there anyways...

See also https://superuser.com/questions/585695/suppressing-the-picked-up-java-options-message

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

xeruf commented 3 years ago

I tinkered a little, but my el-fu isn't good enough :/

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

a1exsh commented 2 years ago

I'm hitting a very similar issue, but the stderr contains the following: [Log] "dynamic undefined legend colors" requires PlantUML version >= 1.2021.6, therefore only static assigned colors are used

This, not unexpectedly, breaks the preview.

Fixing it will require moving away from start-process to make-process, it seems.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.