Eclipse 中的 Egit 导入显示运行时错误

2023-11-27

我尝试制作一个非常简单的“hello world!”在 Eclipse 中使用 Egit 导入。我没有发现任何证据表明该软件无法正常工作(在谷歌中没有发现错误),所以看起来我犯了一些我不知道的错误。

我按照此处定义的步骤进行操作:http://craigmart.in/2012/01/17/import-an-existing-git-repo-to-eclipse/

连接 GitHub 时崩溃。

本质上这就是我得到的:

enter image description here

我从错误日志中提取了以下信息:

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:

使用 pycharm 和 GitHub 目录,我已经能够使用 Git 并连接到 GitHub...这看起来是我在 Eclipse 上所做的事情的问题,而不是我的计算机的问题。

有谁知道我可能做错了什么?


In the 从 Git 导入项目对话使用新建项目向导选项似乎是broken (see Eclipse 错误 324145).

解决方法:

大概,克隆存储库后出现问题(否则你必须克隆存储库第一的)。要导入现有的本地 Git 存储库,请使用文件 > 从文件系统打开项目...(代替文件 > 导入... > Git > 来自 Git 的项目)。如果该项目不是 Eclipse 项目但包含.java文件中,该项目将自动配置为 Java 项目。本地 Git 存储库也会被自动检测并添加。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Eclipse 中的 Egit 导入显示运行时错误 的相关文章

随机推荐