qjebbs / vscode-plantuml

Rich PlantUML support for Visual Studio Code.
MIT License
1.1k stars 158 forks source link

v2.17.5 - Wrong plantuml jar file included in vscode install #528

Open guideloom opened 1 year ago

guideloom commented 1 year ago

when installing 2.17.5 from within vscode (ext install plantuml), the docs state it uses jar 1.2202.14.

image

However, when running the actual jar installed by the system, it identifies as 1.2022.7. Yes, I've already completely uninstalled the extension, AND removed the extension on the remote server before re-installing.

[2053 ~]$ cd .vscode-server/extensions/jebbs.plantuml-2.17.5/

[2054  jebbs.plantuml-2.17.5]$ ls -l
total 10000
-rw-rw-r-- 1 gl gl    27855 Jan 12 12:48 CHANGELOG.md
-rwxrwxr-x 1 gl gl     1082 Jan 12 12:48 LICENSE.txt
-rw-rw-r-- 1 gl gl    14775 Jan 12 12:48 README.md
drwxrwxr-x 2 gl gl     4096 Jan 12 12:48 images
drwxrwxr-x 2 gl gl     4096 Jan 12 12:48 langs
-rw-r--r-- 1 gl gl      302 Jan 12 12:48 language-configuration.json
drwxrwxr-x 4 gl gl     4096 Jan 12 12:48 node_modules
drwxrwxr-x 3 gl gl     4096 Jan 12 12:48 out
-rw-r--r-- 1 gl gl     9569 Jan 12 12:48 package.json
-rw-r--r-- 1 gl gl     3283 Jan 12 12:48 package.nls.da.json
-rw-r--r-- 1 gl gl     3521 Jan 12 12:48 package.nls.de.json
-rw-r--r-- 1 gl gl     3963 Jan 12 12:48 package.nls.es.json
-rw-r--r-- 1 gl gl     3775 Jan 12 12:48 package.nls.fr.json
-rw-r--r-- 1 gl gl     4420 Jan 12 12:48 package.nls.ja.json
-rw-r--r-- 1 gl gl     3254 Jan 12 12:48 package.nls.json
-rw-r--r-- 1 gl gl     3718 Jan 12 12:48 package.nls.ko.json
-rw-r--r-- 1 gl gl     3204 Jan 12 12:48 package.nls.zh-cn.json
-rw-r--r-- 1 gl gl     3219 Jan 12 12:48 package.nls.zh-tw.json
-rw-r--r-- 1 gl gl 10099535 Jan 12 12:48 plantuml.jar
drwxrwxr-x 2 gl gl     4096 Jan 12 12:48 scripts
drwxrwxr-x 2 gl gl     4096 Jan 12 12:48 snippets
drwxrwxr-x 2 gl gl     4096 Jan 12 12:48 syntaxes
drwxrwxr-x 4 gl gl     4096 Jan 12 12:48 templates

[2055 jebbs.plantuml-2.17.5]$ java -jar ./plantuml.jar -v --version
(0.001 - 15 Mo) 11 Mo - SecurityProfile LEGACY
(0.003 - 15 Mo) 11 Mo - PlantUML Version 1.2022.7
(0.004 - 15 Mo) 11 Mo - GraphicsEnvironment.isHeadless() true
(0.004 - 15 Mo) 11 Mo - Forcing -Djava.awt.headless=true
(0.004 - 15 Mo) 11 Mo - java.awt.headless set as true
(0.005 - 15 Mo) 11 Mo - Forcing resource load on OpenJdk
(0.082 - 15 Mo) 12 Mo - Found 0 files
No diagram found

[2056 jebbs.plantuml-2.17.5]$ 
StephaneIFO commented 1 year ago

I can confirm the wrong jar version

VScode with PlantUML v2.17.5 image

Add this in diagram : title "Rendered with Plantuml Version %version()"" image

=> the jar is 1.2022.7

StephaneIFO commented 1 year ago

I replaced my local .vscode\extensions\jebbs.plantuml-2.17.5\plantuml.jar with the latest https://github.com/plantuml/plantuml/releases image

And now it's ok with v1.2023.2 image

yianni-ververis commented 1 year ago

in Mac brew update brew info plantuml

and in vscode settings

image