Variable definition causing syntax error

0 votes
asked Mar 10, 2020 in Bug by jr

I am trying to run the example code:

@startuml
!$ab = "foo1"
!$cd = "foo2"
!global $ef = $ab + $cd

Alice -> Bob : $ab
Alice -> Bob : $cd
Alice -> Bob : $ef
@enduml

but I get a syntax error for all of line 2.

Version Info:

PlantUML version 1.2018.13 (Mon Nov 26 12:11:51 EST 2018)
(GPL source distribution)
Java Runtime: OpenJDK Runtime Environment
JVM: OpenJDK 64-Bit Server VM
Java Version: 11.0.6+10-post-Debian-2
Operating System: Linux
OS Version: 5.4.0-4-amd64
Default Encoding: UTF-8
Language: en
Country: US
Machine: <hidden>
PLANTUML_LIMIT_SIZE: 4096
Processors: 8
Max Memory: 2,067,791,872
Total Memory: 132,120,576
Free Memory: 124,598,680
Used Memory: 7,521,896
Thread Active Count: 1

The environment variable GRAPHVIZ_DOT has not been set
Dot executable is /usr/bin/dot
Dot version: dot - graphviz version 2.43.0 (0)
Installation seems OK. File generation OK

1 Answer

0 votes
answered Mar 10, 2020 by plantuml (294,960 points)
commented Mar 11, 2020 by jr

could upgrade by installing manually, but I like to manage my installations through my distribution's package manager whenever possible. It just seems like such a core thing to not work, I figured maybe I was doing something wrong.

Question about the version, though: Is my version (1.2018.13) from the year 2018, ~2 years old? If the Debian repos are that far behind, then I should probably just manually install...

commented Mar 11, 2020 by plantuml (294,960 points)
Yes, your version (1.2018.13) is from the year 2018, so about 2 years old.

I have no idea on how to update Debian repos. Any help is welcome :-)
commented Mar 13, 2020 by jr
It looks like the unstable Debian repository has a more recent (2020) version. I don't know exactly how Debian move things along from unstable -> testing -> stable, but it may just be lack of people working on that package.

I did end up installing the latest version and borrowed the shell wrapper from the Debian package source. Now it all works, thank you.
...