Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317765 - New Xtext project littered with "Couldn't resolve reference to..." errors.
Summary: New Xtext project littered with "Couldn't resolve reference to..." errors.
Status: CLOSED DUPLICATE of bug 318273
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 1.0.0   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-23 22:35 EDT by Missing name Mising name CLA
Modified: 2010-06-29 02:56 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Missing name Mising name CLA 2010-06-23 22:35:21 EDT
I installed Xtext through the Eclipse Marketplace, and started to follow the user guide here:

  http://www.eclipse.org/Xtext/documentation/latest/xtext.html

After following the directions in the section "Create an Xtext Project", my project was created, but it is littered with errors in the *.xtext and *.mwe2 files. All of these errors start with "Couldn't resolve reference to...". Here are a few examples:

  Couldn't resolve reference to Grammar 'org.eclipse.xtext.common.Terminals'.
  Couldn't resolve reference to AbstractRule 'ID'.
  Couldn't resolve reference to JvmFeature 'bean'.
  Couldn't resolve reference to JvmType 'builder.BuilderIntegrationFragment'.


Eclipse:

  Eclipse IDE for Java Developers
  Version: Helios Release
  Build id: 20100617-1415
  File: eclipse-java-helios-macosx-cocoa-x86_64.tar.gz

Java:

  java version "1.6.0_20"
  Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-9M3165)
  Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)
Comment 1 Sebastian Zarnekow CLA 2010-06-24 05:23:41 EDT
Please close the editor and try a clean build. Should be a race-condition with the JDT initialization.
Comment 2 Missing name Mising name CLA 2010-06-24 21:51:10 EDT
(In reply to comment #1)
> Please close the editor and try a clean build. Should be a race-condition with
> the JDT initialization.

I restarted Eclipse many times over trying to diagnose the problem, but the problem still persists. Also, I'm not sure what you mean by a "clean build"... you mean a clean build of Eclipse? This was a brand new installation of Eclipse. The very first thing I did was install Xtext and try to create a new Xtext project.
Comment 3 Sebastian Zarnekow CLA 2010-06-25 04:50:21 EDT
(In reply to comment #2)
> Also, I'm not sure what you mean by a "clean build"...

Please go to the project menu and choose Clean ...
The error markers should disappear afterwards.
Comment 4 Missing name Mising name CLA 2010-06-27 10:46:47 EDT
(In reply to comment #3)
> (In reply to comment #2)
> > Also, I'm not sure what you mean by a "clean build"...
> 
> Please go to the project menu and choose Clean ...
> The error markers should disappear afterwards.

Yes, I have tried that too, however, the problem remains.
Comment 5 Sebastian Zarnekow CLA 2010-06-29 02:56:11 EDT

*** This bug has been marked as a duplicate of bug 318273 ***
Comment 6 Sebastian Zarnekow CLA 2010-06-29 02:56:39 EDT
see also bug 317301