qjebbs/vscode-plantuml

Preview not working

owingruters opened this issue · 2 comments

Hi,

I have a new machine and for the first time having issues with the preview on latest windows 10, latest VS code:
image

I have tried a few things:

  • reinstalled, both 64 and 32 bit versions of VS code
  • added C:\Users\user.vscode\extensions\jebbs.plantuml-2.17.4 to the PATH environmental variables
  • tried the image image generation directly though plantuml (https://plantuml.com/command-line) works
  • java (1.8.0_341) and graphviz installed
  • code is working on another VS instance and online

[Update 27-9-2022]
VS code log (window) says: "[renderer1] [error] [Extension Host] (node:31996) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency"

Any ideas?

Solved by reinstalling Java JRE. First delete all instances viaadd/remove programs then use chocolatey (cinst jre8) to install
(BTW: windows 10)

Correction: this is apparently https://stackoverflow.com/questions/73262723/get-rid-of-a-jni-resolve-warning-about-java-lang-panwhooks-on-java-exe-startup, so well out of scope for both vscode-plantuml and plantuml

I'm seeing the same problem - in my case it appears to be caused by a plantuml bug. When plantuml is used with -pipe and it emits any warnings, those warnings will be included in the output (as opposed to going through stderr). This effectively corrupts most or all output formats and leads to very confusing errors.

I'll see if I can/need to report this to plantuml to be fixed there. In the meantime: the specific warning I'm seeing is

[0.044s][warning][jni,resolve] Re-registering of platform native method: java.lang.PanwHooks.NativeMethodEntry(Ljava/lang/Object;ILjava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V from code in a different classloader

.. and if anyone happens to know how I can resolve that so I can at least continue my work, I'm all ears.