Note: this issue is actually difficult to reproduce on other examples than the one referenced bellow. I tried to reproduce it on simpler examples but I did not manage to.
I use the example here during one of my courses. I ask students to complete the process implementation named control_application.impl. They have to add thread subcomponents, and connect them.
Steps to Reproduce
Download the archive referenced above. Extract the content of the archive and import the project in it (File --> Import --> Existing project into workspace...)
Create the Structure diagram for the process implementation control_application.impl in software.aadl
From the textual editor, add a new thread in control_application.impl, say obst_detection2: thread obstacle_detection;
open the diagram of control_application.impl, obst_detection2 does not appear. Open the "Configure diagram" menu, obst_detection2 does not appear. Restart osate, and open the "Configure diagram" menu --> obst_detection2 does appear now.
OSATE Version: 2.7.0 but first noticed the issue in 2.5.3
Operating System: Linux Ubuntu and Debian
The text was updated successfully, but these errors were encountered:
New components are no longer automatically added to an existing diagram because it can destroy the layout if it was done manually, so that is not a bug. However, the new thread should show up in the "Configure Diagram" dialog and the outline view.
The root cause of this is that the graphical editor only monitors changes to files with the ".aadl" extension. The files in the project have a ".aadl2" extension. From looking at other parts of the OSATE code it appears that support for the "aadl2" extension is mixed. It's easy enough to fix it on the graphical editor side but there are other features in OSATE that assume an "aadl" extension.
@Etienne13@lwrage since the text editor supports the aadl2 extension, I'm marking this as a GE bug to be fixed on the next release. However, I believe there are likely cases in other parts of OSATE which do not handle the "aadl2" extension.