"Cannot find color" error occurred when using useNewPackage, set_separator, namespace and remove_unlinked.

0 votes
asked Oct 25, 2021 in Bug by anonymous
- code

```
@startuml  
  !pragma useNewPackage
  set separator .
    
  remove @unlinked

  namespace com.a{
    class A{
      + call()
    }
    class B
  }

  namespace com.b{
    class B{
      + run()
    }
  }

  namespace xxx.test{
    class A
    class C
  }

  com.a.A::call-->com.b.B::run
@enduml

```

- error

```
Exception java.lang.IllegalStateException: Cannot find color #00000c
net.sourceforge.plantuml.cucadiagram.UnparsableGraphvizException: java.lang.IllegalStateException: Cannot find color #00000c
at net.sourceforge.plantuml.svek.GeneralImageBuilder.buildImage(GeneralImageBuilder.java:481)
at net.sourceforge.plantuml.svek.CucaDiagramFileMakerSvek.createFileInternal(CucaDiagramFileMakerSvek.java:102)
at net.sourceforge.plantuml.svek.CucaDiagramFileMakerSvek.createFile(CucaDiagramFileMakerSvek.java:67)
at net.sourceforge.plantuml.cucadiagram.CucaDiagram.exportDiagramInternal(CucaDiagram.java:639)
at net.sourceforge.plantuml.classdiagram.ClassDiagram.exportDiagramInternal(ClassDiagram.java:188)
at net.sourceforge.plantuml.UmlDiagram.exportDiagramNow(UmlDiagram.java:144)
at net.sourceforge.plantuml.AbstractPSystem.exportDiagram(AbstractPSystem.java:157)
at net.sourceforge.plantuml.SourceStringReader.outputImage(SourceStringReader.java:157)
at net.sourceforge.plantuml.Pipe.managePipe(Pipe.java:116)
at net.sourceforge.plantuml.Run.managePipe(Run.java:356)
at net.sourceforge.plantuml.Run.main(Run.java:176)
Caused by: java.lang.IllegalStateException: Cannot find color #00000c
at net.sourceforge.plantuml.svek.DotStringFactory.getClusterIndex(DotStringFactory.java:466)
at net.sourceforge.plantuml.svek.DotStringFactory.solve(DotStringFactory.java:423)
at net.sourceforge.plantuml.svek.GeneralImageBuilder.buildImage(GeneralImageBuilder.java:475)
... 10 more

```

if remove ".test" from the namespace  or change "xxx" to "com" it work.
commented Oct 25, 2021 by The-Lu (64,340 points)

Hello A.,

  • What are your PlantUML version?

FYI, with the last online version, it seems OK:


[Click to see on the online server]

Regards.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...