Closed dalesit closed 6 years ago
Hello @dalesit ,
I have no experience with org.eclipse.equinox.p2.director , but I have seen something in your command which seems to be typos:
/opt/eclipse/eclipse -application org.eclipse.equinox.p2.director -noSplash -repository 'https://dl.bintray.com/de-jcup/basheditor' -installIU 'de.jecup.basheditor.feature.group'
There is following typo: "de.jecup" instead of "de.jcup" )
Also the feature ID seems to be not correct: 'de.jcup.basheditor.feature.group' ist still wrong, because ID does not end with ".group"! "de.jcup.basheditor" is the correct feature ID I am using for bash editor
/opt/eclipse/eclipse -application org.eclipse.equinox.p2.director -noSplash -repository 'https://dl.bintray.com/de-jcup/basheditor' -installIU 'de.jcup.basheditor.feature'
I think that if you can install something by eclipse marketplace client the p2.director should be always able to install it too - the marketplace client must use p2 in same way as director and there must be no difference at all - otherwise there would be different install implementations and behaviours and this would be really done wrong by eclipse developers.
By the way current version is 1.4.1 and in the next days Bash editor version 1.5.0 will be deployed having bug fixes and also some new features like keyword tooltips - so please do not use version 1.0 (you mentioned "features/de.jcup.basheditor_1.0.0.jar" in your text before) in your vagrant installation.
Thank you so much for spotting the typo - as I said, this was the first of many plugins that hadn't worked, and so I was looking for differences between them, and the different location of site.xml seemed to be a possible candidate. After looking at the text for so long, I completely missed the typo in the IU - I had originally cut and pasted into the puppet manifest and must have spuriously added the e. From there I just took the output of the puppet apply to generate the actual p2-director command, and never noticed the IU typo #facepalm.
The mention of "features/de.jcup.basheditor_1.0.0.jar" was just as an example, and was the first one in site.xml which I cut and pasted - I'm installing the latest version available.
The .feature.group doesn't matter - it works with -installIU 'de.jcup.basheditor' and ignores everything after that.
So once again, thanks for your assistance - l need to replace my cardboard programmer...
BTW, would be helpful to add the IU and update site information to the wiki (and possibly the p2-director install command) should anyone be trying to do this again
/opt/eclipse/eclipse -application org.eclipse.equinox.p2.director -noSplash -repository 'https://dl.bintray.com/de-jcup/basheditor' -installIU 'de.jcup.basheditor'
I have been trying to automate installation of eclipse plugins for a vagrant build of our developer VM environment. I have been doing this using p2-director, and for most plugins it is fine. However, for BashEditor it is failing, saying that the IU can't be found.
For yedit, for example, the site.xml is located at the top of the update site, http://dadacoalition.org/yedit/site.xml which is at the same level as the features directory. However, here, the site.xml is located at https://dl.bintray.com/de-jcup/basheditor/update-site/current/site.xml but the feature location is given as feature url="features/de.jcup.basheditor_1.0.0.jar" but is two directories higher up.
Using a manual Install New Software from within Eclipse and giving the update site URL, it works fine. However, automating it through p2-director fails.
The full command I am running is
/opt/eclipse/eclipse -application org.eclipse.equinox.p2.director -noSplash -repository 'https://dl.bintray.com/de-jcup/basheditor' -installIU 'de.jecup.basheditor.feature.group'
The p2 documentation suggests
however I have tried with a separated -metadataRepository and still no joy. Any suggestions?