plantuml-stdlib / Archimate-PlantUML

PlantUML macros and other includes for Archimate Diagrams

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot generate an Archimate image according to the manual: 'syntax error'

lockywolf opened this issue · comments

I am using the last release of plantUML

PlantUML version 1.2019.01 (Sat Feb 09 23:32:04 CST 2019)
(GPL source distribution)
Java Runtime: OpenJDK Runtime Environment
JVM: OpenJDK 64-Bit Server VM
Java Version: 1.8.0_191-b12
Operating System: Linux
OS Version: 4.19.7
Default Encoding: UTF-8
Language: en
Country: US
Machine: mymachine
PLANTUML_LIMIT_SIZE: 4096
Processors: 4
Max Memory: 1,847,590,912
Total Memory: 124,780,544
Free Memory: 119,906,768
Used Memory: 4,873,776
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.40.1 (20161225.0304)
Installation seems OK. File generation OK

I am trying to use the code from plantuml's guide almost verbatim:

@startuml Internet Browser Example
!includeurl https://raw.githubusercontent.com/ebbypeter/Archimate-PlantUML/master/Archimate.puml
title "Archimate Sample - Internet Browser"
' Elements
Business_Object (businessObject , "A Business Object ")
Business_Process(someBusinessProcess ," Some Business Process ")
Business_Service(itSupportService , "IT Support for Business (Application Service )")
Application_DataObject(dataObject , "Web Page Data \n 'on the fly '")
Application_Function(webpageBehaviour , "Web page behaviour ")
Application_Component (ActivePartWebPage , "Active Part of the web page \n 'on the fly '")
Technology_Artifact (inMemoryItem ,"in memory / 'on the fly ' html/javascript ")
Technology_Service(internetBrowser , "Internet Browser Generic & Plugin ")
Technology_Service(internetBrowserPlugin , "Some Internet Browser Plugin ")
Technology_Service(webServer , "Some web server ")
'Relationships
Rel_Flow_Left(someBusinessProcess , businessObject , "")
Rel_Serving_Up(itSupportService , someBusinessProcess , "")
Rel_Specilization_Up(webpageBehaviour , itSupportService , "")
Rel_Flow_Right(dataObject , webpageBehaviour , "")
Rel_Specilization_Up(dataObject , businessObject , "")
Rel_Assignment_Left (ActivePartWebPage , webpageBehaviour , "")
Rel_Specilization_Up(inMemoryItem , dataObject , "")
Rel_Realization_Up(inMemoryItem , ActivePartWebPage , "")
Rel_Specilization_Right (inMemoryItem ,internetBrowser , "")
Rel_Serving_Up(internetBrowser , webpageBehaviour , "")
Rel_Serving_Up(internetBrowserPlugin , webpageBehaviour , "")
Rel_Aggregation_Right (internetBrowser , internetBrowserPlugin , "")
Rel_Access_Up(webServer , inMemoryItem , "")
Rel_Serving_Up(webServer , internetBrowser , "")
@enduml

But the code doesn't compile:

lockywolf@delllaptop:~/InternetBrowserExample$ java -jar ../.emacs.d/plantuml.jar -v DrMe.iuml
(0.000 - 119 Mo) 114 Mo - PlantUML Version 1.2019.01
(0.004 - 119 Mo) 114 Mo - GraphicsEnvironment.isHeadless() false
(0.004 - 119 Mo) 114 Mo - Forcing resource load on OpenJdk
(0.103 - 119 Mo) 114 Mo - Found 1 files
(0.103 - 119 Mo) 114 Mo - Working on /home/lockywolf/InternetBrowserExample/DrMe.iuml
(0.141 - 119 Mo) 113 Mo - Setting current dir: .
(0.141 - 119 Mo) 113 Mo - Setting current dir: /home/lockywolf/InternetBrowserExample
(0.148 - 119 Mo) 113 Mo - Using default charset
(0.154 - 119 Mo) 113 Mo - Reading from DrMe.iuml
(0.156 - 119 Mo) 113 Mo - Creating AParentFolderRegular /home/lockywolf/InternetBrowserExample
(0.183 - 119 Mo) 112 Mo - Using default charset
(1.561 - 119 Mo) 98 Mo - Reading from https://raw.githubusercontent.com/ebbypeter/Archimate-PlantUML/master/Archimate.puml
(2.314 - 119 Mo) 97 Mo - Using default charset
(2.314 - 119 Mo) 97 Mo - Reading from https://raw.githubusercontent.com/ebbypeter/Archimate-PlantUML/master/Archimate.puml
(2.695 - 119 Mo) 93 Mo - Reading file: DrMe.iuml
(2.697 - 119 Mo) 93 Mo - name from block=Internet Browser Example
(2.697 - 119 Mo) 93 Mo - Checking=Internet Browser Example
(2.697 - 119 Mo) 93 Mo - f=Internet Browser Example
(2.698 - 119 Mo) 93 Mo - Relative, so let's change it
(2.698 - 119 Mo) 93 Mo - f=/home/lockywolf/InternetBrowserExample/Internet Browser Example
(2.698 - 119 Mo) 93 Mo - It's not a directory
(2.699 - 119 Mo) 93 Mo - Internet Browser Example is not taken as a directory
(2.700 - 119 Mo) 93 Mo - We are going to put data in /home/lockywolf/InternetBrowserExample/Internet Browser Example[0]
(3.758 - 150 Mo) 57 Mo - Creating file: /home/lockywolf/InternetBrowserExample/Internet Browser Example.png
(3.871 - 150 Mo) 47 Mo - Creating image 731x132
(3.925 - 150 Mo) 38 Mo - Ok for com.sun.imageio.plugins.png.PNGMetadata
(4.009 - 150 Mo) 38 Mo - Number of image(s): 1
Error line 9 in file: /home/lockywolf/InternetBrowserExample/DrMe.iuml
Some diagram description contains errors

The image, however, has a different error on it:

internet browser example

skinparam defaultTextAlignment center

What to do?

Looks like the the environment variable GRAPHVIZ_DOT has not been set

You could change the environment variable GRAPHVIZ_DOT (see http://plantuml.com/faq-install ) to let it point to your actual dot executable.
Could you also let me know the Operating system you are using?

@lockywolf Did you manage to fix the issue?

No. Since this is Linux, I could run dot from /usr/bin/dot without setting GRAPHVIZ_DOT.

But even if I set it manually, I am only getting the following:

(0.000 - 119 Mo) 114 Mo - PlantUML Version 1.2018.12
(0.006 - 119 Mo) 114 Mo - GraphicsEnvironment.isHeadless() false
(0.006 - 119 Mo) 114 Mo - Forcing resource load on OpenJdk
(0.100 - 119 Mo) 114 Mo - Found 1 files
(0.100 - 119 Mo) 114 Mo - Working on /home/lockywolf/DrMetrology/test/test.iuml
(0.137 - 119 Mo) 113 Mo - Setting current dir: .
(0.137 - 119 Mo) 113 Mo - Setting current dir: /home/lockywolf/DrMetrology/test
(0.140 - 119 Mo) 113 Mo - Using default charset
(0.146 - 119 Mo) 113 Mo - Reading from test.iuml
(0.147 - 119 Mo) 113 Mo - Creating AParentFolderRegular /home/lockywolf/DrMetrology/test
(0.182 - 119 Mo) 113 Mo - Using default charset
(3.431 - 119 Mo) 98 Mo - Reading from https://raw.githubusercontent.com/ebbypeter/Archimate-PlantUML/master/Archimate.puml
(5.279 - 119 Mo) 96 Mo - Using default charset
(5.281 - 119 Mo) 96 Mo - Reading from https://raw.githubusercontent.com/ebbypeter/Archimate-PlantUML/master/Archimate.puml
(6.989 - 119 Mo) 107 Mo - Reading file: test.iuml
(6.990 - 119 Mo) 107 Mo - name from block=Internet Browser Example
(6.990 - 119 Mo) 107 Mo - Checking=Internet Browser Example
(6.990 - 119 Mo) 107 Mo - f=Internet Browser Example
(6.990 - 119 Mo) 107 Mo - Relative, so let's change it
(6.991 - 119 Mo) 107 Mo - f=/home/lockywolf/DrMetrology/test/Internet Browser Example
(6.991 - 119 Mo) 107 Mo - It's not a directory
(6.991 - 119 Mo) 107 Mo - Internet Browser Example is not taken as a directory
(6.992 - 119 Mo) 107 Mo - We are going to put data in /home/lockywolf/DrMetrology/test/Internet Browser Example[0]
(8.247 - 150 Mo) 63 Mo - Creating file: /home/lockywolf/DrMetrology/test/Internet Browser Example.png
(8.360 - 150 Mo) 56 Mo - Creating image 731x132
(8.423 - 150 Mo) 48 Mo - Ok for com.sun.imageio.plugins.png.PNGMetadata
(8.533 - 150 Mo) 47 Mo - Number of image(s): 1
Error line 9 in file: /home/lockywolf/DrMetrology/test/test.iuml
Some diagram description contains errors

PlantUML version 1.2018.12 (Sun Oct 21 18:15:15 CST 2018)
(GPL source distribution)
Java Runtime: OpenJDK Runtime Environment
JVM: OpenJDK 64-Bit Server VM
Java Version: 1.8.0_191-b12
Operating System: Linux
OS Version: 4.19.7
Default Encoding: UTF-8
Language: en
Country: US
Machine: delllaptop.lockywolf.net
PLANTUML_LIMIT_SIZE: 4096
Processors: 4
Max Memory: 1,847,590,912
Total Memory: 124,780,544
Free Memory: 119,894,072
Used Memory: 4,886,472
Thread Active Count: 1

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

internet browser example

@lockywolf I am doing triage on the issues in this repo. Is this issue still relevant or can it be closed?

Closing due to lack of response.