osate / osate2

Open Source AADL2 Tool Environment
http://osate.org
Eclipse Public License 2.0
36 stars 8 forks source link

AADL files cannot have the same file name as a plugin contribution #2766

Open lwrage opened 2 years ago

lwrage commented 2 years ago

Summary When an AADL file in a project has the same name as a file that is contributed by a plugin references to other packages are not resolved in this file.

Expected behavior This should just work without errors on the AADL file.

Actual behavior References to property sets and packages are not resolved.

Steps To Reproduce

  1. Create a new AADL project
  2. Create a new file named Thread_Properties.aadl in this project and past the content from below.
  3. Note that the reference to ARINC653 in the with clause is not resolved.
  4. The error goes away if the file name is changed to, for example, xThread_Properties.aadl.
package P
public
    with ARINC653;

    processor proc
        properties
            ARINC653::Module_Version => "first";
    end proc;

end P;

Desktop (please complete the following information):

lwrage commented 2 years ago

This looks like a left-over from the old way of overriding AADL_Project.