Skip to main content



      Home
Home » Modeling » TMF (Xtext) » apparent wizard failure(attempt to create an xtext example fails)
apparent wizard failure [message #1726694] Tue, 15 March 2016 16:10 Go to next message
Eclipse UserFriend
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 16:16 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

this is hard to say. can you give some error messages you get? are there errors on the manifest.mf files?
Re: apparent wizard failure [message #1726697 is a reply to message #1726695] Tue, 15 March 2016 16:29 Go to previous messageGo to next message
Eclipse UserFriend
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 16:32 Go to previous messageGo to next message
Eclipse UserFriend
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)

[Updated on: Tue, 15 March 2016 16:33] by Moderator

Re: apparent wizard failure [message #1726700 is a reply to message #1726697] Tue, 15 March 2016 16:34 Go to previous messageGo to next message
Eclipse UserFriend
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 16:41 Go to previous messageGo to next message
Eclipse UserFriend
hmmm

looks like the installation did not work as well.
can you retry using http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/
Re: apparent wizard failure [message #1726703 is a reply to message #1726700] Tue, 15 March 2016 16:55 Go to previous messageGo to next message
Eclipse UserFriend
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 17:03 Go to previous messageGo to next message
Eclipse UserFriend
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 17:07 Go to previous messageGo to next message
Eclipse UserFriend
Simply select xtext and xtend
Re: apparent wizard failure [message #1726708 is a reply to message #1726705] Tue, 15 March 2016 17:15 Go to previous messageGo to next message
Eclipse UserFriend
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 17:16 Go to previous messageGo to next message
Eclipse UserFriend
ok, I'll select xtext and xtend
Re: apparent wizard failure [message #1726711 is a reply to message #1726709] Tue, 15 March 2016 17:21 Go to previous messageGo to next message
Eclipse UserFriend
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 17:24 Go to previous messageGo to next message
Eclipse UserFriend
Can you share a screenshot of the tree in the project explorer?
Re: apparent wizard failure [message #1726719 is a reply to message #1726713] Tue, 15 March 2016 17:34 Go to previous messageGo to next message
Eclipse UserFriend
index.php/fa/25320/0/
  • Attachment: Capture.PNG
    (Size: 44.96KB, Downloaded 289 times)
Re: apparent wizard failure [message #1726720 is a reply to message #1726713] Tue, 15 March 2016 17:34 Go to previous messageGo to next message
Eclipse UserFriend
Ps are you sure you have plugin development tools (pde) installed (you can find it on eclipse mars update site)
Re: apparent wizard failure [message #1726721 is a reply to message #1726720] Tue, 15 March 2016 17:35 Go to previous messageGo to next message
Eclipse UserFriend
Can you open the point plugin dependencies in the tree
Re: apparent wizard failure [message #1726725 is a reply to message #1726721] Tue, 15 March 2016 17:45 Go to previous messageGo to next message
Eclipse UserFriend
index.php/fa/25322/0/index.php/fa/25321/0/
  • Attachment: Capture2.PNG
    (Size: 89.79KB, Downloaded 285 times)
  • Attachment: Capture2.PNG
    (Size: 89.79KB, Downloaded 274 times)
Re: apparent wizard failure [message #1726726 is a reply to message #1726725] Tue, 15 March 2016 17:45 Go to previous messageGo to next message
Eclipse UserFriend
sorry for dup
Re: apparent wizard failure [message #1726727 is a reply to message #1726725] Tue, 15 March 2016 17:46 Go to previous messageGo to next message
Eclipse UserFriend
This looks perfectly fine. Are you sure you have build automatically on and called project clean build once
Re: apparent wizard failure [message #1726728 is a reply to message #1726727] Tue, 15 March 2016 17:48 Go to previous messageGo to next message
Eclipse UserFriend
What happens if you double click the xtextfile and the call run as generate xtext arifacts. How does the log look like
Re: apparent wizard failure [message #1726729 is a reply to message #1726727] Tue, 15 March 2016 17:49 Go to previous messageGo to next message
Eclipse UserFriend
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 17:50 Go to previous messageGo to next message
Eclipse UserFriend
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 17:54 Go to previous messageGo to next message
Eclipse UserFriend
Oknow the sample wizard should work as well
Re: apparent wizard failure [message #1726740 is a reply to message #1726731] Tue, 15 March 2016 19:09 Go to previous messageGo to next message
Eclipse UserFriend
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 00:45 Go to previous message
Eclipse UserFriend
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
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: Mon Jul 14 00:38:19 EDT 2025

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

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

Back to the top