Nicolas Raoul
Nicolas Raoul

Reputation: 60213

Subclipse does not recognize my project as an SVN project

From SVN I checked out a "myproject" folder to my hard drive.
It happens to be an Eclipse project, so I imported it into Eclipse and I can work on it.

I have Subclipse installed and working as expected on other projects in the same Eclipse workspace.
But for some reason, "myproject" does not have the usual Subclipse controls like Team>Commit or the decorations.

Did I miss any obvious steps?

svn --version: 1.6.5 (r38866)
Subclipse: 1.6.6 Eclipse: jee-galileo-SR1-linux-gtk 20090920-1017

Here is what happens when I click Team>Share>SVN:

Subclipse Team Share http://img718.imageshack.us/img718/7308/screenshotsubclipse.png

Please note the root .svn folder.
On the command-line, SVN works in this folder.

Upvotes: 29

Views: 21958

Answers (5)

Witold Kaczurba
Witold Kaczurba

Reputation: 10505

If you have just installed Subclipse plugin, already restarted the Eclipse but no SVN recognized:

  • close the project and open it again
  • F5 to refresh
  • It should recognize it.

Upvotes: 1

James-Jesse Drinkard
James-Jesse Drinkard

Reputation: 15723

I'm posting this in case someone runs into a similar situation. I'm running eclipse luna with the subclipse plugin.

I've done this before without mishap, but svn is one of the more "touchy" source control repositories I've worked with.

I wanted to move a png logo file into my app. So I renamed the existing one to a logo_bak and then imported the new one and then named it the same name as the existing logo that I just renamed logo_bak. I then checked in some files and went on my way to other tasks.

However, the next work day when I started up eclipse luna my entire project was "dirty" as indicated by the svn label decoration for dirty on the project.

(A file that is marked as "dirty" needs to be committed, an "unversioned" file hasn't been added to your SVN repository yet, and so on.)

and I just couldn't get it to synchronize with svn. I also found that my files never did get checked in. If I did a right click on my project, then Team - Share Project, that option wasn't displaying and Team - Synchronize with Repository was disabled.

I tried creating a new project, deleting metadata from eclipse, opening then closing the project, and several other things, but what worked was disconnecting the project from svn, then connecting back to it again. After that I was able to right click on the project, then select Team - Share Project. Then when I synchronized I had about a dozen or so files to Override and update, even though when I checked on differences they were the same as what was in the repo. After that though everything started working again normally.

Upvotes: 0

LordTitiKaka
LordTitiKaka

Reputation: 2156

OK I got to here after handling the same error Now I've found my error(and solution) , maybe it is something that may help others here

My problem was that my repository was in different version than my tortoise-svn !!

As found out : my repo. was of version 1.6 while I was using version 1.8 !

just downgraded it to 1.6 and it works :)

Upvotes: 2

Paul Bußmann
Paul Bußmann

Reputation: 119

You can also remove the project (don't delete contents) and import it as existing project again.

Upvotes: 12

Rob Tanzola
Rob Tanzola

Reputation: 1795

Try right-clicking "myproject" and click Team / Share Project. It should ask you what type of repository, and when you move to the next screen it should indicate that it sees existing SVN/ directories at which point it should use that metadata to establish the link. It may also require that you have the SVN repository set up (in the SVN Repositories perspective).

Upvotes: 65

Related Questions