tags:

views:

4649

answers:

6

I have a project in subversion, which I'm developing using Eclipse. I did the original checkout from the svn repository from inside Eclipse. All was well for some weeks then for some unknown reason, Eclipse (specifically: subclipse in Ganymede) no longer recognizes my project as being under svn control. The team context-menu only shows the basic "apply patch" / "share this project" menu options. From the shell, I can still update the project using the svn command line tools, so I know that the svn credentials still work. Other projects under subversion in the same copy of Eclipse still work.

I realise that I can delete the local copy and check it out again, but I'd rather understand what has gone wrong - fix the problem, rather than mask the symptoms. Where does Eclipse store its knowledge of which projects are under version control? I looked at the .project file and the .settings directory, but couldn't see any obvious mention of svn nature or anything similar, even in the projects that are still working properly.

+13  A: 

If you are using sublipse as your SVN provider I recommend doing the following

Team -> Share project is usually enough to connect the metadata.

(that is, assuming that the .svn files are still there which they seem to be if you can work on the command line).

Hope this helps as to why this would happen I have no idea

Paul Whelan
That solved my problem, thanks!
Jason Maskell
I have the same problem but this answer doesn't help me. Eclipse offers me to create a new project in Subversion. There is no possibility to reconnect the project.
migu
Confirmed way of doing this thing.
pestaa
Good to hear its worked for you
Paul Whelan
Worked for me, too. Thank you very much.
Turbotoast
A: 

Svn information is stored in the .svn folders in the projects.

NB : I am using Subversive so things may be different.

David Pierre
I know where the svn information is stored, I don't know where Eclipse stores its association between projects and team providers.
Ian Dickinson
A: 

Without knowing what platform you're on, I don't know if your problem is similar to mine. However, I have recently (actually on two different platforms!) had issues where an update to Subversive (or perhaps Eclipse itself, not clear) caused the connectors to no longer load. Without the connectors, Subversive cannot connect to a project. But Eclipse isn't going to lock you out of your project over that, it'll just remove the SVN-related functionality.

Look at the Errors view, which is a log of Eclipse's various errors (class-not-found exceptions, etc.) and see if there are any lines that related to the Subversive components. Unfortunately, I can't really recommend a solution-- on my Mac OSX platform it was enough to re-install the Subversive core elements and connectors. On my Linux machine (possibly due to an OS upgrade) I'm having to completely re-install Eclipse, as too much cruft has accumulated for me to be able to fully investigate it.

rjray
+1  A: 

Addendum: it turns out that my problem manifests when I start Eclipse outside the company vpn, with a project in the workspace that is attached to a svn repository inside the vpn. Fortunately, switching Eclipse svn plugins from subversive to subclipse did solve it.

Ian

Ian Dickinson
+1  A: 

Same in my case: .svn dirs were there, but my project didn't support svn actions.

After a bit of poking it turned out that subversive plugin just disappeared after a forced quitting eclipse.

The solution was to (re)install subversive, and now everything is fine again.

Cheers v.

UPDATE: I have switched eclipse to a new version that just didn't have the plugin installed, which is the reason why I had to install it from scratch.

tishma
A: 

Hi,

I had the same problem and this forum helped me in finding the right answer.

My earlier project was configured using subclipse. The new eclipse had subvesive.

Installing subclipse helped me get back the svn options under team!

Hope it helps someone else.

regards

Anshu Prateek