diverse-project / melange

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

aspect copier fails on gemoc offical sample #104

Open dvojtise opened 6 years ago

dvojtise commented 6 years ago

with latest melange (2018-01-11)

generating language runtime on the official fsm example (that uses inheritance) fails

Exception in thread "ModalContext" org.eclipse.core.internal.resources.ResourceException: Resource '/org.eclipse.gemoc.sample.legacyfsm.xsfsm.xsfsm/src-gen/org/eclipse/gemoc/sample/legacyfsm/xsfsm/xsfsm/aspects/StateMachineAspect.java' already exists.
    at org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:314)
    at org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:301)
    at org.eclipse.core.internal.resources.File.create(File.java:107)
    at org.eclipse.core.internal.resources.File.create(File.java:181)
    at fr.inria.diverse.melange.utils.AspectCopier2$9.accept(AspectCopier2.java:367)
    at fr.inria.diverse.melange.utils.AspectCopier2$9.accept(AspectCopier2.java:1)
    at java.lang.Iterable.forEach(Iterable.java:75)
    at fr.inria.diverse.melange.utils.AspectCopier2.copyLocalAspects(AspectCopier2.java:373)
    at fr.inria.diverse.melange.utils.AspectCopier2.copyAspect(AspectCopier2.java:174)
    at fr.inria.diverse.melange.utils.AspectCopier2.copyAspect(AspectCopier2.java:110)
    at fr.inria.diverse.melange.ast.LanguageExtensions.createExternalAspects(LanguageExtensions.java:726)
    at fr.inria.diverse.melange.ui.builder.MelangeBuilder$4.accept(MelangeBuilder.java:250)
    at fr.inria.diverse.melange.ui.builder.MelangeBuilder$4.accept(MelangeBuilder.java:1)
    at com.google.common.collect.Iterables$4.lambda$forEach$0(Iterables.java:581)
    at com.google.common.collect.Iterables$5.lambda$forEach$0(Iterables.java:624)
    at java.lang.Iterable.forEach(Iterable.java:75)
    at com.google.common.collect.Iterables$5.forEach(Iterables.java:621)
    at com.google.common.collect.Iterables$4.forEach(Iterables.java:578)
    at fr.inria.diverse.melange.ui.builder.MelangeBuilder.generateLanguages(MelangeBuilder.java:289)
    at fr.inria.diverse.melange.ui.menu.GenerateLanguages$1.run(GenerateLanguages.java:63)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)

step to reproduce:

dvojtise commented 6 years ago

duplicate of #68 this is just another symptom /stack trace resulting from Melange not being able to deal with nested projects