Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » apparent wizard failure(attempt to create an xtext example fails)
apparent wizard failure [message #1726694] Tue, 15 March 2016 20:10 Go to next message
Bill Fenlason is currently offline Bill FenlasonFriend
Messages: 23
Registered: July 2009
Junior Member
Eclipse Version: Mars.2 Release (4.5.2) Build id: 20160218-0600

Via the Marketplace, Installed XText Version: 2.9.2.v201603040440 Build id: R201603040440

clicked New-> Project-> Xtext-> Examples-> XText Simple Arithmetics Example-> Next

It listed 5 project to create:
org.eclipse.xtext.example.arithmetics
org.eclipse.xtext.example.arithmetics.ide
org.eclipse.xtext.example.arithmetics.tests
org.eclipse.xtext.example.arithmetics.ui
org.eclipse.xtext.example.arithmetics.ui.tests
clicked Finish

Created the 5 projects.
There were 2,334 errors, 9 warnings.

What was my mistake?
Re: apparent wizard failure [message #1726695 is a reply to message #1726694] Tue, 15 March 2016 20:16 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
Hi,

this is hard to say. can you give some error messages you get? are there errors on the manifest.mf files?


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: apparent wizard failure [message #1726697 is a reply to message #1726695] Tue, 15 March 2016 20:29 Go to previous messageGo to next message
Bill Fenlason is currently offline Bill FenlasonFriend
Messages: 23
Registered: July 2009
Junior Member
there are no errors in the manifest.
many of the errors seem to be "cannot be resolved"
I will see if I can find an example with fewer errors.
Re: apparent wizard failure [message #1726698 is a reply to message #1726697] Tue, 15 March 2016 20:32 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
what happens if you create a new project by the wizard
right click the xtext editor , run as -> generate xtext artifacts

(if it asks to download antlr answer with yes)


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Tue, 15 March 2016 20:33]

Report message to a moderator

Re: apparent wizard failure [message #1726700 is a reply to message #1726697] Tue, 15 March 2016 20:34 Go to previous messageGo to next message
Bill Fenlason is currently offline Bill FenlasonFriend
Messages: 23
Registered: July 2009
Junior Member
Just generating a generic XText project creates 27 errors.
Here are the 2 in MyDsl.xtext

Description Resource Path Location Type
Couldn't resolve reference to Grammar 'org.eclipse.xtext.common.Terminals'. MyDsl.xtext /org.xtext.example.mydsl/src/org/xtext/example/mydsl line: 1 /org.xtext.example.mydsl/src/org/xtext/example/mydsl/MyDsl.xtext Grammar Problem

ID cannot be resolved to a rule MyDsl.xtext /org.xtext.example.mydsl/src/org/xtext/example/mydsl line: 9 /org.xtext.example.mydsl/src/org/xtext/example/mydsl/MyDsl.xtext Grammar Problem

I did locate an include error in the other test case, so there may be multiple problems
Re: apparent wizard failure [message #1726701 is a reply to message #1726700] Tue, 15 March 2016 20:41 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
hmmm

looks like the installation did not work as well.
can you retry using http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: apparent wizard failure [message #1726703 is a reply to message #1726700] Tue, 15 March 2016 20:55 Go to previous messageGo to next message
Bill Fenlason is currently offline Bill FenlasonFriend
Messages: 23
Registered: July 2009
Junior Member
I created the basic XText project with the 27 errors. Where is the xtext editor? Nothing has been generated or built.



Re: apparent wizard failure [message #1726705 is a reply to message #1726703] Tue, 15 March 2016 21:03 Go to previous messageGo to next message
Bill Fenlason is currently offline Bill FenlasonFriend
Messages: 23
Registered: July 2009
Junior Member
which of the 5 items should I install?
EMF Core and MDT XSD
EMF Xcore
MWE
Xtend
Xtext
Re: apparent wizard failure [message #1726706 is a reply to message #1726705] Tue, 15 March 2016 21:07 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
Simply select xtext and xtend

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: apparent wizard failure [message #1726708 is a reply to message #1726705] Tue, 15 March 2016 21:15 Go to previous messageGo to next message
Bill Fenlason is currently offline Bill FenlasonFriend
Messages: 23
Registered: July 2009
Junior Member
I now see that the XText install instructions suggest using: http://download.itemis.de/updates/

Is that in error, or is it the same thing?

I assume that the problem is that EMF, MWE, XTend and XText all need to be installed, and that installation via the Eclipse Marketplace does not insure that.
Re: apparent wizard failure [message #1726709 is a reply to message #1726708] Tue, 15 March 2016 21:16 Go to previous messageGo to next message
Bill Fenlason is currently offline Bill FenlasonFriend
Messages: 23
Registered: July 2009
Junior Member
ok, I'll select xtext and xtend
Re: apparent wizard failure [message #1726711 is a reply to message #1726709] Tue, 15 March 2016 21:21 Go to previous messageGo to next message
Bill Fenlason is currently offline Bill FenlasonFriend
Messages: 23
Registered: July 2009
Junior Member
same thing - still can't find 'org.eclipse.xtext.common.Terminals'
Re: apparent wizard failure [message #1726713 is a reply to message #1726711] Tue, 15 March 2016 21:24 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
Can you share a screenshot of the tree in the project explorer?

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: apparent wizard failure [message #1726719 is a reply to message #1726713] Tue, 15 March 2016 21:34 Go to previous messageGo to next message
Bill Fenlason is currently offline Bill FenlasonFriend
Messages: 23
Registered: July 2009
Junior Member
index.php/fa/25320/0/
  • Attachment: Capture.PNG
    (Size: 44.96KB, Downloaded 189 times)
Re: apparent wizard failure [message #1726720 is a reply to message #1726713] Tue, 15 March 2016 21:34 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
Ps are you sure you have plugin development tools (pde) installed (you can find it on eclipse mars update site)

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: apparent wizard failure [message #1726721 is a reply to message #1726720] Tue, 15 March 2016 21:35 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
Can you open the point plugin dependencies in the tree

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: apparent wizard failure [message #1726725 is a reply to message #1726721] Tue, 15 March 2016 21:45 Go to previous messageGo to next message
Bill Fenlason is currently offline Bill FenlasonFriend
Messages: 23
Registered: July 2009
Junior Member
index.php/fa/25322/0/index.php/fa/25321/0/
  • Attachment: Capture2.PNG
    (Size: 89.79KB, Downloaded 182 times)
  • Attachment: Capture2.PNG
    (Size: 89.79KB, Downloaded 175 times)
Re: apparent wizard failure [message #1726726 is a reply to message #1726725] Tue, 15 March 2016 21:45 Go to previous messageGo to next message
Bill Fenlason is currently offline Bill FenlasonFriend
Messages: 23
Registered: July 2009
Junior Member
sorry for dup
Re: apparent wizard failure [message #1726727 is a reply to message #1726725] Tue, 15 March 2016 21:46 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
This looks perfectly fine. Are you sure you have build automatically on and called project clean build once

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: apparent wizard failure [message #1726728 is a reply to message #1726727] Tue, 15 March 2016 21:48 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
What happens if you double click the xtextfile and the call run as generate xtext arifacts. How does the log look like

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: apparent wizard failure [message #1726729 is a reply to message #1726727] Tue, 15 March 2016 21:49 Go to previous messageGo to next message
Bill Fenlason is currently offline Bill FenlasonFriend
Messages: 23
Registered: July 2009
Junior Member
i cleaned the project and the errors were fixed.
Hard to understand why that was necessary
Thanks!
Re: apparent wizard failure [message #1726730 is a reply to message #1726729] Tue, 15 March 2016 21:50 Go to previous messageGo to next message
Bill Fenlason is currently offline Bill FenlasonFriend
Messages: 23
Registered: July 2009
Junior Member
now only twqo warnings: Description Resource Path Location Type
The file "plugin.xml" does not exist in the workspace build.properties /org.xtext.example.mydsl line 6 Plug-in Problem
Re: apparent wizard failure [message #1726731 is a reply to message #1726730] Tue, 15 March 2016 21:54 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
Oknow the sample wizard should work as well

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: apparent wizard failure [message #1726740 is a reply to message #1726731] Tue, 15 March 2016 23:09 Go to previous messageGo to next message
Bill Fenlason is currently offline Bill FenlasonFriend
Messages: 23
Registered: July 2009
Junior Member
thanks again.
by the way, I'm interested in the source for the generated editor - i couldn't seem to find it.
I found the activator and the editor class but it could not be browsed. Apparently it is a class and not Java.
Are there parts of XText that are proprietary or is all the source available?
Re: apparent wizard failure [message #1726741 is a reply to message #1726740] Wed, 16 March 2016 04:45 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
Depending on the feature of xtext you installed there should be installed
source bundles as well and thus you should see sources for the xtext editor
class


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Testing XText-based interpreter calling out to Henshin
Next Topic:is it possible to add more than one grammer in same plugin?
Goto Forum:
  


Current Time: Tue Sep 21 18:21:25 GMT 2021

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

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

Back to the top