Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN not working in Eclipse

One day I pressed in Eclipse Help -> Check for Updates (and I learnt that I should Never Ever update a software which works fine.)

Then in a project that I used with SVN the whole submenu of "Team" and the little icons that showed that some files weren't commited, they all dissapeared.

I tried everything:

  • revert from Instalation History tab
  • uninstall from Installed Software tab
  • replaced the folder eclipse in Program Files with a new one downloaded from eclipse website and tried to install again
  • searched how to install it on the net

But in none of the cases above if I press Ctrl+N There is no SVN group; If i right click on a project and select Team -> Share project, a window with CVS appears, but no SVN. If I choose File -> Import I can't find SVN anywhere.

If I go to Help -> About Eclipse -> Instalation details I see at Instalation History in 25.06.2009, 09:59:08 GMT+03:00 (when SVN worked)

Eclipse IDE for Java EE Developers  1.2.0.20090621-0820
Subclipse (Required)    1.6.2
Subversion JavaHL Native Library Adapter (Required) 1.6.3
SVNKit Library  1.3.0.5847

In the Installed Software tab I have now installed

Eclipse IDE for Java EE Developers  1.2.0.20090621-0820 epp.package.jee
Subclipse (Required)    1.6.5   org.tigris.subversion.subclipse.feature.group
Subversion JavaHL Native Library Adapter (Required) 1.6.6   org.tigris.subversion.clientadapter.javahl.feature.feature.group
SVNKit Library  1.3.1.6109  org.tmatesoft.svnkit.feature.group

How can I make SVN to work?
Where does eclipse store its files, because when I changed the eclipse directory with a new one all my stuff was there (the ones that I installed with no success: SVN, Subversive, Subclipse, SVNKit, ...)

like image 526
True Soft Avatar asked Nov 25 '09 17:11

True Soft


People also ask

Why is Eclipse svn Team menu not showing all options?

You have you run 'Team > Share Project...' to tell SVN that this project is an SVN project before you can do anything else. Once you have set up the sharing the other menu items will appear.

What is svn plugin for Eclipse?

Eclipse is an open-source and free, java-based development platform. It is well known for its excellent plug-ins that allow developers to develop and test code written in different programming languages. Eclipse IDE support built-in integration for Subversion.

Where is svn repository in Eclipse?

#1) Right-click on the project folder in the project explorer, and click on Team -> Share. #2) In the following window, select SVN and click next. #3) The next window will ask you for your SVN repository URL and credentials, enter that and click finish to add and commit.

How do I open svn repository Exploring perspective in eclipse?

Go to the SVN Repository perspective by clicking "Window » Open Perspective » Other » SVN Repository Exploring", and open your SVN repository.


2 Answers

Subversive is my favorite SVN implementation in Eclipse because it works better than the others and it integrates neatly into the UI.

I suggest you follow these steps:

  1. Download the most recent version of Eclipse (currently Galileo) and extract it to your desired installation location
    • Prior to running Eclipse, make sure you delete (or rename/relocate) your default workspace (under Windows this is workspace in your user directory)
    • Install the Subversive SVN Team Provider (as instructed by the Eclipse incubation website) using Eclipse's software installer:
    • Choose Help, then Install New Software...
    • Create a new download location and specify the following download URL: http://download.eclipse.org/releases/galileo
    • Locate Collaboration, expand it, then check Subversive SVN Team Provider (Incubation)
    • Proceed through the installation and accept the TOS
    • Restart Eclipse and Subversive should prompt you to select a SVN Connector. Reading the symptoms you describe, it sounds like you don't have a connector installed, or it isn't communicating with your team provider. The Polarion website has a guide for choosing the connector best suited for you.

If you aren't prompted to install a connector, you can always do so from the preferences screen:

SVN preferences in Eclipse

If the above doesn't work for you, it seems that your workspace isn't cleaned out. Locate your default workspace and try getting things working without any projects before you continue.

You could then also try deleting the .eclipse directory in your user directory. And starting over from step 3.

like image 137
Paul Lammertsma Avatar answered Sep 30 '22 09:09

Paul Lammertsma


The problem I had was that svn icons where not showing in the package explorer.

The solution for me was to delete the .metadata folder in the workspace folder (which will reset all your workspace including preferences and repository configurations)

After that all the icons appeared.

like image 40
Lisandro Avatar answered Sep 30 '22 08:09

Lisandro