Closed xianzheTM closed 3 years ago
try to disable SVG
or use tool window for rendering, or downgrade to 4.6.1
It works fine for me, could you post Main menu | Help | About | copy to clipboard content
?
It works fine for me, could you post
Main menu | Help | About | copy to clipboard content
?
IntelliJ IDEA 2021.1 (Ultimate Edition) Build #IU-211.6693.111, built on April 6, 2021 Licensed to 杨 雷 Subscription is active until March 24, 2022. For educational use only. Runtime version: 11.0.10+9-b1341.35 amd64 VM: Dynamic Code Evolution 64-Bit Server VM by JetBrains s.r.o. Windows 10 10.0 Jenkins Plugin 0.13.10-2020.3 GC: G1 Young Generation, G1 Old Generation Memory: 4096M Cores: 8 Registry: ide.intellij.laf.enable.animation=true, ide.balloon.shadow.size=0, scala.erase.compiler.process.jdk.once=false Non-Bundled Plugins: AceJump (3.7), Batch Scripts Support (1.0.12), IdeaVIM (0.66), com.bruce.intellijplugin.RedisPlugin (2021.03.10), com.intellij.javafx (1.0.3), com.jetbrains.plugins.ini4idea (211.6693.44), com.intellij.plugins.watcher (211.6693.44), com.mallowigi (36.0), com.mallowigi.idea (13.1), com.obroom.plugin.toolset (2020.10.2), commit-template-idea-plugin (1.2.0), net.vektah.codeglance (1.5.4), org.jetbrains.action-tracker (0.3.2), org.toml.lang (0.2.145.3797-211), com.intellij.kubernetes (211.6693.108), GenerateSerialVersionUID (3.0.3), GrepConsole (11.7.211.6085.0), JFormDesigner (7.0.3), Jenkins Control Plugin (0.13.10-2020.3), String Manipulation (8.15.203.000.2), YourKit Java Profiler 2020.9-b414 Integration (2020.9.414.0), com.bruce.intellijpluin.stackoverflow (1.1), com.github.setial (4.0.2), jclasslib (5.7), org.intellij.gitee (2021.1.0), com.tang (1.3.6.215-IDEA211), org.jetbrains.plugins.hocon (2020.1.0), MavenRunHelper (4.11.203.000.2), intellij.prettierJS (211.6693.111), com.codota.csp.intellij (4.2.4), Dart (211.6693.108), org.jetbrains.plugins.vue (211.6693.111), SequenceDiagram (2.1.a3), cn.cloud.auto.restful.tool (1.3.4), io.flutter (55.1.5), zielu.gittoolbox (203.5.4), JRebelPlugin (2021.2.0), com.intellij.plugins.html.instantEditing (211.6693.111), JProfiler (19.1), org.intellij.scala (2021.1.16), MetricsReloaded (1.11.2), com.ccnode.codegenerator.MyBatisCodeHelperPro (2.9.2-183-204), com.bruce.intellijplugin.generatesetter (2.7), izhangzhihao.rainbow.brackets (6.17), pro.bashsupport (1.5.16.211), PlantUML integration (5.1.0), Pythonid (211.6693.115), com.alibabacloud.intellij.toolkit-intellij (2021.4.1), cn.yiiguxing.plugin.translate (3.1), com.intellij.bigdatatools (0.5.44), ru.adelf.idea.dotenv (2021.1), org.asciidoctor.intellij.asciidoc (0.32.36), org.rust.lang (0.3.145.3797-211), de.endrullis.idea.postfixtemplates (2.12.0.211) Kotlin: 211-1.4.32-release-IJ6693.72
think your reply. I found that I turned off this option to display normally. It seems that I have misunderstood the meaning of this option. What is the function of this option?
What you can see in the preview can be either PNG image directly generated by PlantUML, or an image generated by this plugin from SVG (xml) that was generated by PlantUML.
Could you right click on the blank image,Copy SVG source
and paste it here?
What you can see in the preview can be either PNG image directly generated by PlantUML, or an image generated by this plugin from SVG (xml) that was generated by PlantUML.
Could you right click on the blank image,
Copy SVG source
and paste it here?
It's weird. My computer automatically updated and restarted last night, and then everything is normal.
Unreliable bugs are the worst :(
Unreliable bugs are the worst :(
Unlucky. It appeared again. It was still when I turned on the "new SVG preview" option. This is the SVG source.
<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentScriptType="application/ecmascript" contentStyleType="text/css" height="391px" preserveAspectRatio="none" style="width:276px;height:391px;" version="1.1" viewBox="0 0 276 391" width="276px" zoomAndPan="magnify"><defs xmlns=""><filter height="300%" id="flkr5h8rctnfg" width="300%" x="-1" y="-1"><feGaussianBlur result="blurOut" stdDeviation="2.0"/><feColorMatrix in="blurOut" result="blurOut2" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .4 0"/><feOffset dx="4.0" dy="4.0" in="blurOut2" result="blurOut3"/><feBlend in="SourceGraphic" in2="blurOut3" mode="normal"/></filter></defs><g xmlns=""><rect fill="#FFFFFF" filter="url(#flkr5h8rctnfg)" height="254.7188" style="stroke:#A80036;stroke-width:1.0;" width="10" x="101.5" y="73.9609"/><rect fill="#FFFFFF" filter="url(#flkr5h8rctnfg)" height="148.6641" style="stroke:#A80036;stroke-width:1.0;" width="10" x="106.5" y="112.3125"/><rect fill="#005500" filter="url(#flkr5h8rctnfg)" height="76.9609" style="stroke:#A80036;stroke-width:1.0;" width="10" x="169.5" y="147.6641"/><line style="stroke:#A80036;stroke-width:1.0;stroke-dasharray:5.0,5.0;" x1="28" x2="28" y1="41.6094" y2="346.6797"/><line style="stroke:#A80036;stroke-width:1.0;stroke-dasharray:5.0,5.0;" x1="106.5" x2="106.5" y1="41.6094" y2="346.6797"/><line style="stroke:#A80036;stroke-width:1.0;stroke-dasharray:5.0,5.0;" x1="174" x2="174" y1="41.6094" y2="346.6797"/><line style="stroke:#A80036;stroke-width:1.0;stroke-dasharray:5.0,5.0;" x1="234" x2="234" y1="188.9688" y2="346.6797"/><rect fill="#FEFECE" filter="url(#flkr5h8rctnfg)" height="31.6094" style="stroke:#A80036;stroke-width:1.5;" width="43" x="5" y="5"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="29" x="12" y="26.5332">alice</text><rect fill="#FEFECE" filter="url(#flkr5h8rctnfg)" height="31.6094" style="stroke:#A80036;stroke-width:1.5;" width="43" x="5" y="345.6797"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="29" x="12" y="367.2129">alice</text><rect fill="#FEFECE" filter="url(#flkr5h8rctnfg)" height="31.6094" style="stroke:#A80036;stroke-width:1.5;" width="38" x="85.5" y="5"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="24" x="92.5" y="26.5332">bob</text><rect fill="#FEFECE" filter="url(#flkr5h8rctnfg)" height="31.6094" style="stroke:#A80036;stroke-width:1.5;" width="38" x="85.5" y="345.6797"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="24" x="92.5" y="367.2129">bob</text><rect fill="#FEFECE" filter="url(#flkr5h8rctnfg)" height="31.6094" style="stroke:#A80036;stroke-width:1.5;" width="33" x="156" y="5"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="19" x="163" y="26.5332">bib</text><rect fill="#FEFECE" filter="url(#flkr5h8rctnfg)" height="31.6094" style="stroke:#A80036;stroke-width:1.5;" width="33" x="156" y="345.6797"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="19" x="163" y="367.2129">bib</text><rect fill="#FEFECE" filter="url(#flkr5h8rctnfg)" height="31.6094" style="stroke:#A80036;stroke-width:1.5;" width="59" x="203" y="345.6797"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="45" x="210" y="367.2129">george</text><rect fill="#FFFFFF" filter="url(#flkr5h8rctnfg)" height="254.7188" style="stroke:#A80036;stroke-width:1.0;" width="10" x="101.5" y="73.9609"/><rect fill="#FFFFFF" filter="url(#flkr5h8rctnfg)" height="148.6641" style="stroke:#A80036;stroke-width:1.0;" width="10" x="106.5" y="112.3125"/><rect fill="#005500" filter="url(#flkr5h8rctnfg)" height="76.9609" style="stroke:#A80036;stroke-width:1.0;" width="10" x="169.5" y="147.6641"/><polygon fill="#A80036" points="89.5,69.9609,99.5,73.9609,89.5,77.9609,93.5,73.9609" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;" x1="28.5" x2="95.5" y1="73.9609" y2="73.9609"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="27" x="35.5" y="69.1045">hello</text><line style="stroke:#A80036;stroke-width:1.0;" x1="111.5" x2="158.5" y1="99.3125" y2="99.3125"/><line style="stroke:#A80036;stroke-width:1.0;" x1="158.5" x2="158.5" y1="99.3125" y2="112.3125"/><line style="stroke:#A80036;stroke-width:1.0;" x1="117.5" x2="158.5" y1="112.3125" y2="112.3125"/><polygon fill="#A80036" points="127.5,108.3125,117.5,112.3125,127.5,116.3125,123.5,112.3125" style="stroke:#A80036;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="44" x="123.5" y="94.4561">self call</text><polygon fill="#A80036" points="157.5,143.6641,167.5,147.6641,157.5,151.6641,161.5,147.6641" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;" x1="116.5" x2="163.5" y1="147.6641" y2="147.6641"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="27" x="123.5" y="142.8076">hello</text><polygon fill="#A80036" points="191,174.0156,201,178.0156,191,182.0156,195,178.0156" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;" x1="116.5" x2="197" y1="178.0156" y2="178.0156"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="36" x="123.5" y="173.1592">create</text><rect fill="#FEFECE" filter="url(#flkr5h8rctnfg)" height="31.6094" style="stroke:#A80036;stroke-width:1.5;" width="59" x="203" y="155.6641"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="45" x="210" y="177.1973">george</text><polygon fill="#A80036" points="127.5,220.625,117.5,224.625,127.5,228.625,123.5,224.625" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="121.5" x2="173.5" y1="224.625" y2="224.625"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="28" x="133.5" y="219.7686">done</text><line style="stroke:#A80036;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="116.5" x2="158.5" y1="259.9766" y2="259.9766"/><line style="stroke:#A80036;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="158.5" x2="158.5" y1="259.9766" y2="272.9766"/><line style="stroke:#A80036;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="111.5" x2="158.5" y1="272.9766" y2="272.9766"/><polygon fill="#A80036" points="121.5,268.9766,111.5,272.9766,121.5,276.9766,117.5,272.9766" style="stroke:#A80036;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="11" x="123.5" y="255.1201">rc</text><polygon fill="#A80036" points="222.5,294.3281,232.5,298.3281,222.5,302.3281,226.5,298.3281" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;" x1="111.5" x2="228.5" y1="298.3281" y2="298.3281"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="35" x="118.5" y="293.4717">delete</text><line style="stroke:#A80036;stroke-width:2.0;" x1="225.5" x2="243.5" y1="289.3281" y2="307.3281"/><line style="stroke:#A80036;stroke-width:2.0;" x1="225.5" x2="243.5" y1="307.3281" y2="289.3281"/><polygon fill="#A80036" points="39.5,324.6797,29.5,328.6797,39.5,332.6797,35.5,328.6797" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="33.5" x2="105.5" y1="328.6797" y2="328.6797"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="49" x="45.5" y="323.8232">success</text><!--MD5=[78f3da3f100e7b84a11ed1d259e70891]
@startuml
alice -> bob ++ : hello
bob -> bob ++ : self call
bob -> bib ++ #005500 : hello
bob -> george ** : create
return done
return rc
bob -> george !! : delete
return success
@enduml
PlantUML version 1.2021.4(Sun Apr 04 16:49:39 CST 2021)
(GPL source distribution)
Java Runtime: OpenJDK Runtime Environment
JVM: Dynamic Code Evolution 64-Bit Server VM
Default Encoding: UTF-8
Language: zh
Country: CN
--></g></svg>
Great! That svg is broken, which may be a fault of plantUML itself. Similar problem with https://github.com/esteinberg/plantuml4idea/issues/300 - also China.
For reference, this is mine:
<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentScriptType="application/ecmascript" contentStyleType="text/css" height="391px" preserveAspectRatio="none" style="width:276px;height:391px;" version="1.1" viewBox="0 0 276 391" width="276px" zoomAndPan="magnify"><defs><filter height="300%" id="flkr5h8rctnfg" width="300%" x="-1" y="-1"><feGaussianBlur result="blurOut" stdDeviation="2.0"/><feColorMatrix in="blurOut" result="blurOut2" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .4 0"/><feOffset dx="4.0" dy="4.0" in="blurOut2" result="blurOut3"/><feBlend in="SourceGraphic" in2="blurOut3" mode="normal"/></filter></defs><g><rect fill="#FFFFFF" filter="url(#flkr5h8rctnfg)" height="254.7188" style="stroke:#A80036;stroke-width:1.0;" width="10" x="101.5" y="73.9609"/><rect fill="#FFFFFF" filter="url(#flkr5h8rctnfg)" height="148.6641" style="stroke:#A80036;stroke-width:1.0;" width="10" x="106.5" y="112.3125"/><rect fill="#005500" filter="url(#flkr5h8rctnfg)" height="76.9609" style="stroke:#A80036;stroke-width:1.0;" width="10" x="169.5" y="147.6641"/><line style="stroke:#A80036;stroke-width:1.0;stroke-dasharray:5.0,5.0;" x1="28" x2="28" y1="41.6094" y2="346.6797"/><line style="stroke:#A80036;stroke-width:1.0;stroke-dasharray:5.0,5.0;" x1="106.5" x2="106.5" y1="41.6094" y2="346.6797"/><line style="stroke:#A80036;stroke-width:1.0;stroke-dasharray:5.0,5.0;" x1="174" x2="174" y1="41.6094" y2="346.6797"/><line style="stroke:#A80036;stroke-width:1.0;stroke-dasharray:5.0,5.0;" x1="234" x2="234" y1="188.9688" y2="346.6797"/><rect fill="#FEFECE" filter="url(#flkr5h8rctnfg)" height="31.6094" style="stroke:#A80036;stroke-width:1.5;" width="43" x="5" y="5"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="29" x="12" y="26.5332">alice</text><rect fill="#FEFECE" filter="url(#flkr5h8rctnfg)" height="31.6094" style="stroke:#A80036;stroke-width:1.5;" width="43" x="5" y="345.6797"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="29" x="12" y="367.2129">alice</text><rect fill="#FEFECE" filter="url(#flkr5h8rctnfg)" height="31.6094" style="stroke:#A80036;stroke-width:1.5;" width="38" x="85.5" y="5"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="24" x="92.5" y="26.5332">bob</text><rect fill="#FEFECE" filter="url(#flkr5h8rctnfg)" height="31.6094" style="stroke:#A80036;stroke-width:1.5;" width="38" x="85.5" y="345.6797"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="24" x="92.5" y="367.2129">bob</text><rect fill="#FEFECE" filter="url(#flkr5h8rctnfg)" height="31.6094" style="stroke:#A80036;stroke-width:1.5;" width="33" x="156" y="5"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="19" x="163" y="26.5332">bib</text><rect fill="#FEFECE" filter="url(#flkr5h8rctnfg)" height="31.6094" style="stroke:#A80036;stroke-width:1.5;" width="33" x="156" y="345.6797"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="19" x="163" y="367.2129">bib</text><rect fill="#FEFECE" filter="url(#flkr5h8rctnfg)" height="31.6094" style="stroke:#A80036;stroke-width:1.5;" width="59" x="203" y="345.6797"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="45" x="210" y="367.2129">george</text><rect fill="#FFFFFF" filter="url(#flkr5h8rctnfg)" height="254.7188" style="stroke:#A80036;stroke-width:1.0;" width="10" x="101.5" y="73.9609"/><rect fill="#FFFFFF" filter="url(#flkr5h8rctnfg)" height="148.6641" style="stroke:#A80036;stroke-width:1.0;" width="10" x="106.5" y="112.3125"/><rect fill="#005500" filter="url(#flkr5h8rctnfg)" height="76.9609" style="stroke:#A80036;stroke-width:1.0;" width="10" x="169.5" y="147.6641"/><polygon fill="#A80036" points="89.5,69.9609,99.5,73.9609,89.5,77.9609,93.5,73.9609" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;" x1="28.5" x2="95.5" y1="73.9609" y2="73.9609"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="27" x="35.5" y="69.1045">hello</text><line style="stroke:#A80036;stroke-width:1.0;" x1="111.5" x2="158.5" y1="99.3125" y2="99.3125"/><line style="stroke:#A80036;stroke-width:1.0;" x1="158.5" x2="158.5" y1="99.3125" y2="112.3125"/><line style="stroke:#A80036;stroke-width:1.0;" x1="117.5" x2="158.5" y1="112.3125" y2="112.3125"/><polygon fill="#A80036" points="127.5,108.3125,117.5,112.3125,127.5,116.3125,123.5,112.3125" style="stroke:#A80036;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="44" x="123.5" y="94.4561">self call</text><polygon fill="#A80036" points="157.5,143.6641,167.5,147.6641,157.5,151.6641,161.5,147.6641" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;" x1="116.5" x2="163.5" y1="147.6641" y2="147.6641"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="27" x="123.5" y="142.8076">hello</text><polygon fill="#A80036" points="191,174.0156,201,178.0156,191,182.0156,195,178.0156" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;" x1="116.5" x2="197" y1="178.0156" y2="178.0156"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="36" x="123.5" y="173.1592">create</text><rect fill="#FEFECE" filter="url(#flkr5h8rctnfg)" height="31.6094" style="stroke:#A80036;stroke-width:1.5;" width="59" x="203" y="155.6641"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="45" x="210" y="177.1973">george</text><polygon fill="#A80036" points="127.5,220.625,117.5,224.625,127.5,228.625,123.5,224.625" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="121.5" x2="173.5" y1="224.625" y2="224.625"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="28" x="133.5" y="219.7686">done</text><line style="stroke:#A80036;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="116.5" x2="158.5" y1="259.9766" y2="259.9766"/><line style="stroke:#A80036;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="158.5" x2="158.5" y1="259.9766" y2="272.9766"/><line style="stroke:#A80036;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="111.5" x2="158.5" y1="272.9766" y2="272.9766"/><polygon fill="#A80036" points="121.5,268.9766,111.5,272.9766,121.5,276.9766,117.5,272.9766" style="stroke:#A80036;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="11" x="123.5" y="255.1201">rc</text><polygon fill="#A80036" points="222.5,294.3281,232.5,298.3281,222.5,302.3281,226.5,298.3281" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;" x1="111.5" x2="228.5" y1="298.3281" y2="298.3281"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="35" x="118.5" y="293.4717">delete</text><line style="stroke:#A80036;stroke-width:2.0;" x1="225.5" x2="243.5" y1="289.3281" y2="307.3281"/><line style="stroke:#A80036;stroke-width:2.0;" x1="225.5" x2="243.5" y1="307.3281" y2="289.3281"/><polygon fill="#A80036" points="39.5,324.6797,29.5,328.6797,39.5,332.6797,35.5,328.6797" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="33.5" x2="105.5" y1="328.6797" y2="328.6797"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="49" x="45.5" y="323.8232">success</text><!--MD5=[e163ff51b0614ef86da9d4806f63328e]
@startuml
alice -> bob ++ : hello
bob -> bob ++ : self call
bob -> bib ++ #005500 : hello
bob -> george ** : create
return done
return rc
bob -> george !! : delete
return success
@enduml
PlantUML version 1.2021.4(Sun Apr 04 10:49:39 CEST 2021)
(GPL source distribution)
Java Runtime: OpenJDK Runtime Environment
JVM: Dynamic Code Evolution 64-Bit Server VM
Default Encoding: Cp1250
Language: en
Country: US
--></g></svg>
Could you please generate the svg from the command line? https://github.com/esteinberg/plantuml4idea/issues/300#issuecomment-800826044
Could you please generate the svg from the command line? #300 (comment)
Could you also try it with Jetbrains JRE? It is in the IntelliJ folder, like so:
C:\Users\i7\AppData\Local\JetBrains\Toolbox\apps\IDEA-C\ch-5\211.6693.111\jbr\bin\java.exe -jar plantuml.1.2021.4.jar file.puml -tsvg
I would expect that to generate the bad svg.
Are you sure you did it right? It should contain JVM: Dynamic Code Evolution 64-Bit Server VM
Just like if you do
C:\Users\i7\AppData\Local\JetBrains\Toolbox\apps\IDEA-C\ch-5\211.6693.111\jbr\bin\java.exe -version
=>
openjdk version "11.0.10" 2021-01-19
OpenJDK Runtime Environment JBR-11.0.10.9-1341.35-dcevm (build 11.0.10+9-b1341.35)
Dynamic Code Evolution 64-Bit Server VM JBR-11.0.10.9-1341.35-dcevm (build 11.0.10+9-b1341.35, mixed mode)
If it is reproduced, then it would be good to try the same version of OpenJDK https://developers.redhat.com/products/openjdk/download
Are you sure you did it right? It should contain
JVM: Dynamic Code Evolution 64-Bit Server VM
Just like if you doC:\Users\i7\AppData\Local\JetBrains\Toolbox\apps\IDEA-C\ch-5\211.6693.111\jbr\bin\java.exe -version => openjdk version "11.0.10" 2021-01-19 OpenJDK Runtime Environment JBR-11.0.10.9-1341.35-dcevm (build 11.0.10+9-b1341.35) Dynamic Code Evolution 64-Bit Server VM JBR-11.0.10.9-1341.35-dcevm (build 11.0.10+9-b1341.35, mixed mode)
test.zip It is indeed normal. I am trying to use other JDK.
Strange. And is it always reproducible in the IDE? If you click Refresh button?
Strange. And is it always reproducible in the IDE? If you click Refresh button?
For now, yes. I tried openjdk8-14, even graalvm, SVG is normal. The trouble is, it used to be normal in IDEA, but I don't know what caused it. Refresh button? of course.
Maybe there is some default static option that is changed by IntelliJ, or it uses some service provider registered by other library. Hard to say, you would have to debug it.
. The trouble is, it used to be normal in IDEA
well, the SVG rendering is there from Jan 28, 2021
. The trouble is, it used to be normal in IDEA
well, the SVG rendering is there from Jan 28, 2021
i downgrade IDEA to 2020.3.3,SVG is normal.But when using 2021, SVG is sometimes normal.
<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentScriptType="application/ecmascript" contentStyleType="text/css" height="405px" preserveAspectRatio="none" style="width:276px;height:405px;" version="1.1" viewBox="0 0 276 405" width="276px" zoomAndPan="magnify"><defs><filter height="300%" id="flkr5h8rctnfg" width="300%" x="-1" y="-1"><feGaussianBlur result="blurOut" stdDeviation="2.0"/><feColorMatrix in="blurOut" result="blurOut2" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .4 0"/><feOffset dx="4.0" dy="4.0" in="blurOut2" result="blurOut3"/><feBlend in="SourceGraphic" in2="blurOut3" mode="normal"/></filter></defs><g><rect fill="#FFFFFF" filter="url(#flkr5h8rctnfg)" height="264.6465" style="stroke:#A80036;stroke-width:1.0;" width="10" x="101.5" y="76.8745"/><rect fill="#FFFFFF" filter="url(#flkr5h8rctnfg)" height="154.3833" style="stroke:#A80036;stroke-width:1.0;" width="10" x="106.5" y="116.6289"/><rect fill="#005500" filter="url(#flkr5h8rctnfg)" height="79.8745" style="stroke:#A80036;stroke-width:1.0;" width="10" x="169.5" y="153.3833"/><line style="stroke:#A80036;stroke-width:1.0;stroke-dasharray:5.0,5.0;" x1="28" x2="28" y1="43.1201" y2="359.521"/><line style="stroke:#A80036;stroke-width:1.0;stroke-dasharray:5.0,5.0;" x1="106.5" x2="106.5" y1="43.1201" y2="359.521"/><line style="stroke:#A80036;stroke-width:1.0;stroke-dasharray:5.0,5.0;" x1="174" x2="174" y1="43.1201" y2="359.521"/><line style="stroke:#A80036;stroke-width:1.0;stroke-dasharray:5.0,5.0;" x1="234" x2="234" y1="195.4434" y2="359.521"/><rect fill="#FEFECE" filter="url(#flkr5h8rctnfg)" height="33.1201" style="stroke:#A80036;stroke-width:1.5;" width="43" x="5" y="5"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="29" x="12" y="28.0439">alice</text><rect fill="#FEFECE" filter="url(#flkr5h8rctnfg)" height="33.1201" style="stroke:#A80036;stroke-width:1.5;" width="43" x="5" y="358.521"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="29" x="12" y="381.5649">alice</text><rect fill="#FEFECE" filter="url(#flkr5h8rctnfg)" height="33.1201" style="stroke:#A80036;stroke-width:1.5;" width="38" x="85.5" y="5"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="24" x="92.5" y="28.0439">bob</text><rect fill="#FEFECE" filter="url(#flkr5h8rctnfg)" height="33.1201" style="stroke:#A80036;stroke-width:1.5;" width="38" x="85.5" y="358.521"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="24" x="92.5" y="381.5649">bob</text><rect fill="#FEFECE" filter="url(#flkr5h8rctnfg)" height="33.1201" style="stroke:#A80036;stroke-width:1.5;" width="33" x="156" y="5"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="19" x="163" y="28.0439">bib</text><rect fill="#FEFECE" filter="url(#flkr5h8rctnfg)" height="33.1201" style="stroke:#A80036;stroke-width:1.5;" width="33" x="156" y="358.521"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="19" x="163" y="381.5649">bib</text><rect fill="#FEFECE" filter="url(#flkr5h8rctnfg)" height="33.1201" style="stroke:#A80036;stroke-width:1.5;" width="59" x="203" y="358.521"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="45" x="210" y="381.5649">george</text><rect fill="#FFFFFF" filter="url(#flkr5h8rctnfg)" height="264.6465" style="stroke:#A80036;stroke-width:1.0;" width="10" x="101.5" y="76.8745"/><rect fill="#FFFFFF" filter="url(#flkr5h8rctnfg)" height="154.3833" style="stroke:#A80036;stroke-width:1.0;" width="10" x="106.5" y="116.6289"/><rect fill="#005500" filter="url(#flkr5h8rctnfg)" height="79.8745" style="stroke:#A80036;stroke-width:1.0;" width="10" x="169.5" y="153.3833"/><polygon fill="#A80036" points="89.5,72.8745,99.5,76.8745,89.5,80.8745,93.5,76.8745" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;" x1="28.5" x2="95.5" y1="76.8745" y2="76.8745"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="27" x="35.5" y="72.0181">hello</text><line style="stroke:#A80036;stroke-width:1.0;" x1="111.5" x2="158.5" y1="103.6289" y2="103.6289"/><line style="stroke:#A80036;stroke-width:1.0;" x1="158.5" x2="158.5" y1="103.6289" y2="116.6289"/><line style="stroke:#A80036;stroke-width:1.0;" x1="117.5" x2="158.5" y1="116.6289" y2="116.6289"/><polygon fill="#A80036" points="127.5,112.6289,117.5,116.6289,127.5,120.6289,123.5,116.6289" style="stroke:#A80036;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="44" x="123.5" y="98.7725">self call</text><polygon fill="#A80036" points="157.5,149.3833,167.5,153.3833,157.5,157.3833,161.5,153.3833" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;" x1="116.5" x2="163.5" y1="153.3833" y2="153.3833"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="27" x="123.5" y="148.5269">hello</text><polygon fill="#A80036" points="191,181.1377,201,185.1377,191,189.1377,195,185.1377" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;" x1="116.5" x2="197" y1="185.1377" y2="185.1377"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="36" x="123.5" y="180.2813">create</text><rect fill="#FEFECE" filter="url(#flkr5h8rctnfg)" height="33.1201" style="stroke:#A80036;stroke-width:1.5;" width="59" x="203" y="161.3833"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="45" x="210" y="184.4272">george</text><polygon fill="#A80036" points="127.5,229.2578,117.5,233.2578,127.5,237.2578,123.5,233.2578" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="121.5" x2="173.5" y1="233.2578" y2="233.2578"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="28" x="133.5" y="228.4014">done</text><line style="stroke:#A80036;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="116.5" x2="158.5" y1="270.0122" y2="270.0122"/><line style="stroke:#A80036;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="158.5" x2="158.5" y1="270.0122" y2="283.0122"/><line style="stroke:#A80036;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="111.5" x2="158.5" y1="283.0122" y2="283.0122"/><polygon fill="#A80036" points="121.5,279.0122,111.5,283.0122,121.5,287.0122,117.5,283.0122" style="stroke:#A80036;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="11" x="123.5" y="265.1558">rc</text><polygon fill="#A80036" points="222.5,305.7666,232.5,309.7666,222.5,313.7666,226.5,309.7666" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;" x1="111.5" x2="228.5" y1="309.7666" y2="309.7666"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="35" x="118.5" y="304.9102">delete</text><line style="stroke:#A80036;stroke-width:2.0;" x1="225.5" x2="243.5" y1="300.7666" y2="318.7666"/><line style="stroke:#A80036;stroke-width:2.0;" x1="225.5" x2="243.5" y1="318.7666" y2="300.7666"/><polygon fill="#A80036" points="39.5,337.521,29.5,341.521,39.5,345.521,35.5,341.521" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;stroke-dasharray:2.0,2.0;" x1="33.5" x2="105.5" y1="341.521" y2="341.521"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="49" x="45.5" y="336.6646">success</text><!--MD5=[ad04ba7937f40b31ad8b74beefeabb62]
@startuml
alice -> bob ++ : hello
bob -> bob ++ : self call
bob -> bib ++ #005500 : hello
bob -> george ** : create
return done
return rc
bob -> george !! : delete
return success
@enduml
PlantUML version 1.2021.4(Sun Apr 04 16:49:39 CST 2021)
(GPL source distribution)
Java Runtime: OpenJDK Runtime Environment
JVM: OpenJDK 64-Bit Server VM
Default Encoding: GBK
Language: zh
Country: CN
--></g></svg>
. The trouble is, it used to be normal in IDEA
well, the SVG rendering is there from Jan 28, 2021
A major breakthrough! I installed a brand new IDEA2021.1 and the SVG is normal. Then, I disabled all the plug-ins in my previous IDEA2021.1 and everything was normal. Then it looks like a problem caused by a certain plug-in.
I tried to install all your free plugins, and it worked fine. You would need to enable all and reproduce it again to be sure, but yes, it is possible.
I tried to install all your free plugins, and it worked fine. You would need to enable all and reproduce it again to be sure, but yes, it is possible.
Have you installed this plugin?alibaba-cloud-toolkit,I disable the plug-ins other than it, SVG is abnormal; then enable plug-ins other than it, SVG is normal.
Yes, maybe it needs some configuration to do that. With a quick look inside its source code, a did not find anything interesting, but it is a big plugin.
Yes, maybe it needs some configuration to do that. With a quick look inside its source code, a did not find anything interesting, but it is a big plugin.
I'm joining the chat group left by developers. I'll update here as soon as I get the result
Yes, maybe it needs some configuration to do that. With a quick look inside its source code, a did not find anything interesting, but it is a big plugin.
If the plug-in version 2021.3.1 is used, the preview window will give some exception information directly.It seems that developers are trying to fix the problem, but they don't. They just cover up the problem.
org.apache.batik.transcoder.TranscoderException: null
Enclosed Exception:
ParseError at [row,col]:[11,8]
Message: 元素内容必须由格式正确的字符数据或标记组成。#translation:Element content must consist of properly formatted character data or tags
at org.plantuml.idea.preview.image.svg.batik.MySvgDocumentFactoryKt.createSvgDocument(MySvgDocumentFactory.kt:27)
at org.plantuml.idea.preview.image.svg.MyImageEditorImpl$MyScaledImageProvider.createImage(MyImageEditorImpl.java:225)
at org.plantuml.idea.preview.image.svg.MyImageEditorImpl$MyScaledImageProvider.apply(MyImageEditorImpl.java:204)
at org.plantuml.idea.preview.image.svg.MyImageEditorImpl$MyScaledImageProvider.apply(MyImageEditorImpl.java:181)
at org.intellij.images.ui.ImageComponent$ImageDocumentImpl.lambda$setValue$2(ImageComponent.java:308)
at org.intellij.images.ui.ImageComponent$ImageDocumentImpl.getValue(ImageComponent.java:295)
at org.intellij.images.ui.ImageComponent$ImageDocumentImpl.getValue(ImageComponent.java:290)
at org.plantuml.idea.preview.image.svg.MyImageEditorUI$DocumentChangeListener.stateChanged(MyImageEditorUI.java:656)
at org.intellij.images.ui.ImageComponent$ImageDocumentImpl.fireChangeEvent(ImageComponent.java:329)
at org.intellij.images.ui.ImageComponent$ImageDocumentImpl.setFormat(ImageComponent.java:324)
at org.plantuml.idea.preview.image.svg.MyImageEditorUI.setImageProvider(MyImageEditorUI.java:285)
at org.plantuml.idea.preview.image.svg.MyImageEditorImpl.setValue(MyImageEditorImpl.java:89)
at org.plantuml.idea.preview.image.svg.MyImageEditorImpl.<init>(MyImageEditorImpl.java:83)
at org.plantuml.idea.preview.image.ImageContainerSvg.initEditor(ImageContainerSvg.java:149)
at org.plantuml.idea.rendering.ImageItem.initImage(ImageItem.java:186)
at org.plantuml.idea.rendering.RenderCommand.lambda$displayResult$0(RenderCommand.java:148)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base/java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:290)
at java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:746)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:408)
at java.base/java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:736)
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:159)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:173)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:661)
at org.plantuml.idea.rendering.RenderCommand.lambda$displayResult$2(RenderCommand.java:146)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base/java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:290)
at java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:746)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:408)
at java.base/java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:736)
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:159)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:173)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:661)
at org.plantuml.idea.rendering.RenderCommand.displayResult(RenderCommand.java:145)
at org.plantuml.idea.rendering.LazyApplicationPoolExecutor$MyRunnable.run(LazyApplicationPoolExecutor.java:126)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[11,8]
Message: 元素内容必须由格式正确的字符数据或标记组成。#translation:Element content must consist of properly formatted character data or tags
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:652)
at org.plantuml.idea.preview.image.svg.batik.MySvgDocumentFactoryKt.processElementFragment(MySvgDocumentFactory.kt:103)
at org.plantuml.idea.preview.image.svg.batik.MySvgDocumentFactoryKt.buildDocument(MySvgDocumentFactory.kt:80)
at org.plantuml.idea.preview.image.svg.batik.MySvgDocumentFactoryKt.createSvgDocument(MySvgDocumentFactory.kt:25)
... 49 more
Hmm the plugin contains 167 jars (103MB). I was looking only to the main one. Anything could be going on there. But are you really sure that it is caused by it?
Hmm the plugin contains 167 jars (103MB). I was looking only to the main one. Anything could be going on there. But are you really sure that it is caused by it?
I think the possibility is 90%. I tried a fresh installation of IDEA, only keeping these two plug-ins, and even changed my computer.
I've added some debug info, maybe it will help: Please try it: plantuml4idea.zip (you can drag it into the editor, or use dialog, without extracting)
I've added some debug info, maybe it will help: Please try it: plantuml4idea.zip (you can drag it into the editor, or use dialog, without extracting)
Debug Info:
TransformerFactory=class net.sf.saxon.TransformerFactoryImpl
TransformerFactoryClassLoader=PluginClassLoader(plugin=PluginDescriptor(name=Alibaba Cloud Toolkit, id=com.alibabacloud.intellij.toolkit-intellij, descriptorPath=plugin.xml, path=~\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\211.6693.111.plugins\toolkit-intellij, version=2021.4.1, package=null), packagePrefix=null, instanceId=252, state=active)
Transformer=class net.sf.saxon.IdentityTransformer
TransformerClassLoader=PluginClassLoader(plugin=PluginDescriptor(name=Alibaba Cloud Toolkit, id=com.alibabacloud.intellij.toolkit-intellij, descriptorPath=plugin.xml, path=~\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\211.6693.111.plugins\toolkit-intellij, version=2021.4.1, package=null), packagePrefix=null, instanceId=252, state=active)
TransformerOutputProperties={}
I've added some debug info, maybe it will help: Please try it: plantuml4idea.zip (you can drag it into the editor, or use dialog, without extracting)
Does it mean that both plug-ins use saxon, and then Alibaba affects plantuml?
PlantUML uses xml transformer provided by JRE, which is by default Xalan, but it can be changed globally https://docs.oracle.com/javase/7/docs/api/javax/xml/transform/TransformerFactory.html#newInstance() Alibaba changes this default to its Saxon which behaves differently.
It could affect IntelliJ itself, because it uses the same method as PlantUML on several places. I will report it them. PlantUML itself will need a fix to use primarily Xalan.
I've added a check that will disable SVG automatically, hopefully PlantUML will be fixed itself. Thank you for your help!
plugin version: 5.1.0 idea version: 2021.1 graphviz version: 2.44.1
There are contents:
The saved picture is normal.
It was able to display normally before, but the picture was abnormal after I upgraded the plug-in version. I rolled back to version 5.0.0, but the preview image is still blank.