EGit import into Eclipse with runtime error

I was trying to make a really simple "hello world!" import using EGit in Eclipse. I didn't find any evidence that the software isn't working (no bugs found on Google), so it looks like I did something that I don't know.

I followed the steps defined here: http://craigmart.in/2012/01/17/import-an-existing-git-repo-to-eclipse/

Crashes when connecting to GitHub.

This is essentially what I get:

enter image description here

I extracted the following information from the error log:

org.eclipse.core.runtime.CoreException: Connecting Git team provider failed. See log for details.
    at org.eclipse.egit.core.op.ConnectProviderOperation.execute(ConnectProviderOperation.java:112)
    at org.eclipse.egit.ui.internal.clone.GitImportWizard$8.run(GitImportWizard.java:289)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2262)
    at org.eclipse.egit.ui.internal.clone.GitImportWizard.importProjects(GitImportWizard.java:296)
    at org.eclipse.egit.ui.internal.clone.GitImportWizard.access$2(GitImportWizard.java:236)
    at org.eclipse.egit.ui.internal.clone.GitImportWizard$4.run(GitImportWizard.java:206)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
Contains: Error connecting project TEst2, no Git repositories found

eclipse.buildId=4.7.0.I20170612-0950
java.version=1.8.0_144
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=es_ES
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product

      

Information:

Using pycharm and the GitHub directory I was able to use Git and connect to GitHub ... it looks like a problem with something I did on Eclipse, not a problem with my computer.

Does anyone know what I might have done wrong?

+6


source to share


2 answers


In the Import Projects from Git dialog box, the Use New Project option appears broken (see Eclipse Bug 324145 ).

Workaround:



Probably the problem occurred after cloning the repository (otherwise you should clone the repository first ). To import an existing local Git repository, use File> Open Projects from File System ... (instead of File> Import ...> Git> Projects from Git). If the project is not an Eclipse project but contains .java files, the project will be automatically configured as a Java project. The local Git repository will also be detected and added automatically.

+3


source


Thanks to @howlger answer
I rendered the solution



enter image description here

0


source







All Articles