You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
James: The Refactoring in the latest packaging is not rebuilding/generating the Component view and leads to errors. The fix is to simply go into each component refactored and build again, but it caught us off guard to begin with. Information is being unlinked during the refactoring process even though it has not been refactored in previous refinements i.e. variables not defined although present in the event-b code. Perhaps this relates to a refresh issue?
The text was updated successfully, but these errors were encountered:
One of the stack traces describes an npe in the 'removeGenerated' method of the GeneratedRemover (used before re-generating). The problem appears to be that Change Records still refer to an element that is being removed. (see delete operation in the code below) and getting the change record object fails, presumbaly because it still referes to other objects that have also been removed.
public List<Resource> removeGenerated(){
modifiedResources = new ArrayList<Resource>();
List<EObject> previouslyGeneratedElements = getPreviouslyGeneratedElements(
(EventBNamedCommentedComponentElement) abstractExtension.getContaining(CorePackage.Literals.EVENT_BNAMED_COMMENTED_COMPONENT_ELEMENT));
for (EObject eObject : previouslyGeneratedElements){
EcoreUtil.delete(eObject, true); //this deletes the object from its containment and removes all references to it and its content
}
return modifiedResources;
James: The Refactoring in the latest packaging is not rebuilding/generating the Component view and leads to errors. The fix is to simply go into each component refactored and build again, but it caught us off guard to begin with. Information is being unlinked during the refactoring process even though it has not been refactored in previous refinements i.e. variables not defined although present in the event-b code. Perhaps this relates to a refresh issue?
The text was updated successfully, but these errors were encountered: