Unable to add constraint

Bug #308048 reported by Ken McLean
2
Affects Status Importance Assigned to Milestone
OpenScore
Fix Released
Medium
Craig Mahony

Bug Description

OpenScore Windows XP release 0.1-20081202

Unable to add a constraint at the Set Constraints display under Pre-Meets > Constraints

This is likely the result of a feature yet to be implemented, but is being listed as a bug for the sake of completion.

Revision history for this message
Tudor Holton (tudor) wrote :

Probably related to bug #308729

Ken McLean (kenmclean)
Changed in openscore:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Craig Mahony (cmahony) wrote :

No. The ReturnType column was incorrectly non - editable. Changed that and since we have not being putting in the ReturnTypes I also made typing a character into the Name field the trigger to create a new editable row.

Changed in openscore:
status: Confirmed → Fix Committed
Revision history for this message
Ken McLean (kenmclean) wrote :

OpenScore Windows XP release 0.1-20081222

This is still a bug due to the error in bug #310399.

Text cannot be input directly into the bottom of the table in order to create a new entry. When trying to edit an existing row (the final row) in order to bring up a new editable row, the following error occurs in debug log:

Exception in thread "Thread-0" java.lang.NullPointerException
        at avscoreswt.storage.Storage_CSVFolder.buildDeletedArrayFromObject(Storage_CSVFolder.java:1262)
        at avscoreswt.storage.Storage_CSVFolder.flushQueue(Storage_CSVFolder.java:1981)
        at avscoreswt.storage.Storage_CSVFolder.doEvent(Storage_CSVFolder.java:2069)
        at avscoreswt.util.TimedEventController.run(TimedEventController.java:71)
        at java.lang.Thread.run(Unknown Source)

Changed in openscore:
status: Fix Committed → Confirmed
Revision history for this message
Craig Mahony (cmahony) wrote :

This may have been fixed with improvements to CSV storage. There was an Assertion error as well which is now fixed. Seems to be working ok for me at the moment.

Craig Mahony (cmahony)
Changed in openscore:
status: Confirmed → Fix Committed
Revision history for this message
Ken McLean (kenmclean) wrote :

OK, I have retested this. Yes, adding a new constraint works just fine. The bug occurs when you delete the blank line that appears when you add a Predicate on the preceding line. So:

1. Add a Constraint as normal
2. Delete the blank lines below the lowest constraint
3. Try to add another

Not even editing the previous line and tabbing through creates a new line. The debug log said "ERROR:Object already has no line number so not deleting."

I suspect this kind of error might be present in a few of the other tables.

Changed in openscore:
assignee: nobody → cmahony
status: Fix Committed → Triaged
Revision history for this message
Craig Mahony (cmahony) wrote :

I believe this is a leftover bug from not saving to csv files. Currently if you input data it saves all but the last row you input. Sent an email 30th Dec regarding this.

Revision history for this message
Craig Mahony (cmahony) wrote :

Typing in the last column will not create a new row. Add fixed in Implement gui.

Changed in openscore:
status: Triaged → Fix Committed
Revision history for this message
Craig Mahony (cmahony) wrote :

Sorry. meant to say typing in the last column will nNOW create a new row. Add fixed in Implement gui.

Revision history for this message
Ken McLean (kenmclean) wrote :

Resolved in OpenScore Windows XP release 0.1-20090102

Changed in openscore:
status: Fix Committed → Fix Released
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.