Project

General

Profile

Actions

Bug #5146

closed

modifying and saving the composite sinewave actor fails

Added by Matt Jones over 14 years ago. Updated almost 14 years ago.

Status:
Resolved
Priority:
Immediate
Category:
core
Target version:
Start date:
08/11/2010
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
5146

Description

Trying to make changes to the Sinewave actor that ships with Kepler and then trying to save that actor as a KAR file fails with an error, and the new copy of the actor in the new KAR file is not saved correctly (the output port is missing and not connected, and there are three new boxes labeled "kepler:frequency", "kepler:phase". and "kepler:output" that were not in the original actor.

To reproduce:

1) Drag sinewave to canvas, select, and open
2) Modify the Annotation text to say something different.
3) Close the sinewave actor
4) An error will pop up, with the text "Save changes to jar:file:/Applications/Kepler-2.0/Kepler.app/Kepler/ptolemy-8.0.0/target/ptolemy-8.0.jar!/ptolemy/actor/lib/Sinewave.xml"

5) Click 'Save', which brings up the file naming dialog, choose a new name for the KAR (Sinewave2.kar), and click 'Save' (you may also get prompted to select a semantic type)
6) Locate the new KAR in the components panel and drag the contained actor onto the canvas
7a) The actor will be missing an output port
7b) Opening the actor will show new boxes that didn't exist before, and the missing output port

Expected behavior:
There should be no error associated with saving on top of a jar file (this is a KAR file save). The actor should have an output port connected to the same relation as before, and the square boxes should not exist. The actor copy should be identical to the original on the canvas (except maybe the LSID should have changed).

See attached screenshot showing the misconfigured actor.


Files

modified-sinewave-composite.png (27.6 KB) modified-sinewave-composite.png Matt Jones, 08/11/2010 05:53 PM

Related issues

Blocked by Kepler - Bug #5149: kar file saving problems.NewChad Berkley08/16/2010

Actions
Actions

Also available in: Atom PDF