EMF code generation error (bug report) [message #378370] |
Thu, 02 November 2006 11:10 |
Eclipse User |
|
|
|
Originally posted by: vkrastev.gmx.de
Hi All,
we have following problem(bug) with the EMF code generation tool.
I will explain the process and then the error.
We make new EMF project from our ecore model. Then from the generate model
(ourmodel.genmodel) we generate the Model Code. And we have the following
syntax errors in the generated code.
In our ecore model there are variable names and method names which exceed
the maximum lenght
of the screen. The length of the whole line is 74 characters it will be
split by generation in the position 57 with new line character and the
remaining 17 characters are put on the next line.
Example:
it should be like this:
private EDataType xsDbuildInPrimitiveTypeNamesObjectEdataType = null ;
but after the code generation we have the following:
private EDataType xsDbuildInPrimitiveTypeNamesObject
EdataType = null ;
That means now we have two independent lines code and we get after compile
the syntax error:
"on token "EDataType", delete this token"
We dont want to make changes on our model in order to avoid this error.
Is it a bug? Can you fix it?
We suppose it is an error in the JET code generation.
Please advise solution.
Thanks in advance.
Regards
V.Krastev
|
|
|
Re: EMF code generation error (bug report) [message #378371 is a reply to message #378370] |
Thu, 02 November 2006 11:46 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Vili,
This newsgroup is for discussion about the modeling project over all.
You should use the EMF newsgroup for questions specifically about EMF,
which you did, but you posted two notes independently. If you must post
the same issue to multiple newsgroup (which is not needed in this case),
you should do it with a single posting to multiple groups so that an
answer on any one group will appear in all groups.
Vili wrote:
> Hi All,
>
> we have following problem(bug) with the EMF code generation tool.
>
> I will explain the process and then the error.
>
> We make new EMF project from our ecore model. Then from the generate model
> (ourmodel.genmodel) we generate the Model Code. And we have the following
> syntax errors in the generated code.
>
> In our ecore model there are variable names and method names which exceed
> the maximum lenght
>
> of the screen. The length of the whole line is 74 characters it will be
> split by generation in the position 57 with new line character and the
> remaining 17 characters are put on the next line.
>
> Example:
>
> it should be like this:
>
> private EDataType xsDbuildInPrimitiveTypeNamesObjectEdataType = null ;
>
> but after the code generation we have the following:
>
> private EDataType xsDbuildInPrimitiveTypeNamesObject
>
> EdataType = null ;
>
> That means now we have two independent lines code and we get after compile
> the syntax error:
>
> "on token "EDataType", delete this token"
>
> We dont want to make changes on our model in order to avoid this error.
>
> Is it a bug? Can you fix it?
>
> We suppose it is an error in the JET code generation.
>
> Please advise solution.
>
> Thanks in advance.
>
> Regards
>
> V.Krastev
>
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: EMF code generation error (bug report) [message #582364 is a reply to message #378370] |
Thu, 02 November 2006 11:46 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Vili,
This newsgroup is for discussion about the modeling project over all.
You should use the EMF newsgroup for questions specifically about EMF,
which you did, but you posted two notes independently. If you must post
the same issue to multiple newsgroup (which is not needed in this case),
you should do it with a single posting to multiple groups so that an
answer on any one group will appear in all groups.
Vili wrote:
> Hi All,
>
> we have following problem(bug) with the EMF code generation tool.
>
> I will explain the process and then the error.
>
> We make new EMF project from our ecore model. Then from the generate model
> (ourmodel.genmodel) we generate the Model Code. And we have the following
> syntax errors in the generated code.
>
> In our ecore model there are variable names and method names which exceed
> the maximum lenght
>
> of the screen. The length of the whole line is 74 characters it will be
> split by generation in the position 57 with new line character and the
> remaining 17 characters are put on the next line.
>
> Example:
>
> it should be like this:
>
> private EDataType xsDbuildInPrimitiveTypeNamesObjectEdataType = null ;
>
> but after the code generation we have the following:
>
> private EDataType xsDbuildInPrimitiveTypeNamesObject
>
> EdataType = null ;
>
> That means now we have two independent lines code and we get after compile
> the syntax error:
>
> "on token "EDataType", delete this token"
>
> We dont want to make changes on our model in order to avoid this error.
>
> Is it a bug? Can you fix it?
>
> We suppose it is an error in the JET code generation.
>
> Please advise solution.
>
> Thanks in advance.
>
> Regards
>
> V.Krastev
>
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02878 seconds