yuzutech / kroki

Creates diagrams from textual descriptions!
https://kroki.io
MIT License
2.89k stars 216 forks source link

Cannot render diagram image with !include <C4/C4_Sequence> #1687

Open maryams009 opened 8 months ago

maryams009 commented 8 months ago

Hi there! I want to use bundleled directives in my project instead of static .puml files. Kroki is not rendering Plantuml code into an image when I am using a sequence diagram; !include <C4/C4_Sequence>. But it is working well with a component diagram; !include <C4/C4_Component>. I got to know from documentation that kroki has a support for <C4/C4_Component> but it does not support <C4/C4_Sequence> yet. When I am using !include <C4/C4_Sequence>, It is giving the following error in the pipeline pages;

Untitled design

Questions:

ggrossetie commented 8 months ago

Hello @maryams009

Are you using the latest version? I cannot reproduce on https://kroki.io

!include <C4/C4_Sequence>

Container(c1, "Single-Page Application", "JavaScript and Angular", "Provides all of the Internet banking functionality to customers via their web browser.")

Container_Boundary(b, "API Application")
  Component(c2, "Sign In Controller", "Spring MVC Rest Controller", "Allows users to sign in to the Internet Banking System.")
  Component(c3, "Security Component", "Spring Bean", "Provides functionality Related to signing in, changing passwords, etc.")
Boundary_End()

ContainerDb(c4, "Database", "Relational Database Schema", "Stores user registration information, hashed authentication credentials, access logs, etc.")

Rel(c1, c2, "Submits credentials to", "JSON/HTTPS")
Rel(c2, c3, "Calls isAuthenticated() on")
Rel(c3, c4, "select * from users where username = ?", "JDBC")

SHOW_LEGEND()

https://kroki.io/c4plantuml/svg/eNpdkk1vGjEQhu_8iimnpaKJ2nJsU8GCmlRtgrJRc0Sz3mHXqne8Hdsg_n1tBxrIzfZ8vM-8nnealQkNwZdydl3ONhX9DcSKbkaj0rJHzSSF-jiFcaW5NfRhjS3BfBiMVui15XEM_cAdVkr04AG5gTm3waCkyFrsTjfkAI0BuwXfEdyxJ2HyUCP_iU1hG1ilVmi0P4C3oILztidxsNOYarTAnmqoxe4dydV4cka3WdjADcqhqKPgfH13QTcZAZS2HywT-0J9yoO0HCEgdRBrDGXSapDE8ut3CY_k_Jvo3JgoDcElqEjoUg_N6Xgx0uI4UnVwnvqrt_KfkxCpIGnQ_-9n8gtCvvDt0ptHMuipORGkCs1TUB1ymy4DOre30rgpkFdJ_mTOZsVNcW7bsi7ULCot0WONjpJqbp_F4PQMleqox4zordCLByDUauclZ0eErZU-n6fQoesiIYboC_vjN4ASatIVTURDpcg5MLZ95RxF7bxnL18U6l57d14WZ86rVj3cX98-Pa2rWJRrYn72tYwr5kC7-asyxZEhL0HOjFl5ZEeGlIf3sBXbH_9035FQPjP2BF_hW1ZbLsoEV90-PG9-rr6v7pfF5B8sRxJy