osate / osate2

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

Closing a project can lead to unresolved references to predeclared properties #2195

Closed lwrage closed 4 years ago

lwrage commented 4 years ago

Summary

In a workspace with multiple unrelated projects closing one of them can result in unresolved references in the other project. A clean build fixes the issue.

Expected and Current Behavior

Closing an unrelated project should not have any influence on the remaining projects. Currently closing a project makes all references to contributed AADL files unresolved.

Steps to Reproduce

  1. Create two projects A, and B with one AADL file each
  2. Add a property association for a predeclared property to B,aadl
  3. Close project A

Environment

lwrage commented 4 years ago

Closing the project removes all files in the closed project from the index, including plugin contributed AADL. It should be possible to address this in PropertiesToBeBuiltComputerContribution.removeProject().

Note: May need to take this into account in the context of #1134