I have an Eclipse workspace in ~/EclipseWorkspaces/Sabia with a number of projects under Ubuntu 15.10. The source code for these projects resides in a Git repository at ~/GitRepositories/Sabia.
I can find no way to tell Eclipse in the Pydev Package Explorer that the projects use the Git Repository. If I try to use Team->Share, the system rejects the Git repository because a directory for each project exists in the repository and Eclipse is trying to move the project to the repository which already has a project directory.
I tried the suggestion by Michal Grzejszczak but unfortunately it does not work because the Git Repository does not contain complete projects, only the source trees for the projects. The Eclipse metadata is in /EclipseWorkspaces, not in the Git Repository so import projects on the Git Repository perspective does not work.
In addition when I tried to delete the projects I got the following error message:
AppFrame (One of my projects) contains resources that are not in sync with /home/jonathan/Dropbox/EclipseWorkspaces/Sabia/AppFrame. Press 'Continue' to force delete`
for half of my projects.
Unfortunately the message gives no more information and I have no idea what kind of problem might actually exist. I am not prepared to delete any flawed projects until I have corrected whatever was wrong.
How can I tell the Eclipse Pydev Package Explorer where the Git repository resides?
You need to first add this repository to Git repositories view in Eclipse. Then remove these project from workspace, but without deleting contents and then the most crucial part import them back with "Import projects..." from context menu after right clicking Working tree of the repo in Git repositories view.
That should make your projects managed by Git.
I'm having troubles getting SVN functionality added to my PyDev project.
I've set it up as:
workdir
workdir/project_x
workdir/project_y
workdir/project_z
Each of those projext_ folders is a specific checkout folder from different SVN repositories.
The workdir itself is imported in Eclipse as a PyDev project.
I've tried with Subclipse:
Renaming project
Using the 'team/share' functionality. It says it found the .svn in each of the project folders and wants to delete them. The next step is to setup a SVN url, but I have multiple.
Anyone got a clue how to get subclipse working?
(I've setup these folder because of problem with python finding components in the other project folders.)
Running on Ubuntu (if that matters)
Eclipse team connection can only be made at the top Eclipse project level, or at least that is all Subclipse can do.
You could possibly connect workdir to a local file:// repos and then set the svn:external property to have it pull in the different projects. Subclipse would support that ok.
I have done a checkout of a number of Flex projects from a repository folder to a local folder C:/CodeBase/trunk.
When I import the projects into FB (or Eclipse), there are no SVN details for any of the files. No Team options, last updated, SVN icons on the files.
I am using TortoiseSVN 1.7, and Subclipse 1.8. I think the problem may be that the latest TortoiseSVN stores just a single .svn file in the root folder, CodeBase/trunk, as opposed to the old system of storing an .svn file in every folder.
Anyone know of a fix or have you come across this?
Try Team > Share Project and setup the repository details. This will make the SCM details visible to eclipse.
I have installed EGit plugin on my Eclipse Helios SR2 Installation. I also have a initialize a GIT repository in one of my projects. But unlike SVN EGIT doesn't show me visiual indications when I make changes to the source code. Why is this happening? Even after the GIT repository is initialized and a commit is made there are no visual indications at all.
PS: I have used the Terminal to initialize the repository, add files and make the initial commit.
If you used the terminal, then you have to tell Eclipse, that the project is a Git project and should be managed by EGit. You can do that by right-clicking on the project, then select Team -> Share Project, choose Git, and in the following dialog check the box "use or create repository in parent folder of project". Then in the column "Repository" it should show you a path like "../.git". Now finish and you should be done.
I have an eclipse project on my hard disk, which is a fairly recent check out from an SVN repository. I've imported this project into my Eclipse workspace, and now want to associate it with the SVN repository.
How do I do this? The only options I seem to have under Right-click -> Team is "Share Project", which only seems to allow me to do an initial import.
Edit: Motivation - It's a largish repository, and I don't really want to have to import the whole thing over the network.
Edit 2: There are (for some reason) no .svn dirs in the project. So maybe a fresh import from svn is the only option
Team->Share project is exactly what you need to do. Select SVN from the list, then click "Next". Subclipse will notice the presence of .svn directories that will ask you to confirm that the information is correct, and associate the project with subclipse.
I just wanted to add that if you don't see Team -> Share project, it's likely you have to remove the project from the workspace before importing it back in. This is what happened to me, and I had to remove and readd it to the workspace for it to fix itself. (This happened when moving from dramatically different Eclipse versions + plugins using the same workspace.)
subclipse not showing "share project" option on project context menu in eclipse
I'm asked this question very frequently, if it's smart to use "Share project..." if a eclipse project has been disconnected from it SVN counterpart in the repository. So, I append my answer to this thread.
The SVN-Team option "Share project ..." is totally fine for projects that exist in SVN and in your Eclipse workspace, even if the Eclipse project is missing the hidden .svn configuration. You can still connect them. Eclipse SVN-implementation (Subclipse/Subversive) will verify if the provided SVN http(s) source is populated. If yes, all existing files will be copied and linked (checked out in SVN terms) to your very personal Eclipse workspace.
Word of caution:
Do a backup if you depend on you local files. The SVN implementation may vary its behaviour with every release.
If you have multiple projects encapsulated within each other, make sure you point the SVN path to the correct local path.
regards,
Feder
I came across the same issue. I checked out using Tortoise client and then tried to import the projects in Eclipse using import wizard. Eclipse did not recognize the svn location. I tried share option as mentioned in the above posts and it tried to commit these projects into SVN. But my issue was a version mismatch. I selected svn 1.8 version in eclipse (I was using 1.7 in eclipse and 1.8.8 in tortoise) and then re imported the projects. It resolved with no issues.
I am using Tortoise SVN client. You can alternativley check out the required project from SVN in some folder. You can see a .SVN folder inside the project. Copy the .SVN folder into the workspace folder. Now remove the project from eclipse and import the same again into eclipse. You can see now the project is now associated with svn
In case of SVN servers you have to creating a central repository with all projects. The contents of the repository can be uploaded with the Team/Share command; in case of the Subversive client it automatically runs a commit after the import, so you can upload your files.
This step cannot be circumvented in any way using a centralized version management system such as SVN.
Try this- Close the project then open it. It links with svn automatically,if project was checked out from valid svn path.