Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 318273

Summary: "Couldn't resolve reference to Grammar 'org.eclipse.xtext.common.Terminals'" when creating example project
Product: [Modeling] TMF Reporter: Bo Gundersen <bo.gundersen>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: alopecoid, sebastian.zarnekow, sven.efftinge
Version: 1.0.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Bo Gundersen CLA 2010-06-29 02:24:36 EDT
I tried downloading the new eclipse helios release and installed xtext through the new marketplace feature. However each time I create an xtext project, there is unsatisfied dependencies to the xtext libraries.

Steps to reproduce:
1) Download eclipse helios for java developers
2) Create a new workbench
3) Install xtext through the eclipse marketplace
4) Create a "Xtext Simple Arithmetics Example" project
5) Verify that, among other things, reference to the org.eclipse.xtext.common.Terminals grammar cant be resolved

I have tested this on both Ubuntu and Windows Vista 64bit with new installations of eclipse.
Comment 1 Sven Efftinge CLA 2010-06-29 02:43:28 EDT
That is because Xtext relies on PDE (use the RCP package or install PDE).

*** This bug has been marked as a duplicate of bug 317301 ***
Comment 2 Sven Efftinge CLA 2010-06-29 02:44:51 EDT
Just to avoid any missunderstandings: 

Only the Xtext Grammar development integration relies on PDE and only because we use PDE to declare and resolve referenced jars. You could also add the required jars manually to you project and you'll be fine.
Comment 3 Sebastian Zarnekow CLA 2010-06-29 02:56:11 EDT
*** Bug 317765 has been marked as a duplicate of this bug. ***
Comment 4 Sebastian Zarnekow CLA 2010-06-29 02:57:22 EDT
see also bug 317301
Comment 5 Bo Gundersen CLA 2010-06-29 03:55:07 EDT
Confirmed, installing PDF and recreating the projects worked. Thank you for the quick response.
Comment 6 Missing name Mising name CLA 2010-06-29 20:44:16 EDT
Can someone please explain, step-by-step how I can fix this?

For example, I don't know what "PDE" is. I search for it in the "Eclipse Marketplace", but nothing relevant seems to be returned. When I Google for it, I land on this page:

http://www.eclipse.org/pde/downloads/

Which just says "PDE ships with the Eclipse SDK and can be downloaded from the Eclipse project downloads page." Well, if that were true, then wouldn't I have it already?

Could you please tell me what I can search for, or what the exact update link is?

I think that most users would prefer not to have to hunt around for these things or become intimate with the Eclipse ecosystem, especially for something that is being touted as a major new feature of Eclipse 3.6 (Xtext), yet it doesn't work out-of-the-box.

Thank you.
Comment 7 Sebastian Zarnekow CLA 2010-06-30 02:27:37 EDT
(In reply to comment #6)
> Can someone please explain, step-by-step how I can fix this?

The marketplace does not seem to be that helpful if one has ne clue about the right search-phrase :-(

Please Go to the "Install New Software" menu in Eclipse (Help -> Install New Software), choose the Helios Update Site (http://download.eclipse.org/releases/helios) from the drop down list and filter the availble components for "Plug-in". Choose Eclipse Plug-in Development Environment (PDE) and hit Finish.
Comment 8 Missing name Mising name CLA 2010-06-30 22:46:59 EDT
(In reply to comment #7)
> (In reply to comment #6)
> > Can someone please explain, step-by-step how I can fix this?
> 
> The marketplace does not seem to be that helpful if one has ne clue about the
> right search-phrase :-(
> 
> Please Go to the "Install New Software" menu in Eclipse (Help -> Install New
> Software), choose the Helios Update Site
> (http://download.eclipse.org/releases/helios) from the drop down list and
> filter the availble components for "Plug-in". Choose Eclipse Plug-in
> Development Environment (PDE) and hit Finish.

Thank you.

This resolved all errors across the 3 generated projects (after doing a Project -> Clean -> All). Only 3 warnings remained (one for each of the 3 generated projects):

  The file "plugin.xml" does not exist in the workspace build.properties

This was fixed easily by removing the build.xml reference from each of the build.properties files.


Could PDE be added as a dependency of Xtext so that Xtext installations are usable out-of-the-box Also, perhaps the aforementioned warnings should be fixed so that users can have a smoother experience when creating their first project.

Thank you.