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

开启中
claudio8 年之前创建 · 1 条评论
claudio 评论于 8 年之前

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 评论于 8 年之前
所有者

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.
登录 并参与到对话中。
未选择里程碑
未指派成员
2 名参与者
正在加载...
取消
保存
这个人很懒,什么都没留下。