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

Bug 367013

Summary: Spurious "The imported package is not on the classpath of this project which may lead to follow up errors."
Product: [Modeling] TMF Reporter: Ed Willink <ed>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: btickets
Version: 2.2.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Ed Willink CLA 2011-12-17 12:18:46 EST
Xtext 2.2.1 reports "The imported package is not on the classpath of this project which may lead to follow up errors." unless the package is in an explicitly imported package. It fails to consider exported packages from the closure of imported packages.
Comment 1 Ed Willink CLA 2013-07-06 02:26:40 EDT
Finally found out what the cause of this confusing message is:

Xtext now requires all referenced packages in open projects to have an Xtext nature.

Therefore where this requiirement is violated please use the alternative message (and quick fix).

"The imported package does not have the Xtext nature."