Solving Subclipse and Subversion conflict on Ubuntu 9.10
Since I upgraded to Ubuntu 9.10 (Karmic Koala), I had a very annoying problem with a key feature of my development setup. For the last years, I have been using EasyEclipse for PHP. It’s a great Eclipse distribution already configured with some useful plugins depending on the language you are developing in. The one I use is obviously aimed at PHP developers. I was using EasyEclipse back when I was on Windows, and then on Ubuntu 8.04 and now on Ubuntu 9.10. But since this last change, I had problems with the SVN integration inside EasyEclipse (Subclipse). For some reasons, I lost all SVN features inside some projects, but not all..
When I was trying to access SVN features from within a project which files came from my Ubuntu 8.04 laptop, it was working. However, checking out a project on my new Ubuntu 9.10 was causing EasyEclipse to not be able to recognize the project as an SVN project. When I was right-clicking any folder inside that project and selecting the Team item, there was only Apply Patch… and Share Project. I was missing all the usual: Commit, Update, Branch/tag, etc…

I googled a lot but did not find any solutions at first. I installed Eclipse alone, but it would not even start… I installed Eclipse from Synaptic, same thing, it would not start. It was only displaying the splash-screen and then it disappeared. Nothing else. I even installed Zend Studio, and I was getting the exact same problem: the Team contextual menu item was not displaying the SVN features.
I was starting to feel a little bit helpless. My only workaround was to develop with EasyEclipse but to commit and update via the command line. Doable, but not painless…
I googled one last time and after many many readings, I stumbled on someone hinting that there might be a problem between Subclipse and Subversion itself. It made me think. Why were the projects coming from Ubuntu 8.04 were working and the newly checked out projects from Ubuntu 9.10 were not. The hypothesis that there could be a conflict between Subclipse and Subversion started to make sense…
So I went on Ubuntu 8.04 Synaptic and checked the version of Subversion. I did the same on Ubuntu 9.10. They were of course not the same version. So it seemed that projects checked out with subversion from Ubuntu 8.04 were compatible with Subclipse, but not the ones checked out with Ubuntu 9.10. So the solution: uninstall subversion and reinstall the previous version, the one installed on Ubuntu 8.04! So here are the steps I had to do:
- Uninstall subversion
- Uninstall libsvn1 (a dependency of subversion)
- Install libsvn1
- Install subversion-hardy
And now, everything works !!
Your Subclipse version needs to be compatible with the version of JavaHL you have installed, or vice versa depending on how you want to think about it. This is explained on this wiki:
http://subclipse.tigris.org/wiki/JavaHL
If you had to downgrade SVN then I am guessing you do not have the latest Subclipse 1.6.x release installed.
Thanks Mark! You are definitely right! However, I did not find any way to upgrade to the latest Subclipse in my EasyEclipse install… I could do it with a plain Eclipse (on Windows) but not with EasyEclipse. And the plain Eclipse did not work for me on Ubuntu… Any advice ?
Thanks!