tree copy and paste gives error and saves xml that differs from what you see in diamond
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Spud |
Fix Released
|
High
|
Fraser Waters |
Bug Description
Copying and pasting an element in the tree produces the error:
File "/usr/lib/
newnode = self.s.read(ios, node)
File "/usr/lib/
datatree = self.valid_
File "/usr/lib/
eidtree.
ValueError: list.remove(x): x not in list
A simple dummy schema and an example "dml" that reproduces this in the attached tar file.
Open dummy.dml in diamond using the dummy.rng schema. Navigate to the nonlinear_
Not sure if this is just a case of the schema being a bit too complicated - though it's no more complicated than some of the options in the fluidity schema - but please point out if it's just a case of something being illegal in it.
Related branches
- Fraser Waters: Approve
- Patrick Farrell: Approve
- Cian Wilson: Approve
-
Diff: 482 lines (+86/-108)4 files modifieddiamond/diamond/choice.py (+23/-47)
diamond/diamond/interface.py (+41/-29)
diamond/diamond/schema.py (+16/-21)
diamond/diamond/tree.py (+6/-11)
Changed in spud: | |
assignee: | nobody → Fraser Waters (fraser-waters08) |
Changed in spud: | |
status: | New → In Progress |
importance: | Undecided → High |
Changed in spud: | |
status: | In Progress → Confirmed |
Changed in spud: | |
status: | Confirmed → Fix Released |
It seems this applies only to Choice elements. It's not quite a simple parent-child relationship with them, but working on it.