Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » No functionality available from user-specific plugin location
No functionality available from user-specific plugin location [message #894227] Sat, 07 July 2012 21:49 Go to next message
Ben Fritz is currently offline Ben Fritz
Messages: 2
Registered: July 2012
Junior Member
I seem to be encountering behavior documented in https://bugs.eclipse.org/bugs/show_bug.cgi?id=322158, even though that bug was supposedly fixed in Helios, and I'm using Indigo.

Specifically, I started with a fresh installation of Eclipse from the Ubuntu 12.04 Software Center, which is:
Version: 3.7.2
Build id: I20110613-1736

Next, to install some system-wide plugins, I launched Eclipse with "sudo /usr/lib/eclipse/eclipse" and installed from the Indigo update site:
* "C/C++ Development Tools" under "Programming Languages"
* "C/C++ Callgraph Visualization" under "Programming Languages"
* "Local Terminal" under "General Purpose Tools"

After this, I needed to do this to make the global plugins visible to non-root users:
sudo chmod -R a+r /usr/lib/eclipse

Now I launch Eclipse again as a normal user. All the above plugins show as installed and I can use them without difficulty. I now install these plugins from the Indigo discovery site:
* "Memory Analyzer" under "General Purpose Tools"
* "Memory Analyzer (Charts)" under "General Purpose Tools"
* "Valgrind Tools Integration" under "Linux Tools"

These three plugins all show as installed in Help->About Eclipse Platform->Installation Details, but none of their functionality is made available to me.

They appear to have been installed to ~/.eclipse/org.eclipse.platform_3.7.0_155965261, which I understand from a good deal of searching on the web, is the location created automatically by Eclipse for users who do not have write access to the install directory, allowing them to install their own user-specific plugins.

http://wiki.eclipse.org/Linux_Tools_Project/Valgrind/User_Guide indicates there should be a "Profile with Valgrind" option when I right-click the executable in my project and select "Profile As". This option is missing. I am fairly confident at least one of the 3 plugins I installed as a normal user ought to have a view available, but filtering on the available views under Window->show view->other shows no results for "valgrind" and only the default CDT "memory" tool when filtering on "memory".

Exiting Eclipse, I can build eclim from source (see eclim.org) and install into the same ~/.eclipse directory. I confirm that several files are placed in the ~/.eclipse/org.eclipse.platform_3.7.0_155965261/plugins directory as expected, and I KNOW from past use of eclim that a new "eclimd" view should be available, but it is likewise not available in the Eclipse GUI when I run it again. I do not know enough about Eclipse's inner workings to know whether it installed properly or not; it does not show in the installed software list like the other 3 plugins I installed as normal user do.

The bug marked as a duplicate of 322158 (i.e. https://bugs.eclipse.org/bugs/show_bug.cgi?id=322929 ) indicates that there was a problem in some config files. How would I determine if the same thing is happening in my case? Is it something I could correct by hand? Have I encountered a bug or did I do something unsupported?

I DID just see the post in the Newcomers forum about how using Ubuntu's package manager to install Eclipse is NOT recommended, but I'd to resolve this anyway if possible. It seems like this sort of thing *should* work, and I like installing most of my software from the package manager if it's available, even if it's not the latest and greatest version.
Re: No functionality available from user-specific plugin location [message #894238 is a reply to message #894227] Sun, 08 July 2012 03:24 Go to previous messageGo to next message
David Wegener is currently offline David Wegener
Messages: 1341
Registered: July 2009
Senior Member
On 07/07/2012 04:49 PM, Ben Fritz wrote:
> I seem to be encountering behavior documented in
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=322158, even though that
> bug was supposedly fixed in Helios, and I'm using Indigo.
>
> Specifically, I started with a fresh installation of Eclipse from the
> Ubuntu 12.04 Software Center, which is:
> Version: 3.7.2
> Build id: I20110613-1736
>
> Next, to install some system-wide plugins, I launched Eclipse with "sudo
> /usr/lib/eclipse/eclipse" and installed from the Indigo update site:
> * "C/C++ Development Tools" under "Programming Languages"
> * "C/C++ Callgraph Visualization" under "Programming Languages"
> * "Local Terminal" under "General Purpose Tools"
>
> After this, I needed to do this to make the global plugins visible to
> non-root users:
> sudo chmod -R a+r /usr/lib/eclipse
>
> Now I launch Eclipse again as a normal user. All the above plugins show
> as installed and I can use them without difficulty. I now install these
> plugins from the Indigo discovery site:
> * "Memory Analyzer" under "General Purpose Tools"
> * "Memory Analyzer (Charts)" under "General Purpose Tools"
> * "Valgrind Tools Integration" under "Linux Tools"
>
> These three plugins all show as installed in Help->About Eclipse
> Platform->Installation Details, but none of their functionality is made
> available to me.
>
> They appear to have been installed to
> ~/.eclipse/org.eclipse.platform_3.7.0_155965261, which I understand from
> a good deal of searching on the web, is the location created
> automatically by Eclipse for users who do not have write access to the
> install directory, allowing them to install their own user-specific
> plugins.
>
> http://wiki.eclipse.org/Linux_Tools_Project/Valgrind/User_Guide
> indicates there should be a "Profile with Valgrind" option when I
> right-click the executable in my project and select "Profile As". This
> option is missing. I am fairly confident at least one of the 3 plugins I
> installed as a normal user ought to have a view available, but filtering
> on the available views under Window->show view->other shows no results
> for "valgrind" and only the default CDT "memory" tool when filtering on
> "memory".
>
> Exiting Eclipse, I can build eclim from source (see eclim.org) and
> install into the same ~/.eclipse directory. I confirm that several files
> are placed in the
> ~/.eclipse/org.eclipse.platform_3.7.0_155965261/plugins directory as
> expected, and I KNOW from past use of eclim that a new "eclimd" view
> should be available, but it is likewise not available in the Eclipse GUI
> when I run it again. I do not know enough about Eclipse's inner workings
> to know whether it installed properly or not; it does not show in the
> installed software list like the other 3 plugins I installed as normal
> user do.
>
> The bug marked as a duplicate of 322158 (i.e.
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=322929 ) indicates that
> there was a problem in some config files. How would I determine if the
> same thing is happening in my case? Is it something I could correct by
> hand? Have I encountered a bug or did I do something unsupported?
>
> I DID just see the post in the Newcomers forum about how using Ubuntu's
> package manager to install Eclipse is NOT recommended, but I'd to
> resolve this anyway if possible. It seems like this sort of thing
> *should* work, and I like installing most of my software from the
> package manager if it's available, even if it's not the latest and
> greatest version.
As you noticed, Eclipse doesn't support installation from package
managers such as you have used on Ubuntu. Eclipse has its own package
management system. The two systems aren't compatible. You are trying
to install some things using one and some things using the other.

If you want to continue to use the Ubuntu package manager, your best bet
is to contact the package maintainers to see if they can help. They may
need package up some more Eclipse projects.

I would suggest you forget about the Ubuntu package manager and install
using the supported method of downloading directly from eclipse.org and
unzipping/tarring the archive file.

I run Ubuntu myself but download and install directly from eclipse.org
Re: No functionality available from user-specific plugin location [message #894356 is a reply to message #894238] Sun, 08 July 2012 16:24 Go to previous message
Ben Fritz is currently offline Ben Fritz
Messages: 2
Registered: July 2012
Junior Member
> As you noticed, Eclipse doesn't support installation from package
> managers such as you have used on Ubuntu. Eclipse has its own package
> management system. The two systems aren't compatible. You are trying
> to install some things using one and some things using the other.

But, the only thing I installed with Ubuntu's package manager is Eclipse
itself. I was then successfully able to install plugins using the normal
Eclipse methods as root. I could easily have had the same situation if I
ignored Ubuntu's package manager and tried to create a shared install by
hand, untarring as root to a location others on the computer do not have
write access. The ~/.eclipse directory is, I understand, designed to
allow users to install their own plugins in just such a situation.

In fact, initially I installed the CDT and other plugins as a normal
user, not as super-user. The plugins installed as normal user worked
fine in this case, with no extra plugins installed in the eclipse
install location. But eclim (which I mentioned in my original post) uses
the plugins installed in the eclipse install location to determine which
features to build. So I uninstalled everything related to Eclipse from
my system, deleted all eclipse directories I knew to find, and started
over with a fresh install, installing the CDT and a couple other plugins
(as mentioned in my original post) directly to the eclipse install
location.

Again as mentioned, these plugins which I installed to the eclipse
install location work fine. But now the plugins I install to my
~/.eclipse directory--an Eclipse concept, not a Ubuntu concept┬╣--don't
work.

While I *can* just require that every user who wants Eclipse download
and install it by themselves, I don't believe I should need to do this.
While realistically I'm probably the only one who will be using Eclipse
on my family computer for the next several years, it would be nice
(since I'm going to be building eclim from source, and perhaps
experimenting with/learning how to edit the plugins it installs) if I
could have the "basic" plugins I use like the CDT be in a protected area
which I'm not going to accidentally screw up.

┬╣ http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fmulti_user_installs.html
Previous Topic:Eclipse indexing not working
Next Topic:Is it possible to debug a GPU code with Eclipse ?
Goto Forum:
  


Current Time: Fri Sep 19 07:53:52 GMT 2014

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

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