Skip to main content



      Home
Home » Modeling » TMF (Xtext) » 15 min tutorial - falling at first hurdle
15 min tutorial - falling at first hurdle [message #1832919] Tue, 29 September 2020 06:27 Go to next message
Eclipse UserFriend
I'm attempting to follow the 15 min tutorial for Xtext but the Eclipse IDE integration does not appear to do anything.

I'm following this tutorial precisely as precisely as I'm able (only deviation noted below).

I create the project, change the xtext grammar as directed, and generate xtext artifacts.

So far all good and the console shows:
Quote:

0 [main] INFO text.xtext.generator.XtextGenerator - Initializing Xtext generator
. <snip/>
.
4774 [main] INFO text.xtext.generator.XtextGenerator - Generating common infrastructure
4805 [main] INFO .emf.mwe2.runtime.workflow.Workflow - Done.


Then, as directed, from the "package explorer", I "run as"->"Eclipse Application", opening a new Eclipse Window, from which I create a new project (of type "General" rather than Java since I dont see a way to create a Java Project as a tutorial suggests, but the tutorial indicates that any type of project will do) and I create a "test.dmodel" file.

I now start typing content as per the grammar and the tutorial indicates that I should see "code completion, syntax highlighting, syntactic validation" but I see none of that, nor anything to indicate it recognises this file type or the grammar at all. Also, the outline view says that there is "no active editor that provides an outline".

Any idea what I'm doing wrong? Am I mistaken in what to expect?

(I'm using Eclipse Version: 2020-09 (4.17), Build id: I20200902-1800 , on a Mac.)

Many thanks in advance,
Mike
Re: 15 min tutorial - falling at first hurdle [message #1832922 is a reply to message #1832919] Tue, 29 September 2020 08:02 Go to previous message
Eclipse UserFriend
which java version do you use to run the runtime eclipse?

[Updated on: Tue, 29 September 2020 08:02] by Moderator

Previous Topic:Can I make Xtext throw, when a containment reference is reassigned?
Next Topic:Xtext Or jetbrains MPS Which one should i use?
Goto Forum:
  


Current Time: Fri Jul 11 20:38:28 EDT 2025

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

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

Back to the top