Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fr.inria.diverse.melange.resource.MelangeDerivedStateComputer - Fatal exception on Gemoc official sample #105

Open
dvojtise opened this issue Feb 13, 2018 · 1 comment
Labels

Comments

@dvojtise
Copy link
Contributor

unfortunately the bug is not completely consistent

but with the latest Gemoc studio with latest melange, installing the official sample sometimes fails with the following errors: fr.inria.diverse.melange.resource.MelangeDerivedStateComputer - Fatal exception

ava.lang.NullPointerException
	at fr.inria.diverse.melange.utils.AspectToEcore$1.apply(AspectToEcore.java:123)
	at fr.inria.diverse.melange.utils.AspectToEcore$1.apply(AspectToEcore.java:1)
	at org.eclipse.xtext.xbase.lib.ObjectExtensions.operator_doubleArrow(ObjectExtensions.java:139)
	at fr.inria.diverse.melange.utils.AspectToEcore.inferEcoreFragment(AspectToEcore.java:128)
	at fr.inria.diverse.melange.builder.WeaveBuilder.make(WeaveBuilder.java:96)
	at fr.inria.diverse.melange.builder.AbstractBuilder.build(AbstractBuilder.java:60)
	at fr.inria.diverse.melange.builder.LanguageBuilder$9.accept(LanguageBuilder.java:212)
	at fr.inria.diverse.melange.builder.LanguageBuilder$9.accept(LanguageBuilder.java:1)
	at java.util.ArrayList.forEach(ArrayList.java:1257)
	at fr.inria.diverse.melange.builder.LanguageBuilder.make(LanguageBuilder.java:217)
	at fr.inria.diverse.melange.builder.AbstractBuilder.build(AbstractBuilder.java:60)
	at fr.inria.diverse.melange.processors.LanguageProcessor.build(LanguageProcessor.java:160)
	at fr.inria.diverse.melange.processors.LanguageProcessor.access$2(LanguageProcessor.java:154)
	at fr.inria.diverse.melange.processors.LanguageProcessor$2.accept(LanguageProcessor.java:117)
	at fr.inria.diverse.melange.processors.LanguageProcessor$2.accept(LanguageProcessor.java:1)
	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 fr.inria.diverse.melange.processors.LanguageProcessor._preProcess(LanguageProcessor.java:120)
	at fr.inria.diverse.melange.processors.LanguageProcessor.preProcess(LanguageProcessor.java:289)
	at fr.inria.diverse.melange.resource.MelangeDerivedStateComputer$1.accept(MelangeDerivedStateComputer.java:106)
	at fr.inria.diverse.melange.resource.MelangeDerivedStateComputer$1.accept(MelangeDerivedStateComputer.java:1)
	at java.util.ArrayList.forEach(ArrayList.java:1257)
	at fr.inria.diverse.melange.resource.MelangeDerivedStateComputer.installDerivedState(MelangeDerivedStateComputer.java:110)
	at org.eclipse.xtext.resource.DerivedStateAwareResource.installDerivedState(DerivedStateAwareResource.java:242)
	at org.eclipse.xtext.xbase.resource.BatchLinkableResource.getContents(BatchLinkableResource.java:148)
	at org.eclipse.xtext.xbase.typesystem.internal.LogicalContainerAwareBatchTypeResolver.getEntryPoints(LogicalContainerAwareBatchTypeResolver.java:44)
	at org.eclipse.xtext.xbase.typesystem.internal.DefaultBatchTypeResolver.getTypeResolver(DefaultBatchTypeResolver.java:84)
	at org.eclipse.xtext.xbase.typesystem.internal.CachingBatchTypeResolver$1.get(CachingBatchTypeResolver.java:49)
	at org.eclipse.xtext.xbase.typesystem.internal.CachingBatchTypeResolver$1.get(CachingBatchTypeResolver.java:46)
	at org.eclipse.xtext.util.OnChangeEvictingCache.get(OnChangeEvictingCache.java:77)
	at org.eclipse.xtext.xbase.typesystem.internal.CachingBatchTypeResolver.doResolveTypes(CachingBatchTypeResolver.java:46)
	at org.eclipse.xtext.xbase.typesystem.internal.AbstractBatchTypeResolver.resolveTypes(AbstractBatchTypeResolver.java:69)
	at org.eclipse.xtext.xbase.resource.BatchLinkingService.resolveBatched(BatchLinkingService.java:71)
	at org.eclipse.xtext.xbase.resource.BatchLinkableResource.resolveLazyCrossReferences(BatchLinkableResource.java:165)
	at org.eclipse.xtext.EcoreUtil2.resolveLazyCrossReferences(EcoreUtil2.java:498)
	at org.eclipse.xtext.builder.clustering.ClusteringBuilderState.doUpdate(ClusteringBuilderState.java:230)
	at org.eclipse.xtext.builder.builderState.AbstractBuilderState.update(AbstractBuilderState.java:116)
	at org.eclipse.xtext.builder.impl.XtextBuilder.doBuild(XtextBuilder.java:287)
	at org.eclipse.xtext.builder.impl.XtextBuilder.fullBuild(XtextBuilder.java:319)
	at org.eclipse.xtext.builder.impl.XtextBuilder.build(XtextBuilder.java:155)
	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:735)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
	at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:301)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:304)
	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:360)
	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:383)
	at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:142)
	at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:232)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)

additionally,
the inherits fails to find the other language (see screenshot)
and strangely, the plugins dependencies seems to be broken because despite that the manifest declares org.eclipse.gemoc.sample.legacyfsm.fsm, the project doesn't import it (see "Plug-in Dependencies" entry in the project tree)

image

@dvojtise dvojtise added the bug label Feb 13, 2018
@dvojtise
Copy link
Contributor Author

Workaround:

  • rename the melange file (/org.eclipse.gemoc.sample.legacyfsm.xsfsm/src/org/eclipse/gemoc/sample/legacyfsm/xsfsm/language/XSFSM.melange) with another extension. (I used XSFSM.melange2 )
  • Restart eclipse (I've found no way to fix it without restarting eclipse); The org.eclipse.gemoc.sample.legacyfsm.fsm should now appear in the Plug-in Dependencies
  • rename back the melange file with the proper melange extension

this problem sounds like an issue about the order in which the tools are called in the builder (xtend/xext builder )

dvojtise added a commit to eclipse-gemoc/gemoc-studio-modeldebugging that referenced this issue Feb 14, 2018
- ignore melange files in target folder, we should consider only those
outside bin folder (in model or src folders for exmaple)
 contributes to
#25 and
diverse-project/melange#105



Signed-off-by: dvojtise <[email protected]>
dvojtise added a commit to eclipse-gemoc/gemoc-studio that referenced this issue Feb 14, 2018
dvojtise added a commit to eclipse-gemoc/gemoc-studio that referenced this issue Feb 17, 2018
Update to latest melange and fix test suites

* [Releng] Change Melange update site to 2018-01-19 build
* use new location of nebula update site
* update fsm sample with latest melange
* wipeout workspace befor building
* try to get more log on test failure
* makes manifest changer more robust

contributes to
eclipse-gemoc/gemoc-studio-modeldebugging#25 and
diverse-project/melange#105

* studio in using oxygen.2
* improve jenkins file

- keep only one artefact per branch*
- set periodic pipeline check

* tee stdout and stderr to for the standard output and  to console

see #49

* add helper.setTargetPlatform in test that fail randomly
* add launch conf in order to ease test devs
* disable concurrent builds
dvojtise added a commit to eclipse-gemoc/gemoc-studio-modeldebugging that referenced this issue Feb 17, 2018
Use latest melange version

* [Releng] Change Melange update site to 2018-01-19 build
* use new location of nebula update site
* replace printStacktrace by proper log
* manage multiple call to builder due to duplicated melange files

- ignore melange files in target folder, we should consider only those
outside bin folder (in model or src folders for exmaple)
 contributes to
#25 and
diverse-project/melange#105

* remove jenkins file that is not supposed to be executed

only the one in gemoc-studio is supposed to run

Signed-off-by: dvojtise <[email protected]>
dvojtise added a commit to eclipse-gemoc/gemoc-studio-execution-java that referenced this issue Jan 14, 2020
Use latest melange version

* [Releng] Change Melange update site to 2018-01-19 build
* use new location of nebula update site
* replace printStacktrace by proper log
* manage multiple call to builder due to duplicated melange files

- ignore melange files in target folder, we should consider only those
outside bin folder (in model or src folders for exmaple)
 contributes to
eclipse-gemoc/gemoc-studio-modeldebugging#25 and
diverse-project/melange#105

* remove jenkins file that is not supposed to be executed

only the one in gemoc-studio is supposed to run

Signed-off-by: dvojtise <[email protected]>
dvojtise added a commit to eclipse-gemoc/gemoc-studio-modeldebugging that referenced this issue Jan 15, 2020
Update to latest melange and fix test suites

* [Releng] Change Melange update site to 2018-01-19 build
* use new location of nebula update site
* update fsm sample with latest melange
* wipeout workspace befor building
* try to get more log on test failure
* makes manifest changer more robust

contributes to
#25 and
diverse-project/melange#105

* studio in using oxygen.2
* improve jenkins file

- keep only one artefact per branch*
- set periodic pipeline check

* tee stdout and stderr to for the standard output and  to console

see #49

* add helper.setTargetPlatform in test that fail randomly
* add launch conf in order to ease test devs
* disable concurrent builds
dvojtise added a commit to eclipse-gemoc/gemoc-studio-modeldebugging that referenced this issue Jan 15, 2020
Update to latest melange and fix test suites

* [Releng] Change Melange update site to 2018-01-19 build
* use new location of nebula update site
* update fsm sample with latest melange
* wipeout workspace befor building
* try to get more log on test failure
* makes manifest changer more robust

contributes to
#25 and
diverse-project/melange#105

* studio in using oxygen.2
* improve jenkins file

- keep only one artefact per branch*
- set periodic pipeline check

* tee stdout and stderr to for the standard output and  to console

see #49

* add helper.setTargetPlatform in test that fail randomly
* add launch conf in order to ease test devs
* disable concurrent builds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant