Log in

View Full Version : Downloading Github project to Eclipse


Jaykus
14-01-2015, 12:20
So because of a merging Github error, I ended up deleting every version of our robot code off of my computer. When I tried to redownload it, I could only get the code to appear as text files, and not as code. The .project and .classpath files all seem to be in working order, and I'm having the same problem on Netbeans and Eclipse.

otherguy
14-01-2015, 14:45
I'm not really sure what youean when you say the files import as text but not code...

But my guess is its all related to how you are importing your project into the IDE.

Assuming you're cloning the git repo to your computer outside of the eclipse, you should be able to import an eclipse project by going to File, Import. Then select General, Import Existing Project Into Workspace. Then navigate to the location on your computer that you cloned the repo to. If it detects a project at the location you should be able to click Finish/Next to complete the process.

Sorry I don't have eclipse in front of me to provide screenshots, but that's the general process. If that doesn't work for you please provide some more info on what you're doing to import your project into the IDE.

Jared
14-01-2015, 15:09
Make sure you're importing an eclipse project into eclipse, and not a netbeans project into eclipse.

When you clone your repository, you should have the option to select "choose an existing project", and it sounds like you chose "create a general project".

Jaykus
18-01-2015, 19:35
Fixed the problem. I found a place online that said to click Window -> Reset Perspective. Not sure how it worked, but it did. Thanks for the help :)