child elements disappear from diamond

Bug #948475 reported by Cian Wilson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Spud
Fix Committed
High
Patrick Farrell

Bug Description

To reproduce open up the attached options file test.xml using the schema, test.rng.

choice_1/thing::Jimmy and choice_1/thing::Joshua are displayed underneath the parent element test_options.

Flip choice_1 to choice_2.

choice_2 has no child elements so nothing is displayed except choice_2.

Flip choice_2 back to choice_1.

Only choice_1/thing::Jimmy is displayed and *not* choice_1/thing::Joshua.

Save the file.

Close diamond.

Reopen test.xml using diamond.

choice_1/thing::Joshua has reappeared.

Related branches

Revision history for this message
Cian Wilson (cwilson) wrote :
Changed in spud:
status: New → Confirmed
Revision history for this message
Patrick Farrell (pefarrell) wrote :

More a note for my own debugging:

cellcombo_changed is the routine called when a choice is selected. Bug is in expand_treestore
expand_treestore: bug is in active_tree.find_or_add(l); it's not returning the thing::Joshua to display

Revision history for this message
Patrick Farrell (pefarrell) wrote :

Can you try the linked branch for a day or two? It fixes this bug, but I just want to be careful of not introducing any new bugs (since the code changed is quite central).

Changed in spud:
status: Confirmed → In Progress
Changed in spud:
importance: High → Medium
importance: Medium → Wishlist
importance: Wishlist → High
Revision history for this message
Cian Wilson (cwilson) wrote :

Sure. Thanks for the fast response.

I can confirm that it fixes the demonstration problem locally for me.

Revision history for this message
Patrick Farrell (pefarrell) wrote :

No worries, you're welcome; thanks for the excellent bug report. I have installed that branch locally as my diamond, but I don't use diamond very much. Could you install that branch as your system diamond and use it for a few days, in case that change breaks something else? (I really wish I had set up an automated test system for diamond ... )

Revision history for this message
Cian Wilson (cwilson) wrote :

Yup, already done and "testing"/using.

Revision history for this message
Cian Wilson (cwilson) wrote :

A quick update. No issues seen so far (that I can't reproduce with the trunk - will report those later once I figure out a reliable reproduction system for them). It's being tested by two users here - myself on natty ubuntu and another on a mac.

Revision history for this message
Patrick Farrell (pefarrell) wrote :

Great, thanks.

As soon as you let me know what the issue is, I'll get on it -- I'm keen to sort out any diamond bugs you're experiencing. (I'll be away in Oslo this week/early next week, though.)

Changed in spud:
status: In Progress → Fix Committed
assignee: nobody → Patrick Farrell (pefarrell)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.