Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsDeploying Xtext parser along with the code generator
https://www.eclipse.org/forums/index.php/mv/msg/369434/901691/#msg_901691
I have developed a grammar with Xtext and also the code generator with Xtend.
What I would like to do next is to deploy these two so that end users can utilize them.
That is, they can specify models following my grammar and obtain the generated code too through the code generator.
However, I could not find any well-defined tutorial or guide explaining how one can
deploy grammar + generator for end users.
So, I would be glad if someone could help me on this.
]]>mcse mcse2012-08-14T07:49:40-00:00Re: Deploying Xtext parser along with the code generator
https://www.eclipse.org/forums/index.php/mv/msg/369434/901786/#msg_901786
is there really nobody who can provide me with some help ?
]]>mcse mcse2012-08-14T15:13:11-00:00Re: Deploying Xtext parser along with the code generator
https://www.eclipse.org/forums/index.php/mv/msg/369434/901828/#msg_901828
i am not quite sure what your question is targeting
- do you want to deploy plugins into any eclipse
- do you want to create an eclipse rcp?
both can be done with std eclipse means and is not at all xtext specific.
in xtext 2.3.0 you get even an feature.xml generated that you can use the "export deployable features" wizard.
~Christian]]>Christian Dietrich2012-08-14T17:28:43-00:00Re: Deploying Xtext parser along with the code generator
https://www.eclipse.org/forums/index.php/mv/msg/369434/901866/#msg_901866
First of all, thanks a lot for the reply.
I have built my grammar which is ambiguity-free, and subsequently developed the code generator through xtend.
Code generator serves its purpose correctly too. Indeed, I have tested the plug-in via the plugin.xml of the *.ui package.
Here, I have created model.dsl, following the grammar, which is once saved translated into another model through the code generator.
However, I wanted to let end users do the same -- i.e., creating a model following my grammar and then translating the model into another model
through the code generator.
To let this happen, I have attempted to export plug-ins -- via deployable plug-ins and fragments section. Then, I have tried to import these
three plug ins into another eclipse release that does not have xtext framework installed. However, this did not work. The parser imposing
the user to specify model correctly and the code generator did not work. After having imported the three plugins (dsl, dsl.tests, dsl.ui),
when I clicked the plugin.xml in the dsl.ui, the new instance of eclipse is run succesfully. However, it cannot function as editor for either grammar
and the code generator.
So, I am looking for a guide that helps me make this success.
THanks in advance.
]]>mcse mcse2012-08-14T20:21:26-00:00Re: Deploying Xtext parser along with the code generator
https://www.eclipse.org/forums/index.php/mv/msg/369434/901867/#msg_901867
you have to make sure dependencies (Xtext, Xtend ...) are available too.
as i said this is a std eclipse problem so some general reading will help.
~Christian]]>Christian Dietrich2012-08-14T20:28:18-00:00Re: Deploying Xtext parser along with the code generator
https://www.eclipse.org/forums/index.php/mv/msg/369434/901869/#msg_901869
I am aware of this and have chosen to "add required dependencies" from the Organise Manifests Wizard of the plugin.xml. However,
I keep getting the same error. ]]>mcse mcse2012-08-14T20:39:17-00:00Re: Deploying Xtext parser along with the code generator
https://www.eclipse.org/forums/index.php/mv/msg/369434/901875/#msg_901875
here is what i do
(1) export the stuff
(2) take an eclipse without xtext
(3) add the exported stuff as (local) update site within that eclipse
(4) select the dsl feature
(5) install the feature. it will install dependent stuff from juno update site automatically
~Christian]]>Christian Dietrich2012-08-14T21:00:32-00:00Re: Deploying Xtext parser along with the code generator
https://www.eclipse.org/forums/index.php/mv/msg/369434/901881/#msg_901881
I have simply use "Import" facility to import plug-ins. In fact, I genuinely do not have an idea as to how to create
an update site for the plug ins exported. Nor am I sure that it would solve my problem.
Do you use "help" tab and choose "install new software" ? Then is what you do just clicking "add" to add plug-ins from the archive ?
Thanks]]>mcse mcse2012-08-14T21:19:29-00:00Re: Deploying Xtext parser along with the code generator
https://www.eclipse.org/forums/index.php/mv/msg/369434/901882/#msg_901882
you export the plugin via
rightclick on the feature xml -> Export -> Deployable features
in the wizard you select a target dirb
make sure generate metadata rep is selected at the second tab
and hit finish
in the other eclipse goto
Help -> Install new Software -> Add -> Local (select export folder here)
select the feature (you may have to deselect categorize option if you did not create a category.xml and selected it during export)
hit finish
]]>Christian Dietrich2012-08-14T21:24:08-00:00Re: Deploying Xtext parser along with the code generator
https://www.eclipse.org/forums/index.php/mv/msg/369434/901938/#msg_901938
Thanks a lot for showing me how to export and then import what has been exported.
Once I followed what you suggested, there has appeared the following error during the import stage (i.e., through the install new software..):
An error occurred while collecting items to be installed
session context was:(profile=SDKProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Problems downloading artifact: osgi.bundle,org.eclipse.xtext.xtext.ui.examples,2.1.1.v201111141332.
File has invalid content:C:\Users\CITY-A~1\AppData\Local\Temp\signatureFile8654316798185231099.jar
Invalid content:.project
A file ".project" has been removed from the jar: C:\Users\CITY-A~1\AppData\Local\Temp\signatureFile8654316798185231099.jar
Invalid content:.settings/org.eclipse.pde.prefs
A file ".settings/org.eclipse.pde.prefs" has been removed from the jar: C:\Users\CITY-A~1\AppData\Local\Temp\signatureFile8654316798185231099.jar
Invalid content:.settings/org.eclipse.jdt.core.prefs
A file ".settings/org.eclipse.jdt.core.prefs" has been removed from the jar: C:\Users\CITY-A~1\AppData\Local\Temp\signatureFile8654316798185231099.jar
Invalid content:.settings/org.eclipse.jdt.ui.prefs
A file ".settings/org.eclipse.jdt.ui.prefs" has been removed from the jar: C:\Users\CITY-A~1\AppData\Local\Temp\signatureFile8654316798185231099.jar
Invalid content:.settings/org.eclipse.core.resources.prefs
A file ".settings/org.eclipse.core.resources.prefs" has been removed from the jar: C:\Users\CITY-A~1\AppData\Local\Temp\signatureFile8654316798185231099.jar
Invalid content:.classpath
A file ".classpath" has been removed from the jar: C:\Users\CITY-A~1\AppData\Local\Temp\signatureFile8654316798185231099.jar
Invalid content:build.properties
A file "build.properties" has been removed from the jar: C:\Users\CITY-A~1\AppData\Local\Temp\signatureFile8654316798185231099.jar
Invalid content:.settings/org.eclipse.jdt.launching.prefs
A file ".settings/org.eclipse.jdt.launching.prefs" has been removed from the jar: C:\Users\CITY-A~1\AppData\Local\Temp\signatureFile8654316798185231099.jar
Before exporting my plugins, I have also chosen from the *build* tab of the feature xml both the .project and build.properties.
So, did I do the same for the plugin xml files too that the feature manages. However, the error stays the same that occurs after I click *finish* for adding the plug-in. ]]>mcse mcse2012-08-15T08:25:13-00:00Re: Deploying Xtext parser along with the code generator
https://www.eclipse.org/forums/index.php/mv/msg/369434/901942/#msg_901942
--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de]]>Christian Dietrich2012-08-15T08:38:31-00:00Re: Deploying Xtext parser along with the code generator
https://www.eclipse.org/forums/index.php/mv/msg/369434/901946/#msg_901946
I am afraid I could not understand what I need to do.
Do you mean that I should create an update-site project managing the plug ins ? If so, I have already created one; but how is it possible to make it accessible via a url ? ]]>mcse mcse2012-08-15T09:00:43-00:00Re: Deploying Xtext parser along with the code generator
https://www.eclipse.org/forums/index.php/mv/msg/369434/901952/#msg_901952
can use it
--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de]]>Christian Dietrich2012-08-15T09:33:41-00:00Re: Deploying Xtext parser along with the code generator
https://www.eclipse.org/forums/index.php/mv/msg/369434/901955/#msg_901955
Then, I tried to add the feature through the "install new software" option in the help section of a different eclipse installation.
However, again got the same error. ]]>mcse mcse2012-08-15T09:54:35-00:00Re: Deploying Xtext parser along with the code generator
https://www.eclipse.org/forums/index.php/mv/msg/369434/901964/#msg_901964
in your eclipse? Is it active. Do you get an error message during
installation? Can you share a reproducable example? What eclipse do
you try to install the plugins to....
--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de]]>Christian Dietrich2012-08-15T10:41:45-00:00Re: Deploying Xtext parser along with the code generator
https://www.eclipse.org/forums/index.php/mv/msg/369434/901965/#msg_901965
I do not get any error message while exporting the feature project into a folder--export process is performed succesfully.
The export folder contains the following items: features folder, plugins folder,artifacts.jar and contents.jar .
Then, I use another eclipse installation which is again indigo being the version 3.7.0 . However, this one, unlike the former one, is free of any Xtext, and Xtend frameworks.
So, once I tried to install the plugin by choosing "install new software" from the "help", and then specifying the pat of the export folder , the installation has started without any problem. But, before it terminates, the above specified error occurred.
It might be the case the the feature.xml requires further customization, about which I genuinely do not have an idea.
]]>mcse mcse2012-08-15T10:55:44-00:00Re: Deploying Xtext parser along with the code generator
https://www.eclipse.org/forums/index.php/mv/msg/369434/901969/#msg_901969
See your eclipse with Xtext installed (don't know it without Google
:-))
--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de]]>Christian Dietrich2012-08-15T11:05:13-00:00Re: Deploying Xtext parser along with the code generator
https://www.eclipse.org/forums/index.php/mv/msg/369434/901979/#msg_901979
Yes, once I have tried to import inside the Eclipse installation that has Xtext framework installed,
it worked !!
Thanks a lot for spotting this.
However, this raises such a constraint that our plugins can only be used in Eclipse installations with
xtext framework installed. This would not sound nice to the end users. ]]>mcse mcse2012-08-15T11:48:05-00:00Re: Deploying Xtext parser along with the code generator
https://www.eclipse.org/forums/index.php/mv/msg/369434/901988/#msg_901988
This has no Xtext installed. Never the less it was automatically
installed when I installed the DSL plugin. (Eclipse update site
magic)
--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de]]>Christian Dietrich2012-08-15T12:10:32-00:00Re: Deploying Xtext parser along with the code generator
https://www.eclipse.org/forums/index.php/mv/msg/369434/901991/#msg_901991
Once I attempted to install the exported plugin via "install new software" feature of Juno, the following error code raised:
Cannot complete the install because of a conflicting dependency.
Software being installed: XCD 1.0.0.201208151223 (XCD.feature.group 1.0.0.201208151223)
Software currently installed: Eclipse SDK 4.2.0.I20120608-1400 (org.eclipse.sdk.ide 4.2.0.I20120608-1400)
Only one of the following can be installed at once:
Equinox Provisioning Legacy Update Site Support 1.0.400.v20120412-1615 (org.eclipse.equinox.p2.updatesite 1.0.400.v20120412-1615)
Equinox Provisioning Legacy Update Site Support 1.0.300.v20110510 (org.eclipse.equinox.p2.updatesite 1.0.300.v20110510)
Cannot satisfy dependency:
From: XCD 1.0.0.201208151223 (XCD.feature.group 1.0.0.201208151223)
To: org.eclipse.equinox.p2.updatesite [1.0.300.v20110510]
Cannot satisfy dependency:
From: Equinox p2 Provisioning for IDEs. 2.2.0.v20120524-0542-62DG9JXTlSiz-UbcP0w0KGe8CBOP (org.eclipse.equinox.p2.user.ui.feature.group 2.2.0.v20120524-0542-62DG9JXTlSiz-UbcP0w0KGe8CBOP)
To: org.eclipse.equinox.p2.updatesite [1.0.400.v20120412-1615]
Cannot satisfy dependency:
From: Eclipse SDK 4.2.0.I20120608-1400 (org.eclipse.sdk.ide 4.2.0.I20120608-1400)
To: org.eclipse.equinox.p2.user.ui.feature.group [2.2.0.v20120524-0542-62DG9JXTlSiz-UbcP0w0KGe8CBOP]
]]>mcse mcse2012-08-15T12:22:15-00:00Re: Deploying Xtext parser along with the code generator
https://www.eclipse.org/forums/index.php/mv/msg/369434/901992/#msg_901992
greeting example)
--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de]]>Christian Dietrich2012-08-15T12:23:37-00:00Re: Deploying Xtext parser along with the code generator
https://www.eclipse.org/forums/index.php/mv/msg/369434/902005/#msg_902005
That should also be fine too -- the eclipse installation that has xtext framework installed should not pose any issue for the plugin installation.
however, what if the end user would not like to use the plugins with Eclipse installations that do not have Xtext installed ?
The plug in should also be imported into such eclipse tools.
The less the end user are burdened, the more they like the plugins. ]]>mcse mcse2012-08-15T13:10:58-00:00Re: Deploying Xtext parser along with the code generator
https://www.eclipse.org/forums/index.php/mv/msg/369434/902011/#msg_902011
considering an eclipse product instead (everything pre installed)
--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de]]>Christian Dietrich2012-08-15T13:36:54-00:00Re: Deploying Xtext parser along with the code generator
https://www.eclipse.org/forums/index.php/mv/msg/369434/902035/#msg_902035
it did not work when I tried. If the eclipse installation does not have Xtext installed, the conflicting dependency error is raised, as I have given above.
So, would you please be more precise as to how it will be automatic for a classic release of eclipse ?
Also, I have one more question to you for which the help would be highly appreciated.
I also consider deploying the plug-ins as standalone tools so that end user can run them without the need of eclipse platform.
Can you suggest a way of doing this please ?
Thanks in advance. ]]>mcse mcse2012-08-15T15:17:05-00:00Re: Deploying Xtext parser along with the code generator
https://www.eclipse.org/forums/index.php/mv/msg/369434/902081/#msg_902081
to your first question:
is said: i took an eclipse without Xtext installed.
it works for me even with Eclipse Classic.
=> please recheck with a clean generated Xtext project without any customizations.
maybe your xtext is broken. maybe your eclipse is broken.
which os do you use? ....
i have NO idea! sorry
to your second question: create a java main class that does your stuff (e.g. by changing the workflow to)