diverse-project / melange

The Melange Language Workbench
http://melange-lang.org
Eclipse Public License 1.0
28 stars 7 forks source link

Fix melange multiple resources (caused by #91) #98

Closed ebousse closed 6 years ago

ebousse commented 7 years ago

Several problems were introduced by the PR https://github.com/diverse-project/melange/pull/91 , whose purpose was to have exactly one MelangeResource per adapted resource. Previously, this was not the case when several resources were implied, because a MelangeResource was only created for the originally loaded resource, not for the resources it depended on.

Yet, this broke several things, and Melange tests related to handling multiple resources did not pass anymore, mostly because doAdapt was not called on an indirectly created MelangeResources.

This fix contains the following changes:

And this time I did not forget to run the tests successfully before offering the PR :)

ebousse commented 6 years ago

Is it OK if I merge this?