Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Creating update site for my xText DSL (There are dependency errors while installing my xText DSL plugin from update site)
Creating update site for my xText DSL [message #1749479] Wed, 07 December 2016 09:17 Go to next message
Nesredin Mahmud is currently offline Nesredin MahmudFriend
Messages: 7
Registered: July 2014
Junior Member
Hello,

I am creating an update site for my xText DSL, but there are dependecy problems related to the "org.eclipse.xtext.ide".

I created a feature for all the plugins of my DSL, and configured "org.eclipse.xtext.runtime", and "org.eclipse.xtext.ide", yet the installation is complaining with the following error:

Cannot complete the install because one or more required items could not be found.
  Software being installed: ReSA Plug-in feature 1.0.0.201612051741 (org.volvo.resa.feature.feature.group 1.0.0.201612051741)
  Missing requirement: org.volvo.resa.ide 1.0.0.201612051450 (org.volvo.resa.ide 1.0.0.201612051450) requires 'bundle org.eclipse.xtext.ide 0.0.0' but it could not be found
  Missing requirement: org.volvo.resa.ide 1.0.0.201612051723 (org.volvo.resa.ide 1.0.0.201612051723) requires 'bundle org.eclipse.xtext.ide 0.0.0' but it could not be found
  Missing requirement: org.volvo.resa.ide 1.0.0.201612051726 (org.volvo.resa.ide 1.0.0.201612051726) requires 'bundle org.eclipse.xtext.ide 0.0.0' but it could not be found
  Missing requirement: org.volvo.resa.ide 1.0.0.201612051728 (org.volvo.resa.ide 1.0.0.201612051728) requires 'bundle org.eclipse.xtext.ide 0.0.0' but it could not be found
  Missing requirement: org.volvo.resa.ide 1.0.0.201612051741 (org.volvo.resa.ide 1.0.0.201612051741) requires 'bundle org.eclipse.xtext.ide 0.0.0' but it could not be found
  Missing requirement: org.volvo.resa.ide 1.0.0.201612051743 (org.volvo.resa.ide 1.0.0.201612051743) requires 'bundle org.eclipse.xtext.ide 0.0.0' but it could not be found
  Missing requirement: org.volvo.resa.ide 1.0.0.201612051748 (org.volvo.resa.ide 1.0.0.201612051748) requires 'bundle org.eclipse.xtext.ide 0.0.0' but it could not be found
  Cannot satisfy dependency:
    From: ReSA Plug-in feature 1.0.0.201612051741 (org.volvo.resa.feature.feature.group 1.0.0.201612051741)
    To: org.volvo.resa.ui [1.0.0.201612051741]
  Cannot satisfy dependency:
    From: org.volvo.resa.ui 1.0.0.201612051741 (org.volvo.resa.ui 1.0.0.201612051741)
    To: bundle org.volvo.resa.ide 1.0.0


I am also not clear, what else to include on the dependency part of the feature other than "org.eclipse.xtext.runtime", and "org.eclipse.xtext.ide".

Thank you

Cheers,
/nas
Re: Creating update site for my xText DSL [message #1749481 is a reply to message #1749479] Wed, 07 December 2016 09:19 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 11497
Registered: July 2009
Senior Member
does your update site contain the xtext stuff? if yes in which version
if it does not: which other update sites did you configure in your eclipse

how does your feature.xml look like?


Need professional support for Xtext, Xpand, EMF?
Go to: http://xtext.itemis.com
Twitter : @chrdietrich
Blog : christiandietrich.wordpress.com
Re: Creating update site for my xText DSL [message #1749488 is a reply to message #1749481] Wed, 07 December 2016 10:14 Go to previous messageGo to next message
Nesredin Mahmud is currently offline Nesredin MahmudFriend
Messages: 7
Registered: July 2014
Junior Member
Hello Christian,

my update site contains one feature that contains my DSL plugins, and a dependencies.
You will find these in the content of the feature below. If you mean the version for the xtext.runtime, it is 2.9.1.v201512180746. I also have one update plugin that just contains one feature with the following content.

<?xml version="1.0" encoding="UTF-8"?>
<feature
      id="org.volvo.resa.feature"
      label="ReSA Plug-in feature"
      version="1.0.0.qualifier">

   <description url="http://www.example.com/description">
      [Enter Feature Description here.]
   </description>

   <copyright url="http://www.example.com/copyright">
      [Enter Copyright Description here.]
   </copyright>

   <license url="http://www.example.com/license">
      [Enter License Description here.]
   </license>

   <requires>
      <import feature="org.eclipse.xtext.runtime" version="0.0.0" match="greaterOrEqual"/>
      <import plugin="org.eclipse.xtext.ide" version="0.0.0" match="greaterOrEqual"/>
   </requires>

   <plugin
         id="org.volvo.resa"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

   <plugin
         id="org.volvo.resa.embeddededitor"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

   <plugin
         id="org.volvo.resa.ide"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

   <plugin
         id="org.volvo.resa.tests"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

   <plugin
         id="org.volvo.resa.ui"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

   <plugin
         id="org.volvo.resa.ui.tests"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

</feature>


Best,
/Nas
Re: Creating update site for my xText DSL [message #1749489 is a reply to message #1749479] Wed, 07 December 2016 10:25 Go to previous messageGo to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 333
Registered: July 2009
Senior Member
Either include the Xtext bundles/features instead of only requiring them. This causes that your update site will contain these bundles as well.
Or add the Xtext update site together with your own one to let the update mechanism search in both.
The third possibility would be creating a composite update site pointing to both update sites, but this is an advanced option which is a bit more complicated when it comes to automating it.
Re: Creating update site for my xText DSL [message #1749502 is a reply to message #1749488] Wed, 07 December 2016 12:58 Go to previous messageGo to next message
Christian Schneider is currently offline Christian SchneiderFriend
Messages: 10
Registered: June 2011
Junior Member
Hi Nas,

how do you create the udpatesite? Via a maven/tycho build?
Did you determine a dedicated target platform?

Regarding the inclusion of .ui plug-ins in your feature
your feature should better be dependent on the feature 'org.eclipse.xtext.ui' instead of the runtime feature + the ide plug-in.

regards,
Christian
Re: Creating update site for my xText DSL [message #1750641 is a reply to message #1749502] Fri, 23 December 2016 15:31 Go to previous message
Nesredin Mahmud is currently offline Nesredin MahmudFriend
Messages: 7
Registered: July 2014
Junior Member
Hello Christian,

First sorry for the late reply!

I actually tried creating update sites with manual using a separate plugin for the update site, and also with the maven/tycho - both didnt work.
I didnt define target platform.

But finally, i only created an update site that required my DSL plugins. When installing my DSL plugin first I installed xText Redistributable on the target eclipse tool. Then, it worked.
My goals was actually to create my DSL plugin that includes all the runtime dependency, hence no extra manual installation for the dependencies would be required, but I didnt succeed.

Best,
Nas
Previous Topic:How to set the Java compliance level of the generated genmodel
Next Topic:Serialize selected DSL model objects dynamically
Goto Forum:
  


Current Time: Tue Dec 12 18:21:52 GMT 2017

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

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