Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Importing a module from a plugin into a module of an Acceleo project
Importing a module from a plugin into a module of an Acceleo project [message #1828915] Mon, 22 June 2020 08:01 Go to next message
KHETTAOUI Damien is currently offline KHETTAOUI DamienFriend
Messages: 1
Registered: June 2020
Junior Member
Hello,
I created an ACCELEO Code Generator that I exported as an eclipse PLUGIN: plugin-A
Plugin for which I have well informed the Exported Packages section.

I am creating a second code generator in which I would like to import a module present in my PLUGIN A.
For this I want to use the Eclipse resolution method by referring to this Plugin via the META-INF file and the sectionRequired-Plugins.

If my PLUGIN A is open as an Eclipse project in my workspace, my module of my new project works fine, but if I close my Eclipse PLUGIN A project, I get the following error:

I've searched a lot but I can't find a solution/answer to my problem.

Does anyone have any ideas?

org.eclipse.acceleo.engine.AcceleoEvaluationException: Error while resolving module dependencies.
at org.eclipse.acceleo.engine.internal.environment.AcceleoEvaluationEnvironment.getAllCandidateNamesakes(AcceleoEvaluationEnvironment.java:560)
at org.eclipse.acceleo.engine.internal.environment.AcceleoEvaluationEnvironment.getAllCandidates(AcceleoEvaluationEnvironment.java:363)
at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.prepareInvocation(AcceleoEvaluationVisitor.java:1696)
at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitAcceleoTemplateInvocation(AcceleoEvaluationVisitor.java:955)
at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.switchExpression(AcceleoEvaluationVisitor.java:1945)
at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitExpression(AcceleoEvaluationVisitor.java:1049)
at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitAcceleoForBlock(AcceleoEvaluationVisitor.java:537)
at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.switchExpression(AcceleoEvaluationVisitor.java:1922)
at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitExpression(AcceleoEvaluationVisitor.java:1049)
at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitAcceleoFileBlock(AcceleoEvaluationVisitor.java:431)
at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.switchExpression(AcceleoEvaluationVisitor.java:1935)
at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitExpression(AcceleoEvaluationVisitor.java:1049)
at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitAcceleoTemplate(AcceleoEvaluationVisitor.java:922)
at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.switchExpression(AcceleoEvaluationVisitor.java:1906)
at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitExpression(AcceleoEvaluationVisitor.java:1049)
at org.eclipse.ocl.internal.evaluation.QueryImpl.evaluate(QueryImpl.java:146)
at org.eclipse.ocl.ecore.QueryImpl.evaluate(QueryImpl.java:56)
at org.eclipse.acceleo.engine.generation.AcceleoEngine.doEvaluate(AcceleoEngine.java:365)
at org.eclipse.acceleo.engine.generation.AcceleoEngine.evaluate(AcceleoEngine.java:142)
at org.eclipse.acceleo.engine.service.AcceleoService.doGenerateTemplate(AcceleoService.java:984)
at org.eclipse.acceleo.engine.service.AcceleoService.doGenerate(AcceleoService.java:641)
at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.generate(AbstractAcceleoGenerator.java:209)
at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.generate(AbstractAcceleoGenerator.java:172)
at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.doGenerate(AbstractAcceleoGenerator.java:159)




Re: Importing a module from a plugin into a module of an Acceleo project [message #1828931 is a reply to message #1828915] Mon, 22 June 2020 15:57 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6755
Registered: July 2009
Senior Member
Hi

I'm afraid that there are some areas where Acceleo is imperfect. Model references between project/plugins is certainly one of them. This might well be related to similar platforms that drove to migrate away from Acceleo to Xtend. But beware Xtend may be deprecated before long.

Regards

Ed Willink
Previous Topic:XPAND parser exception contains wrong line number
Next Topic:Acceleo [ Run problem]
Goto Forum:
  


Current Time: Thu Jul 02 20:02:56 GMT 2020

Powered by FUDForum. Page generated in 0.01919 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top