[SOLVED] How to deploy an Xtext plugin on a clean Eclipse ? [message #1373845] |
Thu, 22 May 2014 10:52 |
Etienne de Sarrieu Messages: 4 Registered: May 2014 |
Junior Member |
|
|
Hi,
Sorry for this probably easy question for some of you, but I spent much time on internet and with various solutions without getting a proper answer to my problem:
I need to deploy an Xtext plugin on an existing Eclipse CDT: so I need to deploy first Xtext runtime, am I wrong ?
-> I tried to do it, but when I start this Eclipse (Xtext Runtime installed) with my Xtext plugins (composed of org.xtext.example.mydsl.tests_1.0.0.201404271003.jar, org.xtext.example.mydsl.ui_1.0.0.201404271003.jar and org.xtext.example.mydsl_1.0.0.201404271003.jar) I get the following message :
!ENTRY org.eclipse.ui 2 0 2014-05-22 12:15:23.440
!MESSAGE Warnings while parsing the key bindings from the 'org.eclipse.ui.commands' extension point
!SUBENTRY 1 org.eclipse.ui 2 0 2014-05-22 12:15:23.440
!MESSAGE Cannot bind to an undefined command: plug-in='org.eclipse.xtext.ui', id='org.eclipse.xtext.ui.editor.outline.QuickOutline'
And I cannot find any explanation on what this means. And of course, my plugin does not work (files of proper extension are not displayed as it is when I test in "Run As" configuration from my Xtext dev environment, with Xtext SDK).
Thank you by advance for your help
(To be more precise, my final objective is to produce a full package that can be deployed in one shot on an existing Eclipse CDT - which does not contains any Xtext component - so if you have an easy way to achieve that I am interested !)
[Updated on: Fri, 23 May 2014 08:49] Report message to a moderator
|
|
|
|
Re: How to deploy an Xtext plugin on a clean Eclipse ? [message #1374811 is a reply to message #1374391] |
Thu, 22 May 2014 20:20 |
Etienne de Sarrieu Messages: 4 Registered: May 2014 |
Junior Member |
|
|
Thank you very much Stefan.
I tried it, I succeeded in exporting my feature (great !), so first step is ok, unfortunately I fail at deploying it in Eclipse (read some tutorial but I do not find the problem...): I do not want to use an update site, so I exported it by Selecting the "Directory" option in "Destination" tab, and in the "Options" tab if I unchek "Package as individual JAR archives", then I get two folders (plufins and features) that I copy in my target Eclipse "dropins" folder: anything happens, no error log appended in .log file, no mention of the plugin in installed plugins list, and expected behavior (editor for a given file extension) doe not appear.
I also tried to check "Package as individual JAR archives" and to copy the files and folders in "dropins", but I have the following error :
Quote:
!ENTRY org.eclipse.equinox.p2.core 4 0 2014-05-22 21:34:17.514
!MESSAGE Provisioning exception
!STACK 1
org.eclipse.equinox.p2.core.ProvisionException: No repository found at jar:file:/D:/MyCLEANTest/eclipse/dropins/content.jar!/.
that makes me think that I am doing something not expected by Eclipse.
If you have any idea of how to debug or what I am doing wrong do not hesitate to tell !
I will continue to work on this tomorrow (I am french - sorry for my english - and here it is time to go to sleep...).
Regards,
Etienne
|
|
|
Re: How to deploy an Xtext plugin on a clean Eclipse ? [message #1374849 is a reply to message #1374811] |
Thu, 22 May 2014 20:45 |
|
Hi,
i am not sure what your problem is.
the xtext wizard creates a project yourdsl.sdk
this project can be used to create a p2 repository (update site) containing your plugins.
therefore
(1) create a new category definition in the sdk project. give it a name and add the org.xtext.example.mydsl.sdk featur
(2) rightclick on the feature.xml
(3) export -> deployable features
(4) choose a location (folder or zip)
(5) under options choose the category.xml file created before
(6) hit finish
if you add this update site + one containing xtext (you may download the all in one repo zip http://www.eclipse.org/modeling/tmf/downloads/?project=xtext), then p2 should do all dependency magic for you.
alternatively you could use build tools like buckminister or maven tycho to create the update site or even a complete product.
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
[Updated on: Thu, 22 May 2014 20:47] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04138 seconds