#31 AToMPM crashes when deleting an element which is no longer typed.

Atvērta
claudio atvēra 8 gadi atpakaļ · 1 komentāri

Consider the following scenario: I create a metamodel, and then I create some model, to try it out. Then I change the metamodel, removing some type X. When I go back to the created model, after reloading the toolbar, if I delete any element of type X, AToMPM crashes hard (I need to restart the server...).

Can AToMPM just tolerate the removal of an untyped element? This is probably due to a failed lookup.

Consider the following scenario: I create a metamodel, and then I create some model, to try it out. Then I change the metamodel, removing some type X. When I go back to the created model, after reloading the toolbar, if I delete any element of type X, AToMPM crashes hard (I need to restart the server...). Can AToMPM just tolerate the removal of an untyped element? This is probably due to a failed lookup.
simon komentēja 8 gadi atpakaļ
Īpašnieks

Ah... language evolution :) Not an easy problem at all (refer to my master thesis for more information). I do understand it's frustrating, but you cannot expect this to be fixed easily. You're welcome to take a look though, there is indeed an infinite loop while trying to execute event handlers in mmmk.js at line 810.

The best solution would be to remove any elements that no longer have a type when loading the element. But again, it's probably not that easy.

Ah... language evolution :) Not an easy problem at all (refer to my master thesis for more information). I do understand it's frustrating, but you cannot expect this to be fixed easily. You're welcome to take a look though, there is indeed an infinite loop while trying to execute event handlers in mmmk.js at line 810. The best solution would be to remove any elements that no longer have a type when loading the element. But again, it's probably not that easy.
Pierakstieties, lai pievienotos šai sarunai.
Nav atskaites punktu
Nav atbildīgā
2 dalībnieki
Notiek ielāde...
Atcelt
Saglabāt
Vēl nav satura.