Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext Hello World does not work with Eclipse 2018-12(Xtext Hello World does not work with Eclipse 2018-12)
Xtext Hello World does not work with Eclipse 2018-12 [message #1803788] Sun, 10 March 2019 01:42 Go to next message
Edward Lee is currently offline Edward LeeFriend
Messages: 1
Registered: March 2019
Junior Member
I have a brand new fresh installation of Eclipse 2018-12, and the xtext Hello World example, org.xtext.example.mydsl, does not work. Specifically, the steps that fail (on a brand new Eclipse) are these:

1. Install xtext as here:
2. Create a new xtext project
3. Right click on the sample xtext code and Run As -> Generate Xtext Artifacts
4. Right click on the project and Run As -> Eclipse Application
5. In the new Eclipse, create a new project and a new file in the src directory with the right extension.

The only warning of any kind is this:

The file "plugin.xml" does not exist

Upon launching the second instance of Eclipse, creating a new project, and creating a test file foo.mydsl, all I get is a massively heavyweight plain-text editor. There is no outline and no highlighting. There are no warnings, no errors, nothing that I can find. I have to conclude that xtext simply doesn't work with Eclipse.

The 15-minute demo here fails in exactly the same way:

During installation of xtext, I get "Cannot perform operation." The only option offerred that will install the xtext IDE is "Install different version than originally requested". See attached screenshot. I tried both:

Same conflict seems to occur with both.

Suggestions? This does not make me very optimistic about using xtext with Eclipse.
Re: Xtext Hello World does not work with Eclipse 2018-12 [message #1803917 is a reply to message #1803788] Wed, 13 March 2019 16:18 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13641
Registered: July 2009
Senior Member
the errror message you show should be unrelated.
can you go in the runtime eclipse into "host osgi console" in the console view
and type "ss mydsl" to see the state of the plugins
and "start <id>" to start them if not active and or to see error messages

Need professional support for Xtext, Xpand, EMF?
Go to:
Twitter : @chrdietrich
Blog :
Previous Topic:My DSL is acessing variables from another file, without import
Next Topic:Xtext Language Server not working, how to investigate?
Goto Forum:

Current Time: Tue Oct 27 07:03:31 GMT 2020

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

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

Back to the top