[Acceleo] problems with static UML profile [message #894966] |
Wed, 11 July 2012 09:26 |
|
I have some problems with Acceleo (3.3.0.v201212-05-29) and a static UML profile. I'm using Eclipse Juni (3.. Note that the profile is not used by the Acceleo code, but the plug-in depends on it (additional Java code that is not related to Acceleo functions requires it). I get the first three errors using a minimal workspace with only two plug-ins, the Acceleo plugin and the profile - both using J2SE-1.5
(1) During a rebuild, I get the following error:
java.lang.IllegalArgumentException: The feature 'clAny_Class' is not a valid feature
...
This "one character off" behavior has already been described here by Saadia: http://www.eclipse.org/forums/index.php/m/875284/
(2) When I close the project containing the static profile and rebuild, I get a project not open exception:
org.eclipse.core.internal.resources.ResourceException: Resource '/org.eclipse.papyrus.fcm.profile' is not open.
at org.eclipse.core.internal.resources.Project.checkAccessible(Project.java:150)
...
at org.eclipse.acceleo.internal.ide.ui.builders.AcceleoBuilder.members(AcceleoBuilder.java:787)
at org.eclipse.acceleo.internal.ide.ui.builders.AcceleoBuilder.build(AcceleoBuilder.java:121)
Of course, it is ok not compile mtl files, if plug-in dependencies are missing, but it would be better to produce a problem marker instead of an exception in the error-log.
(3) I get a null pointer exception when I remove the project with the static profile.
java.lang.NullPointerException
at org.eclipse.acceleo.internal.ide.ui.builders.AcceleoBuilder.computeProjectDependencies(AcceleoBuilder.java:337)
at org.eclipse.acceleo.internal.ide.ui.builders.AcceleoBuilder.build(AcceleoBuilder.java:113)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
(4) A further null pointer exception, if I use a more complete workspace (two more static profiles)
java.lang.NullPointerException
at org.eclipse.acceleo.engine.service.AcceleoService.doGenerate(AcceleoService.java:731)
at org.eclipse.acceleo.engine.service.AcceleoService.doGenerate(AcceleoService.java:432)
at org.eclipse.acceleo.internal.ide.ui.generators.AcceleoUIGenerator.generate(AcceleoUIGenerator.java:479)
I do not get any errors for (1)-(3), if I remove the dependency towards the profile.
Is there already a solution to these problems (upgrade to a development version?)
|
|
|
|
Powered by
FUDForum. Page generated in 0.03629 seconds