Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Improving xtext building
Improving xtext building [message #552246] Wed, 11 August 2010 12:23 Go to next message
Alexandre Blanquart is currently offline Alexandre BlanquartFriend
Messages: 17
Registered: March 2010
Junior Member
Hi,

I am encountering some problems of Java Heap Space during building workspace (then Xtext building I suppose) given the fact I have 1500 sources in my project.
Changing Eclipse memory settings does not change anything.

I am running Xtext 1.0.1.v201008100627 and Eclipse Helios.

I saw there is already something similar to my problem https://bugs.eclipse.org/bugs/show_bug.cgi?id=307665. But I am not sure fix is already available...

Thanks,
Alexandre
Re: Improving xtext building [message #552341 is a reply to message #552246] Wed, 11 August 2010 19:08 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Alexandre,

the ticket was closed today. Documentation on how to use the clustered
builder will follow. Expect it to be available in Xtext 1.0.1

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 11.08.10 14:23, schrieb Alexandre Blanquart:
> Hi,
> I am encountering some problems of Java Heap Space during building
> workspace (then Xtext building I suppose) given the fact I have 1500
> sources in my project. Changing Eclipse memory settings does not change
> anything.
> I am running Xtext 1.0.1.v201008100627 and Eclipse Helios.
> I saw there is already something similar to my problem
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=307665 But I am not sure
> fix is already available...
>
> Thanks,
> Alexandre
Re: Improving xtext building [message #552478 is a reply to message #552341] Thu, 12 August 2010 10:54 Go to previous messageGo to next message
Timotei Mising name is currently offline Timotei Mising nameFriend
Messages: 89
Registered: March 2010
Member
When is xtext 1.0.1 proposed to appear?

Thanks,
Timo
Re: Improving xtext building [message #552491 is a reply to message #552478] Thu, 12 August 2010 11:16 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Timotei,

it will likely be available at the end of August in approx 2 weeks.

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 12.08.10 12:54, schrieb Timotei:
> When is xtext 1.0.1 proposed to appear?
>
> Thanks,
> Timo
Re: Improving xtext building [message #552703 is a reply to message #552491] Fri, 13 August 2010 08:42 Go to previous messageGo to next message
Alexandre Blanquart is currently offline Alexandre BlanquartFriend
Messages: 17
Registered: March 2010
Junior Member
Hi Sebastian,

That is great news!

Actually I updated Xtext with the latest nightly build. I was wondering if you could give me a quick hint on how to use this new functionality.

Thanks
Regards,
Alexandre
Re: Improving xtext building [message #552916 is a reply to message #552703] Sat, 14 August 2010 13:31 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Alexandre,

just blogged about it:
http://zarnekow.blogspot.com/2010/08/how-to-reduce-memory-co nsumption-of.html

Hope that helps,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 13.08.10 10:42, schrieb Alexandre Blanquart:
> Hi Sebastian,
>
> That is great news!
>
> Actually I updated Xtext with the latest nightly build. I was wondering
> if you could give me a quick hint on how to use this new functionality.
> Thanks
> Regards,
> Alexandre
Re: Improving xtext building [message #552958 is a reply to message #552916] Sun, 15 August 2010 06:24 Go to previous messageGo to next message
Alexander Nittka is currently offline Alexander NittkaFriend
Messages: 1193
Registered: July 2009
Senior Member
Hi Sebastian,

> just blogged about it:
> http://zarnekow.blogspot.com/2010/08/how-to-reduce-memory-co nsumption-of.html

I guess this would be a good candidate for a generator fragment ;-)


Alex


Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext@itemis.de
Re: Improving xtext building [message #552967 is a reply to message #552958] Sun, 15 August 2010 11:20 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Filed: https://bugs.eclipse.org/bugs/show_bug.cgi?id=322717

Thanks for the feedback,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com


Am 15.08.10 08:24, schrieb Alexander Nittka:
> Hi Sebastian,
>
>> just blogged about it:
>> http://zarnekow.blogspot.com/2010/08/how-to-reduce-memory-co nsumption-of.html
>
>
> I guess this would be a good candidate for a generator fragment ;-)
>
>
> Alex
Re: Improving xtext building [message #553032 is a reply to message #552916] Mon, 16 August 2010 07:16 Go to previous messageGo to next message
Alexandre Blanquart is currently offline Alexandre BlanquartFriend
Messages: 17
Registered: March 2010
Junior Member
Hi Sebastian,

I will try this out now !
Thank you for blogging it.

Regards,
Alexandre
Re: Improving xtext building [message #554450 is a reply to message #553032] Mon, 23 August 2010 08:43 Go to previous messageGo to next message
Alexandre Blanquart is currently offline Alexandre BlanquartFriend
Messages: 17
Registered: March 2010
Junior Member
Hi,

I followed the blog entry but I am now encountering another problem reproductible on different platforms. Actually, the building project job blocks at resource 21, 25 or 1421 for 1466 resources.

Do you have any idea about this problem?

Thanks,
Regards,
Alexandre
Re: Improving xtext building [message #554459 is a reply to message #554450] Mon, 23 August 2010 09:07 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Alexandre,

do you mean the job is stuck and will never complete or does it just
take some time to finish the resource?
I'ld assume you are refering the the task "updating resource
description" during the build process? A long delay may be caused by
strong dependencies on many other resources which have to be loaded to
establish cross references for a certain resource. This may take some time.

If you feel that the build process is too slow or you have other
scalability issues, I'ld recommend to perform an in-depth analysis /
profiling for your particular language. Please don't hesitate to contact
us (see footer) if you need any project specific help that goes beyond
the support in this newsgroup.

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 23.08.10 10:43, schrieb Alexandre Blanquart:
> Hi,
>
> I followed the blog entry but I am now encountering another problem
> reproductible on different platforms. Actually, the building project job
> blocks at resource 21, 25 or 1421 for 1466 resources.
> Do you have any idea about this problem?
>
> Thanks,
> Regards,
> Alexandre
>
Re: Improving xtext building [message #554525 is a reply to message #554459] Mon, 23 August 2010 13:33 Go to previous messageGo to next message
Alexandre Blanquart is currently offline Alexandre BlanquartFriend
Messages: 17
Registered: March 2010
Junior Member
Hi Sebastian,

Indeed the job is stuck. Letting it continue for several hours does not change anything and stopping it does not work which means that you need to restart eclipse.

The problem is still there even I have something like that for my scope provider :
@Override
public IScope getScope(EObject context, EReference reference) {
   return IScope.NULLSCOPE;
}


To add to what you mentioned about long delays and strong dependencies, I am now wondering how the xtext building really works. My problem occurs during "loading affected resource 25 of 1466". What does xtext really do when loading a resource? Do I have to build some "core" resources before the others as my language is dynamic (dependencies resolved at runtime : no "import" key)?

Regards,
Alexandre
Re: Improving xtext building [message #554608 is a reply to message #554525] Mon, 23 August 2010 16:38 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Alexandre,

it does what it tells. Loading resources just calls getResource for each
available uri. Can you create a thread dump when the builder is stuck?
I'ld assume that it loops endlessly although I've no idea why or where
this may happen.

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 23.08.10 15:33, schrieb Alexandre Blanquart:
> Hi Sebastian,
>
> Indeed the job is stuck. Letting it continue for several hours does not
> change anything and stopping it does not work which means that you need
> to restart eclipse.
> The problem is still there even I have something like that for my scope
> provider :
>
> @Override
> public IScope getScope(EObject context, EReference reference) {
> return IScope.NULLSCOPE;
> }
>
>
> To add to what you mentioned about long delays and strong dependencies,
> I am now wondering how the xtext building really works. My problem
> occurs during "loading affected resource 25 of 1466". What does xtext
> really do when loading a resource? Do I have to build some "core"
> resources before the others as my language is dynamic (dependencies
> resolved at runtime : no "import" key)?
> Regards,
> Alexandre
Re: Improving xtext building [message #554732 is a reply to message #554608] Tue, 24 August 2010 09:35 Go to previous messageGo to next message
Alexandre Blanquart is currently offline Alexandre BlanquartFriend
Messages: 17
Registered: March 2010
Junior Member
Hi Sebastian,

I went further on the debugging and found the file causing the problem. It seems that indeed this specific resource can not be loaded (see loadResourceCluster#ClusteringUpdater and getResource(uri) calling).

Moreover, I am not able to open this file in my language editor (in text editor view it is fine). It is looping endlessly during the initialization of the corresponding XtextEditor. Do you have any idea that may cause the problem ?

Thank you very much,
Regards,
Alexandre
Re: Improving xtext building [message #554735 is a reply to message #554732] Tue, 24 August 2010 09:42 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Alexandre,

please provide a stacktrace from the never ending loop. It may be copied
from the debug view (just pause the vm when the editor is stuck).

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 24.08.10 11:35, schrieb Alexandre Blanquart:
> Hi Sebastian,
>
> I went further on the debugging and found the file causing the problem.
> It seems that indeed this specific resource can not be loaded (see
> loadResourceCluster#ClusteringUpdater and getResource(uri) calling).
> Moreover, I am not able to open this file in my language editor (in text
> editor view it is fine). It is looping endlessly during the
> initialization of the corresponding XtextEditor. Do you have any idea
> that may cause the problem ?
>
> Thank you very much,
> Regards,
> Alexandre
Re: Improving xtext building [message #555837 is a reply to message #552246] Sun, 29 August 2010 12:04 Go to previous messageGo to next message
Johannes Stelzer is currently offline Johannes StelzerFriend
Messages: 30
Registered: October 2009
Member
I've encountered another problem:

I'm using the last nightly (since clustering is not in 1.0.1RC1).

I get this Message:

!MESSAGE Platform filter did not match: (& (osgi.os=linux) (osgi.arch=x86))
0 [main] ERROR org.eclipse.xtext.ui.shared.internal.Activator - org.eclipse.core.runtime.CoreException: Plug-in de.stelzer.sntsworkbench.ui was unable to load class org.eclipse.xtext.builder.clusterin.ClusteringModule.


I'm on Windows 7 x64 here...

[Updated on: Sun, 29 August 2010 12:06]

Report message to a moderator

Re: Improving xtext building [message #555877 is a reply to message #555837] Sun, 29 August 2010 21:55 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Johannes,

do you face the same problem with Xtext 1.0.1 which was released last
Wednesday? Do you get any other errors in the log? Which platform do you
use?

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 29.08.10 14:04, schrieb Johannes Stelzer:
> I've encountered another problem:
>
> I'm using the last nightly (since clustering is not in 1.0.1RC1).
>
> I get this Message:
>
> !MESSAGE Platform filter did not match: (& (osgi.os=linux) (osgi.arch=x86))
> 0 [main] ERROR org.eclipse.xtext.ui.shared.internal.Activator -
> org.eclipse.core.runtime.CoreException: Plug-in
> de.stelzer.sntsworkbench.ui was unable to load class
> org.eclipse.xtext.builder.clusterin.ClusteringModule.
>
Re: Improving xtext building [message #555886 is a reply to message #555877] Mon, 30 August 2010 03:37 Go to previous message
Johannes Stelzer is currently offline Johannes StelzerFriend
Messages: 30
Registered: October 2009
Member
Hi Sebastian,

it was my fault - as you can see I mispelled the full qualified classname!

[Updated on: Mon, 30 August 2010 03:39]

Report message to a moderator

Previous Topic:composition of one model in xtext from many different parts
Next Topic:Question about ANTLR and recursions
Goto Forum:
  


Current Time: Tue May 14 02:40:45 GMT 2024

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

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

Back to the top