Closed grivo closed 3 months ago
Hello @grivo, and all,
Yes: because actually notes
must have absolute name, regardless of namespace usage.
Perhaps create a Wanted feature
to do that.
Regards.
hmm... can't find any namespaces restriction for comments at UML 2.5 specs
if it's rather PlantUML restriction - then you're right, it'll be wonderful to convert this issue to a type of wanted feature... or I can do it by myself somehow, I wonder?
if it's rather PlantUML restriction
Yes, You are right.
This is now a wanted feature for PlantUML.
Then, for PlantUML team, here is the minimal example to be manage by plantuml
:
Could you manage:
@startuml
note as n
my note
end note
package X {
note as n
my enother note
end note
}
@enduml
As:
@startuml
note as n
my note
end note
note as X.n
my enother note
end note
@enduml
Regards.
problem remains the same for usecase diagrams, should be this ticket reopened?
issue eliminates ones allowmixing is applied and actor
keyword is used instead of : <value> :
@startuml
allowmixing
package x {
note as _n
qwerty
end note
}
package y {
note as _n
asdfg
end note
actor "myActor" as a
}
@enduml
this does not work
@startuml
package x {
note as _n
qwerty
end note
}
package y {
note as _n
asdfg
end note
:myActor:
}
@enduml
neither this works (even with allowmixing)
@startuml
allowmixing
package x {
note as _n
qwerty
end note
}
package y {
note as _n
asdfg
end note
:myActor:
}
@enduml
Using set separator .
improves the result.
This setting is by default for class diagrams. Maybe we should set it also by default for usecase diagrams.
We are unsure here about what it the best behavior. Any though?
Maybe we should set it also by default for usecase diagrams.
i think this is quite good option... since package and namespace are the same for class diagrams - so namespace alike behaviour for package items anywhere else (usecases, deployments, etc) should be perfect solution
Using
set separator .
so i think that should be turned on everywhere, at least for all UML diagrams types that may use packages
thanks!
it works now!
@startuml
note as n
my note
end note
package X {
note as n
my enother note
end note
}
@enduml
as well as
@startuml
note as n
my note
end note
note as X.n
my enother note
end note
@enduml
Describe the bug note names clash despite being declared at different namespaces
To Reproduce
package X { class Cls } @enduml
@startuml class Cls
class X.Cls @enduml
@startuml note as n my note end note
package X { note as n my enother note end note } @enduml
@startuml note as n my note end note
note as X.n my enother note end note @enduml