Eclipse中的EGit导入显示运行时错误 [英] EGit import in Eclipse showing a runtime error
问题描述
我试图制作一个非常简单的 hello world!在Eclipse中使用EGit导入。我没有发现任何证据表明该软件无法运行(在Google中找不到错误),因此看来我做错了我不知道的事情。
我按照此处定义的步骤操作:
我已从错误日志中提取了以下信息:
org.eclipse.core.runtime.CoreException:连接Git团队提供程序失败。有关详细信息,请参见日志。
在org.eclipse.egit.core.op.ConnectProviderOperation.execute(ConnectProviderOperation.java:112)
在org.eclipse.egit.ui.internal.clone.GitImportWizard $ 8.run(GitImportWizard.java :289)org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240)
org.eclipse.core.internal.resources.Workspace.run(Workspace.java :2262)org.eclipse.egit.ui.internal.clone.GitImportWizard.importProjects(GitImportWizard.java:296)中的
org.eclipse.egit.ui.internal.clone.GitImportWizard.access中的
$ 2(GitImportWizard.java:236)
在org.eclipse.egit.ui.internal.clone.GitImportWizard $ 4.run(GitImportWizard.java:206)
在org.eclipse.jface.operation.ModalContext $ ModalContextThread.run(ModalContext.java:119)
包含:连接项目TEst2时出错,未找到Git存储库
eclipse.buildId = 4.7.0.I20170612-0950
java .version = 1.8.0_144
java.vendor = Oracle Corporation
BootLoader常数:OS = win32,ARCH = x86_64,WS = win32,NL = es_ES
框架参数:-product org.eclipse.epp.package.java.product
命令行参数:-os win32 -ws win32 -arch x86_64 -product org.eclipse.epp .package.java.product
信息:
使用pycharm和GitHub目录,我已经能够使用Git并连接到GitHub ...我在Eclipse上所做的事情看起来有问题,而不是我的计算机有问题。
有人知道我做错了吗?
在从Git导入项目对话框中, 使用新项目向导 选项似乎已被破坏(请参阅 Eclipse错误324145 )。
解决方法:
可能是问题在克隆存储库后发生(否则,必须先克隆存储库。要导入现有的本地Git存储库,请使用 文件>从文件系统打开项目... (而不是文件>导入...> Git>来自Git的项目)。如果该项目不是Eclipse项目,但包含 .java 文件,则该项目将自动配置为Java项目。本地Git存储库也将被检测并自动添加。
I tried to make a really simple "hello world!" import using EGit in Eclipse. I have not found any evidence that the software is not working (no bug found in Google), so it looks I made something wrong which I do not know.
I followed the steps defined here: http://craigmart.in/2012/01/17/import-an-existing-git-repo-to-eclipse/
It crashes when connecting to GitHub.
Essentially this is what I am getting:
I have 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
Info:
Using pycharm and GitHub directory I have been able to use Git and connect to GitHub... it looks a problem with something I did on Eclipse, not a problem with my computer.
Does anybody know what I might have done wrong?
In the Import Projects from Git dialog the Use New project wizard option seems to be broken (see Eclipse bug 324145).
Workaround:
Probably, the problem occurred after the repository has been cloned (otherwise you have to 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 configured automatically as a Java project. The local Git repository will also be detected and added automatically.
这篇关于Eclipse中的EGit导入显示运行时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!