Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc) » [Texo] Charset conversion errors inside xpt and xtend files
| | |
Re: [Texo] Charset conversion errors inside xpt and xtend files [message #1007423 is a reply to message #1007274] |
Tue, 05 February 2013 19:40 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Heiko,
For getting rid of the errors you can set the preferences as in the attachment. But I did it differently, I set these
preferences at project level now (so they are now in the git repo).
I also solved the demo project issues. Note the demo project is mainly used by myself internally for testing manual code
generation through the ui. But there should not be compile errors in git ofcourse.
Note that texo currently uses xtend templates only, but uses xpand for extensions/overrides. The xpand templates in the
plugin are there just as an example. This page gives more details:
http://wiki.eclipse.org/Texo/Template_Overriding
gr. Martin
On 02/05/2013 11:38 AM, Heiko wrote:
> Hi Martin,
> thanks for your fast help.
> now I've got right encoded files.
>
> But while checkout from git with the Eclipse included EGit I've got Java heap space errors. But I dont know if git has a
> problem with a file inside your repository or is it a generally problem of EGit.
> After checkout with GitBash and import from local repository i have no more the old errors.
>
> Git Error:
> Error
> Tue Feb 05 09:23:11 CET 2013
> An internal error occurred during: "Fetch from http://git.eclipse.org/gitroot/texo/org.eclipse.emf.texo.git".
>
> java.lang.OutOfMemoryError: Java heap space
> at org.eclipse.jgit.storage.pack.BinaryDelta.apply(BinaryDelta.java:163)
> at org.eclipse.jgit.storage.pack.BinaryDelta.apply(BinaryDelta.java:118)
> at org.eclipse.jgit.transport.PackParser.resolveDeltas(PackParser.java:609)
> at org.eclipse.jgit.transport.PackParser.resolveDeltas(PackParser.java:586)
> at org.eclipse.jgit.transport.PackParser.resolveDeltas(PackParser.java:549)
> at org.eclipse.jgit.transport.PackParser.parse(PackParser.java:506)
> at org.eclipse.jgit.storage.file.ObjectDirectoryPackParser.parse(ObjectDirectoryPackParser.java:179)
> at org.eclipse.jgit.transport.PackParser.parse(PackParser.java:448)
> at org.eclipse.jgit.transport.BasePackFetchConnection.receivePack(BasePackFetchConnection.java:717)
> at org.eclipse.jgit.transport.BasePackFetchConnection.doFetch(BasePackFetchConnection.java:324)
> at org.eclipse.jgit.transport.TransportHttp$SmartHttpFetchConnection.doFetch(TransportHttp.java:710)
> at org.eclipse.jgit.transport.BasePackFetchConnection.fetch(BasePackFetchConnection.java:269)
> at org.eclipse.jgit.transport.FetchProcess.fetchObjects(FetchProcess.java:225)
> at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:151)
> at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:113)
> at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1069)
> at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:128)
> at org.eclipse.egit.core.op.FetchOperation.run(FetchOperation.java:127)
> at org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute(FetchOperationUI.java:99)
> at org.eclipse.egit.ui.internal.fetch.FetchOperationUI$1.run(FetchOperationUI.java:117)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
>
>
> After reimport I could fix some other things with:
> -define a Tomcat 7 runtime
> -build a usefull target platform
>
> But now I have the next problems:
> The first one is realy small:
> Inside: org.eclipse.emf.texo.demo
> It missed the class: Asdad
>
>
> The bigger problem:
> At the xpand files inside
> Plugin: org.eclipse.emf.texo.modelgenerator
> Package: org.eclipse.emf.texo.modelgenerator.templates
> I've got warnings and errors like
>
> Warning markers for the imports
> Namespace org::eclipse::emf::texo::modelgenerator::modelannotations» is unknown or unused
>
> errors:
> Couldn't find EClassModelGenAnnotation addition.xpt
> /org.eclipse.emf.texo.modelgenerator/src/org/eclipse/emf/texo/modelgenerator/templates line: 9 Xtend/Xpand Problem
>
> Couldn't find EPackageModelGenAnnotation addition.xpt
> /org.eclipse.emf.texo.modelgenerator/src/org/eclipse/emf/texo/modelgenerator/templates line: 5 Xtend/Xpand Problem
>
>
>
> What I have to do, to fix these errors?
>
> Thanks again
>
> Heiko
>
> PS: I'm new at xtend/xpand. ;)
>
> Am 04.02.2013 22:32, schrieb Martin Taal:
>> Hi Heiko,
>> Probably an encoding issue. I now explicitly set the encoding to utf-8
>> in the modelgenerator plugin project. Can you pull and see if it helps?
>>
>> gr. Martin
>>
>> On 02/04/2013 11:34 AM, Heiko wrote:
>>> Hi,
>>> for better understanding the texo model generation, I checked out the
>>> complete Texo git repository.
>>>
>>> It looks well except the org.eclipse.emt.texo.modelgenerator plugin. :(
>>> Here I have many errors inside the xpt and xtend files.
>>> Here I've got things like:
>>> «IF this.documentation != null-»
>>> * <!-- begin-model-doc -->
>>> * «this.documentation-»
>>> * <!-- end-model-doc -->
>>> «ENDIF-»
>>>
>>> I think it is a problem with a charset conversion, but how can I fix
>>> it to get the right data?
>>>
>>> I'm working on a german Windows 7 system.
>>>
>>> Thanks in advance
>>>
>>> Heiko
>>
>>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
|
|
|
Re: [Texo] Charset conversion errors inside xpt and xtend files [message #1007424 is a reply to message #1007274] |
Tue, 05 February 2013 19:44 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Heiko,
Btw, the java heap errors are an egit problem I guess. I use ubuntu linux and commandline git and this works perfectly.
gr. Martin
On 02/05/2013 11:38 AM, Heiko wrote:
> Hi Martin,
> thanks for your fast help.
> now I've got right encoded files.
>
> But while checkout from git with the Eclipse included EGit I've got Java heap space errors. But I dont know if git has a
> problem with a file inside your repository or is it a generally problem of EGit.
> After checkout with GitBash and import from local repository i have no more the old errors.
>
> Git Error:
> Error
> Tue Feb 05 09:23:11 CET 2013
> An internal error occurred during: "Fetch from http://git.eclipse.org/gitroot/texo/org.eclipse.emf.texo.git".
>
> java.lang.OutOfMemoryError: Java heap space
> at org.eclipse.jgit.storage.pack.BinaryDelta.apply(BinaryDelta.java:163)
> at org.eclipse.jgit.storage.pack.BinaryDelta.apply(BinaryDelta.java:118)
> at org.eclipse.jgit.transport.PackParser.resolveDeltas(PackParser.java:609)
> at org.eclipse.jgit.transport.PackParser.resolveDeltas(PackParser.java:586)
> at org.eclipse.jgit.transport.PackParser.resolveDeltas(PackParser.java:549)
> at org.eclipse.jgit.transport.PackParser.parse(PackParser.java:506)
> at org.eclipse.jgit.storage.file.ObjectDirectoryPackParser.parse(ObjectDirectoryPackParser.java:179)
> at org.eclipse.jgit.transport.PackParser.parse(PackParser.java:448)
> at org.eclipse.jgit.transport.BasePackFetchConnection.receivePack(BasePackFetchConnection.java:717)
> at org.eclipse.jgit.transport.BasePackFetchConnection.doFetch(BasePackFetchConnection.java:324)
> at org.eclipse.jgit.transport.TransportHttp$SmartHttpFetchConnection.doFetch(TransportHttp.java:710)
> at org.eclipse.jgit.transport.BasePackFetchConnection.fetch(BasePackFetchConnection.java:269)
> at org.eclipse.jgit.transport.FetchProcess.fetchObjects(FetchProcess.java:225)
> at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:151)
> at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:113)
> at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1069)
> at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:128)
> at org.eclipse.egit.core.op.FetchOperation.run(FetchOperation.java:127)
> at org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute(FetchOperationUI.java:99)
> at org.eclipse.egit.ui.internal.fetch.FetchOperationUI$1.run(FetchOperationUI.java:117)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
>
>
> After reimport I could fix some other things with:
> -define a Tomcat 7 runtime
> -build a usefull target platform
>
> But now I have the next problems:
> The first one is realy small:
> Inside: org.eclipse.emf.texo.demo
> It missed the class: Asdad
>
>
> The bigger problem:
> At the xpand files inside
> Plugin: org.eclipse.emf.texo.modelgenerator
> Package: org.eclipse.emf.texo.modelgenerator.templates
> I've got warnings and errors like
>
> Warning markers for the imports
> Namespace org::eclipse::emf::texo::modelgenerator::modelannotations» is unknown or unused
>
> errors:
> Couldn't find EClassModelGenAnnotation addition.xpt
> /org.eclipse.emf.texo.modelgenerator/src/org/eclipse/emf/texo/modelgenerator/templates line: 9 Xtend/Xpand Problem
>
> Couldn't find EPackageModelGenAnnotation addition.xpt
> /org.eclipse.emf.texo.modelgenerator/src/org/eclipse/emf/texo/modelgenerator/templates line: 5 Xtend/Xpand Problem
>
>
>
> What I have to do, to fix these errors?
>
> Thanks again
>
> Heiko
>
> PS: I'm new at xtend/xpand. ;)
>
> Am 04.02.2013 22:32, schrieb Martin Taal:
>> Hi Heiko,
>> Probably an encoding issue. I now explicitly set the encoding to utf-8
>> in the modelgenerator plugin project. Can you pull and see if it helps?
>>
>> gr. Martin
>>
>> On 02/04/2013 11:34 AM, Heiko wrote:
>>> Hi,
>>> for better understanding the texo model generation, I checked out the
>>> complete Texo git repository.
>>>
>>> It looks well except the org.eclipse.emt.texo.modelgenerator plugin. :(
>>> Here I have many errors inside the xpt and xtend files.
>>> Here I've got things like:
>>> «IF this.documentation != null-»
>>> * <!-- begin-model-doc -->
>>> * «this.documentation-»
>>> * <!-- end-model-doc -->
>>> «ENDIF-»
>>>
>>> I think it is a problem with a charset conversion, but how can I fix
>>> it to get the right data?
>>>
>>> I'm working on a german Windows 7 system.
>>>
>>> Thanks in advance
>>>
>>> Heiko
>>
>>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
|
|
|
Re: [Texo] Charset conversion errors inside xpt and xtend files [message #1008410 is a reply to message #1007424] |
Tue, 12 February 2013 11:23 |
techteam Messages: 55 Registered: September 2010 |
Member |
|
|
Hi Martin,
sorry for late answer.
After update it looks good.
Now I have only an error inside the advices.xpt.
While we try working with the texo generator, we obtain some other
issues, but for these i will open a new thread.
Greetings
Heiko
PS: Thanks for this great tool / framework.
Am 05.02.2013 20:44, schrieb Martin Taal:
> Hi Heiko,
> Btw, the java heap errors are an egit problem I guess. I use ubuntu
> linux and commandline git and this works perfectly.
>
> gr. Martin
>
> On 02/05/2013 11:38 AM, Heiko wrote:
>> Hi Martin,
>> thanks for your fast help.
>> now I've got right encoded files.
>>
>> But while checkout from git with the Eclipse included EGit I've got
>> Java heap space errors. But I dont know if git has a
>> problem with a file inside your repository or is it a generally
>> problem of EGit.
>> After checkout with GitBash and import from local repository i have no
>> more the old errors.
>>
>> Git Error:
>> Error
>> Tue Feb 05 09:23:11 CET 2013
>> An internal error occurred during: "Fetch from
>> http://git.eclipse.org/gitroot/texo/org.eclipse.emf.texo.git".
>>
>> java.lang.OutOfMemoryError: Java heap space
>> at
>> org.eclipse.jgit.storage.pack.BinaryDelta.apply(BinaryDelta.java:163)
>> at
>> org.eclipse.jgit.storage.pack.BinaryDelta.apply(BinaryDelta.java:118)
>> at
>> org.eclipse.jgit.transport.PackParser.resolveDeltas(PackParser.java:609)
>> at
>> org.eclipse.jgit.transport.PackParser.resolveDeltas(PackParser.java:586)
>> at
>> org.eclipse.jgit.transport.PackParser.resolveDeltas(PackParser.java:549)
>> at org.eclipse.jgit.transport.PackParser.parse(PackParser.java:506)
>> at
>> org.eclipse.jgit.storage.file.ObjectDirectoryPackParser.parse(ObjectDirectoryPackParser.java:179)
>>
>> at org.eclipse.jgit.transport.PackParser.parse(PackParser.java:448)
>> at
>> org.eclipse.jgit.transport.BasePackFetchConnection.receivePack(BasePackFetchConnection.java:717)
>>
>> at
>> org.eclipse.jgit.transport.BasePackFetchConnection.doFetch(BasePackFetchConnection.java:324)
>>
>> at
>> org.eclipse.jgit.transport.TransportHttp$SmartHttpFetchConnection.doFetch(TransportHttp.java:710)
>>
>> at
>> org.eclipse.jgit.transport.BasePackFetchConnection.fetch(BasePackFetchConnection.java:269)
>>
>> at
>> org.eclipse.jgit.transport.FetchProcess.fetchObjects(FetchProcess.java:225)
>>
>> at
>> org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:151)
>> at
>> org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:113)
>> at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1069)
>> at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:128)
>> at
>> org.eclipse.egit.core.op.FetchOperation.run(FetchOperation.java:127)
>> at
>> org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute(FetchOperationUI.java:99)
>>
>> at
>> org.eclipse.egit.ui.internal.fetch.FetchOperationUI$1.run(FetchOperationUI.java:117)
>>
>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
>>
>>
>> After reimport I could fix some other things with:
>> -define a Tomcat 7 runtime
>> -build a usefull target platform
>>
>> But now I have the next problems:
>> The first one is realy small:
>> Inside: org.eclipse.emf.texo.demo
>> It missed the class: Asdad
>>
>>
>> The bigger problem:
>> At the xpand files inside
>> Plugin: org.eclipse.emf.texo.modelgenerator
>> Package: org.eclipse.emf.texo.modelgenerator.templates
>> I've got warnings and errors like
>>
>> Warning markers for the imports
>> Namespace org::eclipse::emf::texo::modelgenerator::modelannotations»
>> is unknown or unused
>>
>> errors:
>> Couldn't find EClassModelGenAnnotation addition.xpt
>> /org.eclipse.emf.texo.modelgenerator/src/org/eclipse/emf/texo/modelgenerator/templates
>> line: 9 Xtend/Xpand Problem
>>
>> Couldn't find EPackageModelGenAnnotation addition.xpt
>> /org.eclipse.emf.texo.modelgenerator/src/org/eclipse/emf/texo/modelgenerator/templates
>> line: 5 Xtend/Xpand Problem
>>
>>
>>
>> What I have to do, to fix these errors?
>>
>> Thanks again
>>
>> Heiko
>>
>> PS: I'm new at xtend/xpand. ;)
>>
>> Am 04.02.2013 22:32, schrieb Martin Taal:
>>> Hi Heiko,
>>> Probably an encoding issue. I now explicitly set the encoding to utf-8
>>> in the modelgenerator plugin project. Can you pull and see if it helps?
>>>
>>> gr. Martin
>>>
>>> On 02/04/2013 11:34 AM, Heiko wrote:
>>>> Hi,
>>>> for better understanding the texo model generation, I checked out the
>>>> complete Texo git repository.
>>>>
>>>> It looks well except the org.eclipse.emt.texo.modelgenerator plugin. :(
>>>> Here I have many errors inside the xpt and xtend files.
>>>> Here I've got things like:
>>>> «IF this.documentation != null-»
>>>> * <!-- begin-model-doc -->
>>>> * «this.documentation-»
>>>> * <!-- end-model-doc -->
>>>> «ENDIF-»
>>>>
>>>> I think it is a problem with a charset conversion, but how can I fix
>>>> it to get the right data?
>>>>
>>>> I'm working on a german Windows 7 system.
>>>>
>>>> Thanks in advance
>>>>
>>>> Heiko
>>>
>>>
>>
>
>
|
|
|
Goto Forum:
Current Time: Thu Sep 26 19:09:12 GMT 2024
Powered by FUDForum. Page generated in 0.04884 seconds
|