question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Kroki does not render included PlantUML sprites

See original GitHub issue

Given following image is given to Kroki

@startuml
!pragma revision 1

'!define AzurePuml https://raw.githubusercontent.com/RicardoNiepel/Azure-PlantUML/master/dist
'!includeurl AzurePuml/AzureRaw.puml
'!includeurl AzurePuml/Databases/AzureCosmosDb.puml
'!includeurl AzurePuml/Compute/AzureFunction.puml

!include <azure/AzureRaw>
!include <azure/Databases/AzureCosmosDb>
!include <azure/Compute/AzureFunction>

component "<color:red><$AzureFunction></color>" as myFunction
database "<color:#0072C6><$AzureCosmosDb></color>" as myCosmosDb
rectangle "<color:AZURE_SYMBOL_COLOR><$AzureCosmosDb></color>" as mySecondCosmosDb
AzureFunction(mySecondFunction, "Stream Processing", "Consumption")

myFunction --> myCosmosDb
mySecondFunction --> mySecondCosmosDb
@enduml

Then rendering ends with following error message Error 400: Syntax Error? (line: 12)

Image will be rendered when AzureFunction line removed but even then all sprites are missing.

Selection_031

Below is a link how the image should look in Kroki

http://www.plantuml.com/plantuml/uml/XL5FRzem5B_xKvXiqZPf4BR39g4eWeNr10K5SMWloDYlmL9iH_Ppg_RJrv0QIbhQet__hJTso2nwLPDUOrcb6BLmBvqqcluYv5jFm9tKG2TFti8ooEWEiN6ZDBNiOL19tFcjTs2vqGWQ1zoej9ISMM6k9JHGfmTdVrapZUlvB5NC8TXKI8SXNMfUUm7UrgU6rb66-2QyBecc3DcMEN2jl31E6JVTVkWfZ6eyGkkuyffZ-6Rh8D51CxPdZoFoBdEf-Otm_RgS41vmeq4ZJJ9kQcD75aIUVJtNPUc1onFA75MF4IVYfVve_Z8S_lrT_8a1SKyt8EB40aUcg_gKCBbTb_ytgvlvlyLiKoncY_Api1M4Wul8ahFbtoCTWPyqMQ45fkZI6WxEILqb0IoCTburUqdoWv3J7sc_dxzU70CxV6V46BG8ftm6

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
vainikkajcommented, Nov 17, 2019

👍 Thanks for the quick fix.

0reactions
Mogzttercommented, Jan 13, 2020

For !include (file) I dare to beg you for reconsideration, at least for self hosted situations (maybe check an env var or so).

Indeed we could enable this feature for self hosted server. But I need to check how the include directive works in PlantUML. More specifically, I don’t know if we can specify the location of includes.

@AXGKl Could you please open another issue with this feature request? Thanks!

PS: Your productivity is… depressing 😉

😉

Your security argument against !includeurl is absolutely clear.

We could also enable this feature on self hosted server. Not sure if it should be enabled by default or not.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Kroki and PlantUML with local install does not render image
I'm trying to install Kroki (or PlantUML) locallly on another server than Gitlab itself. PlantUML and Kroki are installed with docker. The weird ......
Read more >
PlantUML Standard Library
This repository contains PlantUML sprites generated from Cloudinsight icons, which can easily be used in PlantUML diagrams for nice visual representation of ...
Read more >
Configuration - Kroki Documentation
While running in SECURE mode, Kroki will prevent PlantUML from including files using the ! include or ! includeurl directive.
Read more >
Add support for PlantUML - Visual Studio Feedback
One partial solution we are using is to embed the PantUML diagrams into the markdown files (using ```plantuml code blocks) and then using...
Read more >
Software Diagrams - Plant UML vs Mermaid | Dan Does Code
Using the online PlantUML server is not ideal as all your data must go over the internet, plus it adds latency to your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found