Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Build project and Build All are greyed out even Build Automatically unselect(Build project and Build All are greyed out even Build Automatically unselect)
Build project and Build All are greyed out even Build Automatically unselect [message #1739483] Tue, 02 August 2016 10:20 Go to next message
Sachin Samaram is currently offline Sachin SamaramFriend
Messages: 271
Registered: April 2016
Senior Member
Hi,

I have created own custom project.
Build project and Build All are greyed out even Build Automatically not selected.
Build options are working fine for eclipse built in projects (java, javaee ....).
Can anybody help?
index.php/fa/26647/0/
  • Attachment: build.png
    (Size: 172.23KB, Downloaded 379 times)
Re: Build project and Build All are greyed out even Build Automatically unselect [message #1739485 is a reply to message #1739483] Tue, 02 August 2016 10:24 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 762
Registered: July 2009
Location: Dortmund, Germany
Senior Member

The project "Panther" has no decorator on its project icon. Please open the Navigator view, then open the .project file in the project root. Are there any natures and builders configured for the project?

You seem to assume that it is an Xtext project, which usually has the Xtext nature. You can assign the nature with right-click on the project then Configure -> Add Xtext Nature. Only projects with Xtext nature are considered by the Xtext builder.



Need professional support for Xtext, EMF, Eclipse IDE?
Go to: http://devhub.karakun.com
Twitter : @kthoms
Blog : www.karsten-thoms.de
Re: Build project and Build All are greyed out even Build Automatically unselect [message #1739488 is a reply to message #1739485] Tue, 02 August 2016 11:00 Go to previous messageGo to next message
Sachin Samaram is currently offline Sachin SamaramFriend
Messages: 271
Registered: April 2016
Senior Member
Yes, its working thank you
Re: Build project and Build All are greyed out even Build Automatically unselect [message #1739600 is a reply to message #1739488] Wed, 03 August 2016 08:29 Go to previous messageGo to next message
Sachin Samaram is currently offline Sachin SamaramFriend
Messages: 271
Registered: April 2016
Senior Member
But after adding the Xtext nature then while saving mydsl file I am getting a message and going

index.php/fa/26675/0/

How to solve this problem

[Updated on: Wed, 03 August 2016 08:30]

Report message to a moderator

Re: Build project and Build All are greyed out even Build Automatically unselect [message #1739603 is a reply to message #1739600] Wed, 03 August 2016 08:48 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14654
Registered: July 2009
Senior Member
this is inside your implementation. the xtext builder will parse, index (thats happing right now), link (resolve cross references), validate and generate your files.
depending what you implement that may take time. and if your language has bad constructs or implementation it make take MORE time.


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Build project and Build All are greyed out even Build Automatically unselect [message #1739606 is a reply to message #1739603] Wed, 03 August 2016 08:59 Go to previous messageGo to next message
Sachin Samaram is currently offline Sachin SamaramFriend
Messages: 271
Registered: April 2016
Senior Member
Bad constructs or implementation means in xtext grammar file?
Re: Build project and Build All are greyed out even Build Automatically unselect [message #1739608 is a reply to message #1739606] Wed, 03 August 2016 09:05 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14654
Registered: July 2009
Senior Member
it may be inside the parser (when "writing new resource descriptions" take very long this may be the case)
it may be inside the default or your implementation of IQualifiedNameProvider and IDefaultResourceDescriptionStrategy
it may be inside the implementation of the Scope Provider and Validator ....

=> can not generally be anwered


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Build project and Build All are greyed out even Build Automatically unselect [message #1739613 is a reply to message #1739608] Wed, 03 August 2016 09:29 Go to previous messageGo to next message
Sachin Samaram is currently offline Sachin SamaramFriend
Messages: 271
Registered: April 2016
Senior Member
Thank you Christian
Re: Build project and Build All are greyed out even Build Automatically unselect [message #1739726 is a reply to message #1739613] Thu, 04 August 2016 10:36 Go to previous messageGo to next message
Sachin Samaram is currently offline Sachin SamaramFriend
Messages: 271
Registered: April 2016
Senior Member
Hi,

I identified the performance issue "writing new resource descriptions.." with this rule:
OpenAssignment : ('math')? (precision=Precision)? ((exp+=Expression) (','? (exp+=Expression))*);

If I use this statement
OpenAssignment : ('math') (precision=Precision)? ((exp+=Expression) (','? (exp+=Expression))*);
instead of above there is no performance issue.

Can anyone tell me what could be the problem with first statement?
Re: Build project and Build All are greyed out even Build Automatically unselect [message #1739727 is a reply to message #1739726] Thu, 04 August 2016 10:43 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14654
Registered: July 2009
Senior Member
i think this has to do with your general ambiguities,
likely by having a parent that has a

Parent: assignments+= OpenAssignment*

=> the parser has to fiddle if the expressions belong to the first assignment or the second assignment.


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Composing multiple grammars and parser backend
Next Topic:XBase: Adding explicit import statement using JvmModelInferrer
Goto Forum:
  


Current Time: Thu Feb 29 00:08:22 GMT 2024

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

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

Back to the top