I'm trying to import the source code for a github project into eclipse and I was able to pull the repo using https://github.com/madeye/proxydroid.git - it now appears in my Git Repository View however I do not see the source code when I switch to Java view.
Any ideas on what I may have done wrong? I've tried pulling and fetching from upstream and I still have nothing in my java view.
The repository you cloned will appear in your git folder, which I believe is in your "My Documents" folder by default. Your default eclipse workspace is not the same as this.
So you fix this two or three different ways. Change your git folder to clone your repo's to your eclipse workspace, import the source files into eclipse and work on it outside of your eclipse workspace, or change your eclipse workspace to the git folder.
Hope that helps! It's pretty easy to fix once you know whats going on.
Related
I have been using IntelliJ IDEA on many projects. But this is my first time to use it on a Github synced project. And I just found the inline inspector seems does not work anymore.
When I drag it into the IDEA, I got the message told me I need to add VCS root for the project so I added. And nothing showed even after I compiled it.
According to the screenshot, src directory is not marked as Source.
Mark the directory as the Source Root.
I have that problem:
I checkout folder (myFolder for example) using tortoise svn.
import->existing projects into workspace
after it eclipse found a lot of projects(about 50) from different locations of myFolder.
BUT
eclipse doesn't understand that these projects from svn(no svn menu if make right click on any file and select team submenu)
I attempt to import-> team project set but after it in eclipse I see myfolder only. it is just folder - not projects. I cannot to compile it and use other features.
I think you are understand my problem.
Can you help me?
Make sure you have installed a subversion plugin for eclipse which is is compatible with the version you have for tortoise, i.e the eclipse plugin you actually have - if any - is able to read the .svn meta data which was created by the tortoise client. This can happen for example if eclipse plugin is 1.6 and tortoise client is 1.7 or above.
When eclipse shows the ~50 projects deselect all and select only the one(s) you want to import, when passed a folder for importing an existing project, eclipse searches recursively for all folders containing a .project file and displays them as projects to be imported. Make a refresh (F5).
EDIT
From http://tortoisesvn.net/tsvn_1.8_releasenotes.html#compatibility
Local Client Compatibility
Subversion working copies are sometimes accessed using several different clients, e.g. TortoiseSVN, AnkhSVN, and the svn command line client. Because the working copy format has changed with this release, 1.8 clients cannot access an earlier working copy without first upgrading it. Pre-1.8 clients cannot access 1.8 working copies at all and there is no downgrade option
Please upgrade your eclipse svn-kit to the latest version, use this update site.
If you have already checkout your projects, import them in eclipse then follow below steps.
Right click on your project go to Team --> Share Project --> Select Repository type. Do next fill in required information and it should work.
I was trying to use SVN today as i was doing all my changes in my webproject on the same folder/files, so wanted to try SVN for version control. However when i installed it and tried to create a repository named "project"...however my servlets/JS files/JSP files folder(package) is also named as Project...
Suddenly after i create the SVN repository i don't see all the work i did..all my .class file and everything else is wiped out. I went to Eclipse workspace i see nothing but .svn...Can someone please help me how to retrieve my work? It is many hours worth of work.
Thanks for your help!
First You can commit your projects by using tortoise svn after creating one repository in SVN.
Second you can checkout your project with eclipse.See this article to connect SVN with eclipse.
I am working on TortoiseSVN and need help with an issue. The current code I am working on has been changed, but I need to review the code (go through the code) that was previously worked on. The previous code is also present on the svn location. I need to know how I can look at that code in the eclipse IDE. That is, I want to view the previous java code along with the new one in eclipse and compare them. I have installed svn into eclipse from the following link:
http://subclipse.tigris.org/update_1.6.x
kindly help...
try to make a repository into your local drive. then download your svn files using svn checkout into that repository folder.your previous code must be there in the repository folder. then open a new project in eclipse using existing source option and locate your local repository>your project folder. this will open a new project consisting with your previous code.
When you import a svn project in eclipse you have a chance to specify which revision you want to import (by default, head revision)
Thanks Shiam Shabbir Himel and Estragon, but actually i wanted to look at the previous code, i mean the code which was some time back and of which i did not had the checkout. Though i found the answer: you need to install SVN in your eclipse from the link: http://subclipse.tigris.org/update_1.6.x. After the SVN is installed, you need to have imported the latest code in eclipse, then right-click on the code window and select: Compare with>> Revision. This will get you all the revision history and you just have to select the version that you have to compare with. It will show you two screens with clear comparison between them. Thats the way it is!!
I am very new to Eclipse (Galileo, Eclipse IDE for Java Developers) and working on my first Android app, but have used SVN on many other kinds of projects and development. Last night I took my first crack at pushing the new source into a shared repository (at work) and then pulling it back down at home.
Based on an SO question/answer, I had ignored the bin and gen folders, but added everything else. When I got home, I had hoped it would be as easy as pointing eclipse to the newly downloaded source tree.
I tried setting the workspace (requested when eclipse started) to the precise folder holding all source. Nothing showed up. It was as if I were starting fresh regardless of all the source and files sitting in the workspace folder.
Then I thought maybe I needed to open a "project" file to get things rolling. Opening the .project file yielded the contents of that file in the XML editor of eclipse.
What am I missing here? Is the project metadata not stored in the source tree? Do I have to build project metadata up on every machine that gets a working copy of the source? Is this something wrong with my home Eclipse install? Can someone give me an overview of how they (successfully) do this?
You should be able to do it like you tried. Make sure you have the Android Development Tools (android eclipse plugin) installed along with the android SDK and make sure you set up ADT before you open the project.
Not checking in the bin directory makes sense to me, but I do check in the gen folder and don't have any problems.
Here is what I do to open a project from SVN if the source is already on the machine:
Open eclipse
Click on File->Import
Select General->Existing Projects into Workspace
Or you can also do this:
Open Eclipse
File -> Import
Select SVN -> Checkout Projects from SVN
Follow the steps to get from SVN