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: https://www.eclipse.org/Xtext/download.html
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:

https://www.eclipse.org/Xtext/documentation/102_domainmodelwalkthrough.html

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:

http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/
and
http://download.eclipse.org/modeling/tmf/xtext/updates/composite/latest/

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: 14665
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


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
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: Thu Apr 25 05:14:55 GMT 2024

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

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

Back to the top