"Updates are not permitted" in Eclipse -bug or feature? - eclipse

This is the situation: I am the admin of a shared installation of Eclipse, and I want regular users (who do not have write-permission to the installation directory) to be able to update existing plugins. If they try this now they get an error saying something like:
"Your original request has been modified.
[Plugin name] will be ignored because it is already installed, and updates are not permitted.
..."
It works perfectly well for users to install new plugins, just not update existing ones.
Steps to reproduce:
Install Eclipse (I've tried, among others, Eclipse Classic 3.6.2 and
3.7, in Linux SUSE Enterprise 10).
As an admin with write-permission to the installation directory, install a plugin, e.g. EGit 1.0 from
http://download.eclipse.org/egit/updates-1.0
As a user (without
write-permission), try to install a newer version of the plugin (e.g.
EGit 1.3 from http://download.eclipse.org/egit/updates-1.3).
Perhaps related: If a regular user opens "About Eclipse SDK --> Installation Details --> Installed Software", the "Update" and "Uninstall" buttons are greyed out for every item on the list, though they are not for the admin.
So my questions are: Is this on purpose? and: Can I do something to allow users to update plugins?

I just have the same error. I removed the plugin of the update configuration file (but it's not the best solution)
%eclipse_home%\configuration\org.eclipse.update\platform.xml
This error is easily reproducible, install a plugin directly into the main configuration directory, and do a manual plugin install, like :
%eclipse_home%\eclipse.exe -configuration %eclipse_home%\configuration
Install > New software ...
So, the update will not working if you do that.
To correctly install a plugin, you just have to drop it into the "dropins" dir, like :
%eclipse_home%\configuration\dropins\yourplugindir
Then, the user could use it, or do an update
(init configuration) %eclipse_home%\eclipse.exe -initialize
(refresh workspace) %eclipse_home%\eclipse.exe -clean
%eclipse_home%\eclipse.exe
Install > New software ...
The Eclipse runtime options
Best regards,

Related

Unable to install pydev

I am trying to install pydev through update site and eclipse marketplace but that's impossible.
When trying to install I receive the following message:
Unable to read repository at https://dl.bintray.com/fabioz/pydev/latest/content.xml.
Looks like this file does not exist anymore on the repository.
Did somebody found a solution about that ?
Regards
I've run into the same issue. I found out that the link at the PyDev site http://www.pydev.org/updates is redirecting to https://dl.bintray.com/fabioz/pydev/6.4.1. Using this link doesn't work for me, in Eclipse 4.7.3a.
However, changing this link to http://dl.bintray.com/fabioz/pydev/6.4.1 solves my problems. Apparently, there is an issue with the SSL redirection at the distribution site, or the https downloads in Eclipse.
The Error Message
I am note sure why you are getting an error message about content.xml, the real file that Eclipse should be reading is content.jar which is there.
Try one of the solutions below and please post more details if you can.
Online Install
The URL for installation of the feature is http://pydev.org/updates. You can use that URL to Install New Software... from the Help menu if the Eclipse Marketplace is not doing what you want.
Offline Install
If you meet the requirements (below) and continue to have problems with the update site, you can download to install offline. Get it from SourceForge (or follow the link from PyDev's website to SourceForge)
LiClipse
Alternatively, simply get LiClipse instead. It is Eclipse and PyDev and a bunch of other useful stuff already packaged together. It is provided by the author of PyDev, so should give you the best experience.
Minimum Eclipse and JVM Requirement
Double-check you meet the minimum requirements: PyDev requires Java 1.7 or greater and Eclipse 3.8/4.3 or greater:
Requirements
Java 7:
[...]
Eclipse (3.8/4.3 onwards)
At start i was also facing same error that : The solution is not provide while installing PyDev - Python IDE for Eclipse 6.3.2
and when I am When trying to install I receive the following message: Unable to read repository at https://dl.bintray.com/fabioz/pydev/latest/content.xml. ?
Then i came up with the final solution :
follow the steps :
Online Install
The URL for installation of the feature is http://pydev.org/updates. You can use that URL to Install New Software... from the Help menu if the Eclipse Marketplace is not doing what you want.
and uncheck all the options mentioned below on Install New Software Window like:
Uncheck :
1.Show only the latest versions of available software
2.Group Items by category
3.Show only software applicable to target environment
4.Contact all update sites during install to find required software
Offline Install
If you meet the requirements (below) and continue to have problems with the update site, you can download to install offline. Get it from SourceForge (or follow the link from PyDev's website to SourceForge).
Download the latest zip from sourceforge
Unzip it in any temp location
In Eclipse: "Help->install new software"
"Add" a new location to "Work with" "Local" button allows you to select the
unzipped folder
Give the location a name Back on the "install new
software" dialog, select pydev, etc. and "finish" (Delete the zip and
unzipped folder)
and uncheck all the options mentioned below on Install New Software Window like:
Uncheck :
1.Show only the latest versions of available software
2.Group Items by category
3.Show only software applicable to target environment
4.Contact all update sites during install to find required software
To be a little more clear about an offline installation in eclipse neon:
Download the latest zip from sourceforge
Unzip it in any temp location
In Eclipse: "Help->install new software"
"Add" a new location to "Work with"
"Local" button allows you to select the unzipped folder
Give the location a name
Back on the "install new software" dialog, select pydev, etc. and "finish"
(Delete the zip and unzipped folder)
The Error Message
I am note sure why you are getting an error message about content.xml, the real file that Eclipse should be reading is content.jar which is there.
Try one of the solutions below and please post more details if you can.
Online Install
The URL for installation of the feature is http://pydev.org/updates. You can use that URL to Install New Software... from the Help menu if the Eclipse Marketplace is not doing what you want.
Offline Install
If you meet the requirements (below) and continue to have problems with the update site, you can download to install offline. Get it from SourceForge (or follow the link from PyDev's website to SourceForge)
LiClipse
Alternatively, simply get LiClipse instead. It is Eclipse and PyDev and a bunch of other useful stuff already packaged together. It is provided by the author of PyDev, so should give you the best experience.
Minimum Eclipse and JVM Requirement
Double-check you meet the minimum requirements: PyDev requires Java 1.7 or greater and Eclipse 3.8/4.3 or greater:

EclipseFP on Indigo, issues with Maven?

I'm trying to install EclipseFP, using the usual Eclipse "Install new software" approach. However, at the "Installation Details" window, it says "This operation cannot be completed", giving me the following details:
Cannot complete the install because one or more required items could not be found.
Software currently installed: Shared profile 1.0.0.1316138547364
(SharedProfile_epp.package.java 1.0.0.1316138547364)
Missing requirement: Shared profile 1.0.0.1316138547364
(SharedProfile_epp.package.java 1.0.0.1316138547364)
requires 'org.maven.ide.eclipse [1.0.100.20110804-1717]'
but it could not be found
I just barely downloaded a fresh Eclipse:
Eclipse IDE for Java Developers
Version: Indigo Service Release 1
Build id: 20110916-0149
Does EclipseFP actually work on Indigo? Do I need to download an older Eclipse? Or perhaps there are additional steps I need to take to install Maven? (I don't want to download/install Maven if I don't have to.)
Since Kane neglected to turn his comment into an answer, I may as well state it plainly here:
This issue arises when you put the Eclipse folder in a location where Windows will have issues with access control (e.g. the Program Files folder). By moving the folder to my personal user's folder, I was able to use Eclipse normally without this issue.

Installing ADT on Eclipse Indigo

On Eclipse Indigo 64-bit, I tried to install ADT (Android Development Tools) plugin ver 15.0. But I get this error :
Cannot complete the install because one or more required items could
not be found. Software currently installed: Shared profile
1.0.0.1316138720972 (SharedProfile_epp.package.java 1.0.0.1316138720972) Missing requirement: Shared profile 1.0.0.1316138720972 (SharedProfile_epp.package.java 1.0.0.1316138720972) requires 'org.maven.ide.eclipse [1.0.100.20110804-1717]' but it could not be found
Do I need to install an eclipse dependency ?
I installed eclipse into /opt as root. I had this exact issue.
Seems that this has something to do with permissions (Yeah, great error message, I know).
I simply installed the plugins while running eclipse as root:
user#computer ~$ sudo eclipse &
Problem solved!
EDIT:
Instead of this, when you install it, you can change the ownership of the eclipse files so that you don't have to run as super user every time you want to install an addon.
user#computer /opt $ sudo chown -R user eclipse/
It's an Eclipse bug, see:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=350645
You shouldn't need to be administrator to install additional plugins...
Alright... this solved my problem:
Open Eclipse
Go to Help > Install New Software > click on Available Software Sites.
Make sure that "http://download.eclipse.org/releases/indigo" is checked.
Then.. enable the "contact all update sites.." option on the Install new software page.
You should be all set!
Try to enable the "contact all update sites.." option on the Install new software page.
That said, ADT should not have a dependency on epp packages, unless you have some other software installed along with Eclipse. Please make sure you're using one of the following Eclipse versions:
Eclipse IDE for Java Developers
Eclipse Classic (versions 3.5.1 and higher)
Eclipse IDE for Java EE Developers
Follow instructions on http://developer.android.com/sdk/eclipse-adt.html thereafter.
Run Eclipse with administrator priviledges... If on Windows right click, and select run as admin
Try to download the SDK archive and follow these instructions, it worked for me.
http://developer.android.com/sdk/installing/installing-adt.html#Troubleshooting
Download the ADT Plugin zip file (do not unpack it):
Start Eclipse, then select Help > Install New Software.
Click Add, in the top-right corner.
In the Add Repository dialog, click Archive.
Select the downloaded ADT-21.0.0.zip file and click OK.
Enter "ADT Plugin" for the name and click OK.
In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
In the next window, you'll see a list of the tools to be downloaded. Click Next.
Read and accept the license agreements, then click Finish.
If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
Lastly, when the installation completes, restart Eclipse.

Issue with updating eclipse

When I select "Help->Check for Updates" in eclipse, I get the following error message at the bottom of the window. From this message "Only one of the following can be installed at once: " it appears I have multiple copies of the same component installed. Under "About Eclipse SDK=>Installation Details" I found at least two instances of Equinox P2 Provisioning: under "Eclipse SDK" and "PHP Development Tools".
Any suggestions on how to get this resolved would be much appreciated.
I'm running eclipse helios 3.6.1 on CentOS 5.2.
Cannot complete the install because of a conflicting dependency.
Software being installed: Eclipse SDK 3.6.2.M20110210-1200 (org.eclipse.sdk.ide 3.6.2.M20110210-1200)
Software currently installed: Shared profile 1.0.0.1288623084982 (SharedProfile_SDKProfile 1.0.0.1288623084982)
Only one of the following can be installed at once:
Equinox p2 Provisioning 2.0.1.r361_v20100903-897HFZFFZRuSD2LMtVxyz0Vr (org.eclipse.equinox.p2.user.ui.feature.jar 2.0.1.r361_v20100903-897HFZFFZRuSD2LMtVxyz0Vr)
Equinox p2 Provisioning 2.0.0.v20100503-897HFZ-FdHjO2NQo0sD_Nt (org.eclipse.equinox.p2.user.ui.feature.jar 2.0.0.v20100503-897HFZ-FdHjO2NQo0sD_Nt)
Equinox p2 Provisioning 2.0.1.r361_v20100903-897HFa-FX0z-z-ntoaavz0JPX628 (org.eclipse.equinox.p2.user.ui.feature.jar 2.0.1.r361_v20100903-897HFa-FX0z-z-ntoaavz0JPX628)
Cannot satisfy dependency:
From: Shared profile 1.0.0.1288623084982 (SharedProfile_SDKProfile 1.0.0.1288623084982)
To: org.eclipse.equinox.p2.user.ui.feature.jar [2.0.1.r361_v20100903-897HFZFFZRuSD2LMtVxyz0Vr]
Cannot satisfy dependency:
From: Equinox p2 Provisioning 2.0.1.r361_v20100903-897HFa-FX0z-z-ntoaavz0JPX628 (org.eclipse.equinox.p2.user.ui.feature.group 2.0.1.r361_v20100903-897HFa-FX0z-z-ntoaavz0JPX628)
To: org.eclipse.equinox.p2.user.ui.feature.jar [2.0.1.r361_v20100903-897HFa-FX0z-z-ntoaavz0JPX628]
Cannot satisfy dependency:
From: Eclipse SDK 3.6.2.M20110210-1200 (org.eclipse.sdk.ide 3.6.2.M20110210-1200)
To: org.eclipse.equinox.p2.user.ui.feature.group [2.0.1.r361_v20100903-897HFa-FX0z-z-ntoaavz0JPX628]
Update 9/15: I read somewhere that this may be due to a permissions issue and that I should run eclipse as root and perform the update. I was indeed able to complete the 3.6.2 SDK update as root but then afterwards all of my add-on components (e.g. subclipse, PDT, etc.) were gone.
You are getting this message because you are trying to install into a read-only (shared) location. The indication is at this line:
Software currently installed: Shared profile 1.0.0.1288623084982 (SharedProfile_SDKProfile 1.0.0.1288623084982)
The reason why there is a failure is that your install plan would remove an old version of a feature that is part of the shared install. Since a shared install cannot be changed, you get the conflicting dependency.
As it happens, I am working on a patch for exactly this bug. See:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=332158
The fix would not allow you to install in this situation, but it would at least provide a better error message for you.
I got this message or something similar because I had installed Eclipse to my C: drive on Windows 7. Trying to do an update required escalation but Eclipse wasn't prompting me. When I restarted Eclipse using "Run as Administrator", it had the proper permissions to continue and it let me upgrade.
Cannot satisfy dependency:
From: Eclipse SDK 3.6.2.M20110210-1200
It needs a dependency that only exists in the update site for Helios 3.6.2 and you are running 3.6.1. You can either upgrade to the latest version of Helios (or better yet, Indigo) or add the update sites. I don't know the URL's off the top of my head, but you can try this method:
Download a fresh copy of Helios and install it to a separate folder. Open up help>install new software and click "available software sites". Then export the default sites and import them into your existing Eclipse installation. Your plugins should now update correctly.
EDIT: add this to your update sites: http://download.eclipse.org/eclipse/updates/3.6/
Note that shared install have now (upcoming Eclipse 4.3, 2013) a way to:
Detect shared install changes:
When Eclipse is running in a read-only folder (also known as shared install) and the read-only installation has changed (e.g. new plugins installed, new version of Eclipse installed), Eclipse will now detect this change and warn that your personal additional plugins have been uninstalled.
Provide a Migration Wizard:
Eclipse now includes a migration wizard to help users through the re-ininstallation of their plug-ins.
This wizard is presented in two situations.
First, when a read-only installation of Eclipse is being changed (i.e. Eclipse is being updated or plugins are added / remove),
second when a new read-only installation of Eclipse is run for the first time.
See also "Shared installs just got better!" for more:
Building on this support, we've also decided to assist users in re-importing their plug-ins from a previous read-only installation.
The reason is simple, many corporations chose to deploy new versions of Eclipse in different folders. This is required to give teams the ability to adopt Eclipse at their own pace, but it also means that when users start using a new Eclipse install, they need to re-install the plug-ins they had installed on their own.
Of course users could use the import/export feature provided by p2, but the time wasted by the user wondering why the plug-ins have vanished and then figuring out what to re-install can be significant, which is why in such situation we are also presenting the migration wizard.

How to install a custom plug-in in Eclipse Ganymede?

We have a custom plug-in. That is, the company where I'm working developed it in house.
I would like to install it as an available plug-in in Eclipse Ganymede. How do I do that?
From what I can figure out, the Eclipse software install only supports installation from Eclipse software update sites.
I went to Help -> Install New Software... -> Add -> Local...
to browse to a folder containing the plug-in. Although the dialog lets me add the directory as an update site, it doesn't work. It expects that directory to be a local Eclipse update site (I think). I get the error
No repository found at file:/G:/TOOLS/...
Next I just copied the plug-in into the plug-in directory under my Eclipse installation. That didn't work either. I also tried copying it into the dropins directory. No dice.
Can anyone enlighten me how to install a plug-in that's not on an "update" site?
Thanks in advance....
Usually an Eclipse plug-in packaged as zip file is install by extracting it into the Eclipse installation directory (or the plugins directory depending on how it is packaged, as it can also extract files in features directory).
Next restart Eclipse with the --clean option.
Did you check the Eclipse error log? Maybe the bundle is failing to deploy for some reason.
Otherwise, create a Feature and Update Site for your plugin as described here. An update site can either be a remote http server (SVN even), or a local directory. The nice thing is that you'll get versioning and the ability to upgrade and uninstall from inside Eclipse. It also makes things easier once your plugin grows into several plugins because they can be bundled together into a single, versioned feature.