Can only use PyDev plugin when running Eclipse as root or using -clean option - eclipse

Overview
I am running Ubuntu 15.10 with Eclipse Mars 4.5.2 (from the Oomph installer) and and Java 1.8 and Python 2.7. I am attempting to the PyDev 5.2.0 plugin for Eclipse. Installing with Eclipse's update manager seemed to go okay. The only problem is that I can only see PyDev related options when I run Eclipse with sudo.
What I have tried
I made sure to set the java VM path in the eclipse.ini file so the Eclipse binary runs with Java 8.
I added Java 8 to Eclipse's JREs and set to be default.
I tried running the Eclipse binary with the -clean option.
The first two didn't allow me access to the PyDev options in Eclipse. Running as a normal user with the -clean option did let me see the PyDev options, but running as a normal user without -clean made the PyDev menu options invisible again.
Finally, I noticed that running Eclipse as root made the PyDev options appear again. This suggested that there was some ownership or permission problem. Since my Eclipse installation and plugins are in my home directory, I made sure my user has ownership over everything in the home directory. I also reviewed the permissions of files related to the PyDev plugin, and it appears I have the appropriate permissions, but since I do not know which permissions each file ought to have, I am not sure.
I am not sure what is going on. It is especially surprising given that I was able to install the CDT plugin not long ago without any hassle. It's also possible the problem might be related to how root's environment is configured compared to my user's, but being able to access PyDev when running with -clean seems to vanquish that theory.
I could just run Eclipse as root from now on, which isn't that big of a deal. However, it is quite annoying not knowing why this is happening, making me feel like I don't have control over Ubuntu and Eclipse.

My guess is that you have the eclipse configuration folder not accessible by the current user (or some other folder inside the .metadata).
Try verifying/fixing the permissions on those folders (I don't exactly know where those folders go on the default ubuntu install, but on windows it's eclipse/configuration and the .metadata is where you point your workspace to).

In my case, upgrading to Ubuntu 16.04 solved my problem. After the upgrade, PyDev was working normally in Eclipse.

Related

Setting up PyDev in Eclipse Juno

I have installed Eclipse Juno on a linux machine and am trying to set up PyDev.
I have installed PyDev using Help => Install New Software, and it seemed to work fine and is listed as installed:
However, I do not find PyDev under Preferences, and I don't find the PyDev Perspective.
Any suggestions on how to get this running? (I'm normally a Windows user...)
You could be in a custom perspective in which the plugin commands are not set to be visible How To Add Perspectives In Eclipse
Another way:
sudo eclipse -clean;
Help --> Install software --> Re-install the plugins and software;
Explanation:
Eclipse is installed and the majority of programs are also installed initially with root privileges.
Typically 'Ownership' of hidden install folders like this belong to the 'sudo' or Root user. Therefore changes and installs to these hidden folders will not take.
Your requisites aren't Ok. PyDev 5.6 requires Neon (Eclipse 4.6).
See: Need to use older Eclipse/Java/Python in http://www.pydev.org/download.html for details on the PyDev version you need for older versions of Eclipse (also, make sure your java version matches the requisite).

Checkstyle plugin is installed not visible in eclipse

I have installed eclipse checkstyle plugin. It installs properly but is not showing up in windows -> preferences. Currently using Mars.2 version. Have tried installing from both the update site http://eclipse-cs.sf.net/update and offline archive zip file and both install smoothly.
I have tried uninstalling, restarting eclipse in admin mode and installing again; and restarting ecplise with -clean -refresh options. None of these solutions have worked for me.
Am I missing something here?
As long as Mars is an old release, there may be some incompatibility problems between it and the plugin. You should check Eclipse Neon, where plugins should work without those issues.
If installation works but a plug-in then doesn’t show up in the UI, it may mean that its OSGi bundles fail to resolve. To check that, launch Eclipse with the -console switch; this opens the OSGi console in the terminal you used to start Eclipse with. Then, type the following:
ss | grep INSTALLED
This way, you will get a list of bundles that are merely INSTALLED but not RESOLVED or STARTING. If a Checkstyle bundles is among them, you have found your problem.
You can obtain further information suitable for a bug report to the Checkstyle developers by typing
diag $NUMBER
where $NUMBER is the number listed in the first column of the INSTALLED bundle.

Eclipse doesn't save the previous settings like workspace & Plug-ins

I am using Eclipse Neon on my MacBook & every time I start Eclipse it prompts me for my workspace again and again even though I set it as my default one.
Same goes for the plug-ins I have installed , I need to install eclipse decompiler every time I load eclipse.
I get an error like : "This wizard helps you to import and reinstall previously installed plug-ins. It is triggered because
either you are launching eclipse for the first time or your Eclipse has been updated."
Can someone please assist me with this issue ?
I had the same problem after updating my Mac to Sierra: Eclipse would not remember the default workspace. After moving Eclipse into the Application folder, the problem disappeared.
The issue seems to come from a Mac OSX Sierra feature called 'path randomization' (see eclipse bug 507328). The actual solution to avoid the path randomization seems to be for eclipse to provide signed .dmg images (bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=461670).
Two workarounds that I can suggest are:
Start from the eclipse oomph installer when installing eclipse (see https://www.eclipse.org/forums/index.php?t=rview&goto=1754574#msg_1754574)
Start the actual eclipse executable file instead of opening the .App container

How to uninstall eclipse neon on ubuntu?

I have downloaded Eclipse Neon from their official site and then I just ran an installer contained in the compressed folder(I didn't change any of the default installation settings). It is working just fine, but the icon in the sidebar is not displayed correctly when I am running it and the quick search from the sidebar also doesn't find eclipse when searched for. That is why I want to reinstall it, but i don't even know how to remove it completely. I tried Synaptic Packet Manager, but it doesn't work. What should I do?
I'm using Ubuntu 16.04.
Eclipse doesn't have a traditional install or uninstall process. Only a folder of an application is created plus the workspace which you created. If you used the Eclipse Installer, you may also have a bundle pool folder named .p2 under your user home directory. There can also be .eclipse in your user home. Other than that, there shouldn't be anything Eclipse-related. Uninstalling is just removing those folders.

Pydev missing after upgrading Eclipse on FreeBSD

I recently updated my ports on my FreeBSD 9.0 release machine and I think eclipse was upgraded due to a port upstream forced Eclipse to be rebuilt. Now Pydev is gone. I tried uninstalling then reinstalling Eclipse, then installing Pydev using pydev.org/updates inside Eclipse. It appears to install ok but I can't create a Pydev project or use the Pydev view. I tried removing my ~/.eclipse folder to force the creation of a new one, and reinstalling Eclipse and Pydev to no avail. What am I doing wrong? I'm running Eclipse Indigo version 3.7.1 build id: R3_7_1
This question was most similar to mine, but the solution didn't work for me. I also tried pointing my install site as: http://update-production-pydev.s3.amazonaws.com/pydev/updates/site.xml per another question on StackOverflow, to no avail.
After some more testing I finally got the newest FreeBSD port to work. I had to launch and install the plugins as root. It didn't work another time I ran it but, this great troubleshooting document helped out. I methodically went through each step one by one, and the logs indicated there was an error on my /usr/local/lib file it was trying to unzip. My user doesn't have write access to that directory but root does. I don't know why it didn't work the last time I ran it as root, perhaps I didn't install the plug-in as root. It works now, so I'm happy. Thanks Fabio, for your input.
I'm not sure how FreeBSD packages things, so, maybe an easy way out would be getting Eclipse from Eclipse.org and installing PyDev on that fresh install (or if you're also doing web stuff, I'd suggest grabbing Aptana Studio 3, which comes with PyDev preinstalled, so, you don't have to worry about configuring it).
See: http://pydev.org/download.html for details