Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 344816 - cannot compile Xtext 2 sources
Summary: cannot compile Xtext 2 sources
Status: CLOSED WORKSFORME
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-05 05:09 EDT by Lorenzo Bettini CLA
Modified: 2017-09-19 17:18 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 Lorenzo Bettini CLA 2011-05-05 05:09:15 EDT
I was trying to compile xtext 2 source from the git master branch; following http://www.eclipse.org/Xtext/developers/workspaceSetup.php I downloaded the target platform http://download.itemis.com/distros/eclipse-SDK-3.5.2-xtext-2.0-targetplatform-linux-gtk.tar.gz and set it in my workspace

but I soon get a compilation problem in org.eclipse.xtext, due to org.eclipse.emf.mwe2 which cannot be resolved...  actually mwe2 is installed in my eclipse (I'm using the eclipse distribution I use for xtext 1.0.2) but not in the target platform I guess 

I then imported in my workspace the sources of org.eclipse.emf.mwe, which then complain about org.eclipse.xtend which is missing

then I imported the sources of xtend (from the CVS directory org.eclipse.xpand) which complain in org.eclipse.internal.xtend.xtend.parser.XtendLexer that the 'type' cannot be resolved to a field)... probably a mismatch with the antlr in the xtext sources?
Comment 1 Moritz Eysholdt CLA 2011-05-09 03:39:58 EDT
make sure to use the source from git rather than CVS. CVS is deprecated for Xtext, MWE and Xpand.

http://git.eclipse.org/c/tmf/org.eclipse.xtext.git/
http://git.eclipse.org/c/emf/org.eclipse.mwe.git/
http://git.eclipse.org/c/m2t/org.eclipse.xpand.git/
Comment 2 Lorenzo Bettini CLA 2011-05-10 04:26:42 EDT
some updates:

I imported in the workspace all the projects of the plugins directory of 

http://git.eclipse.org/c/emf/org.eclipse.mwe.git/
http://git.eclipse.org/c/m2t/org.eclipse.xpand.git/

and it looks most of xtext plugins can be built...

I still have problems with org.eclipse.xtext.ecore (The type org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent cannot be resolved. It is indirectly referenced from required .class files	EcoreSupport.java	/org.eclipse.xtext.ecore/src/org/eclipse/xtext/ecore	line 38	Java Problem), org.eclipse.xtext.xtend2 (problems in Xtend2.xtext) and some on Xbase.xtext and Xtype.xtext but I guess these are due to the fact that these grammars rely on xtext2 (which is what is being built in the current workspace), thus it should not be a problem, should it?
Comment 3 Moritz Eysholdt CLA 2011-05-11 05:00:51 EDT
> I still have problems with org.eclipse.xtext.ecore (The type
> org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent cannot be resolved. It
> is indirectly referenced from required .class files    EcoreSupport.java   
> /org.eclipse.xtext.ecore/src/org/eclipse/xtext/ecore    line 38    Java
> Problem)

IWorkflowComponent comes from bundle org.eclipse.emf.mwe2.runtime. Do you have that in your workspace? it compiles fine for me...

> org.eclipse.xtext.xtend2 (problems in Xtend2.xtext) and some on
> Xbase.xtext and Xtype.xtext but I guess these are due to the fact that these
> grammars rely on xtext2 (which is what is being built in the current
> workspace), thus it should not be a problem, should it?

yes, the *.xtext grammars need Xtext2 to be displayed without error markers. That's not a problem since all workflows etc. will run anyway. If you want to get rid of theses errors, you'll need to upgrade Xtext in your host workbench to version 2.0. You can use the update sites or get an Eclipse Distro with M6 pre-installed from here: http://download.itemis.com/distros/
Comment 4 Sebastian Zarnekow CLA 2012-04-02 16:33:26 EDT
Please reopen if there is still an issue with the workspace setup
Comment 5 Karsten Thoms CLA 2017-09-19 17:06:54 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 6 Karsten Thoms CLA 2017-09-19 17:18:42 EDT
Closing all bugs that were set to RESOLVED before Neon.0