[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [capella-dev] Ecore Code Generation
|
> Hi Félix,
>
> I made a mistake, migration task generates files into .gen.
> In case of errors, check you do not have imported twice the same projects
> in two running workspaces. It is a well-known error ; one side attempts to
> generate code while the other side tries to build.
The issue is something else. I had only checked the Eclipse Error Log and
didn't see anything, but now I noticed that Errors are logged to the
Console when I launch the migration task:
11-04 00:13:57 FATAL AbstractGenerator.handleDiagnostic(..) _ Error in
genmodel creation NullPointerExceptionnull
java.lang.NullPointerException
at
org.eclipse.emf.codegen.ecore.genmodel.impl.GenModelImpl.initialize(GenModelImpl.java:9987)
at
org.eclipse.emf.codegen.ecore.genmodel.impl.GenModelImpl.initialize(GenModelImpl.java:9948)
at
org.eclipse.emf.importer.ModelImporter.adjustGenModel(ModelImporter.java:864)
at
org.eclipse.emf.importer.ecore.EcoreImporter.adjustGenModel(EcoreImporter.java:120)
at
org.eclipse.emf.importer.ModelImporter.prepareGenModelAndEPackages(ModelImporter.java:710)
at
org.polarsys.capella.common.extension.migration.egf.AbstractGenModelGenerator.createGenModel(AbstractGenModelGenerator.java:149)
at
org.polarsys.capella.common.extension.migration.egf.AbstractGenModelGenerator.execute(AbstractGenModelGenerator.java:313)
at
org.polarsys.capella.common.extension.migration.egf.GenerateGenModelsTask.generateGenModel(GenerateGenModelsTask.java:76)
at
org.polarsys.capella.common.extension.migration.egf.GenerateGenModelsTask.doExecute(GenerateGenModelsTask.java:36)
at
org.eclipse.egf.task.internal.nature.TaskNatureJava.invoke(TaskNatureJava.java:62)
at
org.eclipse.egf.producer.ftask.internal.invocation.TaskProductionInvocation.invoke(TaskProductionInvocation.java:53)
at
org.eclipse.egf.producer.ftask.internal.manager.TaskManager.invoke(TaskManager.java:104)
at
org.eclipse.egf.producer.ui.internal.actions.RunActivityAction$1.runInWorkspace(RunActivityAction.java:219)
at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:39)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
I tried to debug into this but could not find any trivial problems..
I am using I am using capella_studio-1.0.0-2015-11-03_00-09-20 and would
like to regenerate code in the capella master branch.
Thanks for any help.
Felix
> Regards,
>
>
> Christophe GATTI
> MDE & OSS Expert
> Thales Corporate Engineering / IEE / EWB / System&Software Technologies
> +33 (0)6 25 03 86 74
> Thales Global Services - 19/21 avenue Morane Saulnier - 78140
> Vélizy-Villacoublay - France
>
>
> -----Message d'origine-----
> De : capella-dev-bounces@xxxxxxxxxxxx
> [mailto:capella-dev-bounces@xxxxxxxxxxxx] De la part de
> felix.dorner@xxxxxxxxxxx
> Envoyé : mardi 3 novembre 2015 14:52
> À : capella-dev@xxxxxxxxxxxx
> Objet : Re: [capella-dev] Ecore Code Generation
>
> Hello Christophe,
>
> When I run the first EGF Activity (The migration task G3/G4) none of the
> modified .ecore files are copied from .def to .gen. I am using Capella
> Studio 1.0 (recent build).
>
> Any idea what might be wrong?
>
> Thanks,
> Felix
>
>> I just added a section in the wiki
>> https://polarsys.org/wiki/Capella/Technical_Information#Generating_the
>> _Metamodel If it is not clear enough, may you update the text?
>
>
>
>> Regards,
>>
>> Christophe GATTI
>> MDE & OSS Expert
>> Thales Corporate Engineering / IEE / EWB / System&Software
>> Technologies
>> +33 (0)6 25 03 86 74
>> Thales Global Services - 19/21 avenue Morane Saulnier - 78140
>> Vélizy-Villacoublay - France
>>
>>
>> -----Message d'origine-----
>> De : capella-dev-bounces@xxxxxxxxxxxx
>> [mailto:capella-dev-bounces@xxxxxxxxxxxx] De la part de
>> felix.dorner@xxxxxxxxxxx Envoyé : mardi 3 novembre 2015 10:36 À :
>> Capella-dev Objet : Re: [capella-dev] Ecore Code Generation
>>
>> Christoph,
>>
>> I'll try find out to regenerate with Kitalpha. I can add the doc
>> myself to the wiki, but maybe someone should review it afterwards..
>>
>> Felix
>>
>>> Hi Felix,
>>
>>> For now there is no documentation available around this topic. I will
>>> publish some text in the Capella Wiki and tell you when available
>>> (today).
>>> Is it ok for you?
>>
>>
>>>
>>> Regards,
>>>
>>> Christophe GATTI
>>> MDE & OSS Expert
>>> Thales Corporate Engineering / IEE / EWB / System&Software
>>> Technologies
>>> +33 (0)6 25 03 86 74
>>> Thales Global Services - 19/21 avenue Morane Saulnier - 78140
>>> Vélizy-Villacoublay - France
>>>
>>>
>>> -----Message d'origine-----
>>> De : capella-dev-bounces@xxxxxxxxxxxx
>>> [mailto:capella-dev-bounces@xxxxxxxxxxxx] De la part de
>>> felix.dorner@xxxxxxxxxxx Envoyé : mardi 3 novembre 2015 09:54 À :
>>> capella-dev@xxxxxxxxxxxx Objet : [capella-dev] Ecore Code Generation
>>>
>>> Hi,
>>>
>>> is there any documentation on how to regenerate code after making
>>> changes to the .ecore files?
>>>
>>> Thanks,
>>> Felix
>>>
>>> _______________________________________________
>>> capella-dev mailing list
>>> capella-dev@xxxxxxxxxxxx
>>> To change your delivery options, retrieve your password, or
>>> unsubscribe from this list, visit
>>> https://polarsys.org/mailman/listinfo/capella-dev
>>> _______________________________________________
>>> capella-dev mailing list
>>> capella-dev@xxxxxxxxxxxx
>>> To change your delivery options, retrieve your password, or
>>> unsubscribe from this list, visit
>>> https://polarsys.org/mailman/listinfo/capella-dev
>>>
>>
>>
>> _______________________________________________
>> capella-dev mailing list
>> capella-dev@xxxxxxxxxxxx
>> To change your delivery options, retrieve your password, or
>> unsubscribe from this list, visit
>> https://polarsys.org/mailman/listinfo/capella-dev
>>
>
>
> _______________________________________________
> capella-dev mailing list
> capella-dev@xxxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit https://polarsys.org/mailman/listinfo/capella-dev
>