-
-
Notifications
You must be signed in to change notification settings - Fork 998
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v1.2023.0] Style management (error on carbon-gray
theme)
#1250
Comments
The issue is on our side: we have completely rewritten the style parser. Thanks for the report! |
It has just been fixed. |
Hi @arnaudroques, and all, After rebuild all the Theme Gallery this morning, it is better. net.sourceforge.plantuml.style.parser.StyleParsingException: Cannot understand <
at net.sourceforge.plantuml.style.parser.StyleParser.parse(StyleParser.java:259)
at net.sourceforge.plantuml.style.parser.StyleParser.parse(StyleParser.java:61)
at net.sourceforge.plantuml.jsondiagram.StyleExtractor.applyStyles(StyleExtractor.java:116)
at net.sourceforge.plantuml.jsondiagram.JsonDiagramFactory.createSystem(JsonDiagramFactory.java:94)
at net.sourceforge.plantuml.PSystemBuilder.createPSystem(PSystemBuilder.java:140)
at net.sourceforge.plantuml.BlockUml.getDiagram(BlockUml.java:181)
at net.sourceforge.plantuml.SourceFileReaderAbstract.getGeneratedImages(SourceFileReaderAbstract.java:168)
at net.sourceforge.plantuml.Run.manageFileInternal(Run.java:519)
at net.sourceforge.plantuml.Run.processArgs(Run.java:402)
at net.sourceforge.plantuml.Run.manageAllFiles(Run.java:369)
at net.sourceforge.plantuml.Run.main(Run.java:204) See Action Log here: I search for which diagram that occurs... And with this lines: at net.sourceforge.plantuml.jsondiagram.StyleExtractor.applyStyles(StyleExtractor.java:116)
at net.sourceforge.plantuml.jsondiagram.JsonDiagramFactory.createSystem(JsonDiagramFactory.java:94) That seems perhaps occurs with JSON or YAML diagram... (but I don't know with which Regards. |
[Just for traceability] FYI @bharatrajagopalan (initial author of the Regards. |
Hi @arnaudroques, Here is a complement:
See example on the corresponding doc pages. and here: @startyaml
<style>
yamlDiagram {
node {
BackGroundColor lightblue
LineColor lightblue
FontName Helvetica
FontColor red
FontSize 18
FontStyle bold
BackGroundColor Khaki
RoundCorner 0
LineThickness 2
LineStyle 10;5
separator {
LineThickness 0.5
LineColor black
LineStyle 1;5
}
}
arrow {
BackGroundColor lightblue
LineColor green
LineThickness 2
LineStyle 2;5
}
}
</style>
-
name: Mark McGwire
hr: 65
avg: 0.278
-
name: Sammy Sosa
hr: 63
avg: 0.288
@endyaml Thanks for your analyse and correction... |
Hi @arnaudroques, A line of research... Just change LineStyle 10;5 to LineStyle 10-5
@startyaml
<style>
yamlDiagram {
node {
BackGroundColor lightblue
LineColor lightblue
FontName Helvetica
FontColor red
FontSize 18
FontStyle bold
BackGroundColor Khaki
RoundCorner 0
LineThickness 2
LineStyle 10-5
separator {
LineThickness 0.5
LineColor black
LineStyle 1-5
}
}
arrow {
BackGroundColor lightblue
LineColor green
LineThickness 2
LineStyle 2-5
}
}
</style>
-
name: Mark McGwire
hr: 65
avg: 0.278
-
name: Sammy Sosa
hr: 63
avg: 0.288
@endyaml Regards. |
Test by test... Just adding an empty style... [and this is the drama] <style>
</style> Could you compare:
VS @startyaml
!theme amiga
<style>
</style>
-
name: Mark McGwire
hr: 65
avg: 0.278
-
name: Sammy Sosa
hr: 63
avg: 0.288
@endyaml Thanks for your work... |
I'm afraid that this will be an exception where we are not going to be backward compatible. This is because we are now fully supporting real CSS format:
The legacy "close-to-CSS" format is also supported:
So now I think it's an acceptable solution, since it only breaks the rendering, not the diagram itself (and only if LineStyle is used). PS: Thanks about the |
Hi,
To be continued. |
Last issue fixed by: Thanks, 👍 |
See also question (about |
Hello @arnaudroques, and all,
With the update of the theme Gallery, here are first tests with the
v1.2023.0
and the themecarbon-gray
seems to be broken...Here is minimal example:
See also error here (from Action on theme Gallery):
See all log here:
I search what is broken...
Regards.
The text was updated successfully, but these errors were encountered: