简体   繁体   English

EGit安装问题-在“偏好设置”->“团队”下没有Git存储库浏览透视图,也没有git配置菜单

[英]Problems with EGit installation - no Git Repository Exploring perspective and no git configuration menu under Preferences -> Team

I installed EGit (and JGit) on my Eclipse INDIGO 3.7.2, but I cannot see the new menus that the manuals mentioned. 我在Eclipse INDIGO 3.7.2上安装了EGit(和JGit),但是看不到手册中提到的新菜单。

I cann't see the Git menu under Windows -> Preferences -> Team , where I should be able to configure my GIT user. 我在Windows- Windows -> Preferences -> Team下看不到Git菜单,我应该可以在其中配置我的GIT用户。 I cann't see the GIT Repository perspective either. 我也看不到GIT存储库透视图。

I installed all the "EGit P2 Repository - http://download.eclipse.org/egit/updates " using Help -> Install New Software , except for the "EGit Plug-in Import Support" feature which has a known bug with its installation. 我使用“ Help -> Install New Software ”安装了所有“ EGit P2存储库-http: //download.eclipse.org/egit/updates ”,但“ EGit插件导入支持”功能除外,该功能具有一个已知的错误安装。

I'm using Ubuntu 12.04, and I'm not an experienced Eclipse user so maybe I'm missing some basic issue. 我正在使用Ubuntu 12.04,但我不是经验丰富的Eclipse用户,因此也许我缺少一些基本问题。

I actually need it to install WALA and they recommend doing so using EGit. 我实际上需要安装WALA ,他们建议使用EGit。

Anyone ever installed EGit on a similar environment? 是否有人在类似的环境中安装了EGit?

After many restarts and reinstallation I found out it had nothing to do specifically with EGit. 经过多次重新启动和重新安装后,我发现它与EGit无关。 The problem was with Help -> Check for updates that I did before - One of the updates screws up the eclipse (I couldn't even create a simple Java project). 问题出在Help -> Check for updates我之前做过的更新-其中一个更新使日食更加糟糕(我什至无法创建一个简单的Java项目)。

I'm too tired to report this in the official forums... 我太累了,无法在官方论坛上报告此事...

I had the same experience using Ubuntu 12.04 Indigo package. 我在使用Ubuntu 12.04 Indigo软件包时有相同的经验。 I installed a collection of plugins, only to find nothing applied after restart - though eclipse seemed to think the plugins were installed. 我安装了一个插件集合,但重启后却发现没有任何应用-尽管eclipse似乎认为已安装了插件。

I reverted to the original state and proceeded to add a few at a time . 我恢复到原始状态,并一次添加了一些。 . . seems to be working . 似乎在工作。 . . so far. 至今。

I've had a similar issue after installing EGit 4.1.0 on Eclipse Kepler SR2 - Windows 7 64 bit. 在Eclipse Kepler SR2-Windows 7 64位上安装EGit 4.1.0之后,我遇到了类似的问题。

Kepler SR2 comes with EGit 3.2.0 preinstalled, but I wanted the latest version. 开普勒SR2预先安装了EGit 3.2.0,但我需要最新版本。

After adding the software site: http://download.eclipse.org/egit/updates I installed the Eclipse Git Team Provider . 添加软件站点后: http : //download.eclipse.org/egit/updates我安装了Eclipse Git Team Provider During the install it mentioned I already had some of the components installed, and it would upgrade these - which sounded good. 在安装过程中,它提到我已经安装了一些组件,并且它将对它们进行升级-听起来不错。

After the installed was finished, I restarted Eclipse and there was nothing regarding GIT visible, nothing in preferences under Team, and the Team context menu was also missing most functions, all Git functionality was gone. 安装完成后,我重新启动了Eclipse,没有看到有关GIT的信息,没有显示Team下的首选项,并且Team上下文菜单也缺少了大多数功能,所有Git功能都消失了。

In the Error Log I saw the following stacktrace for each of my projects: 在错误日志中,我看到了每个项目的以下堆栈跟踪:

org.eclipse.team.core.TeamException: Could not instantiate provider org.eclipse.egit.core.GitProvider for project TestProject.
at org.eclipse.team.core.RepositoryProvider.mapNewProvider(RepositoryProvider.java:165)
at org.eclipse.team.core.RepositoryProvider.mapExistingProvider(RepositoryProvider.java:235)
at org.eclipse.team.core.RepositoryProvider.getProvider(RepositoryProvider.java:507)
at org.eclipse.team.internal.ccvs.ui.CVSLightweightDecorator.isMappedToCVS(CVSLightweightDecorator.java:192)
at org.eclipse.team.internal.ccvs.ui.CVSLightweightDecorator.decorate(CVSLightweightDecorator.java:147)
at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:263)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:81)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:365)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:347)
at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:371)
at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:331)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

Looking at the EGit FAQ I noticed the following: 在查看EGit常见问题时,我注意到以下内容:

Required Java Version (BREE): Up to EGit 3.7 the minimum supported BREE is Java 5 though Java 6 or higher is recommended due to limitations in older Java versions. 所需的Java版本(BREE):最高EGit 3.7,受支持的最低BREE是Java 5,但由于旧Java版本的限制,建议使用Java 6或更高版本。 Starting from EGit 4.0 the minimum supported BREE is Java 7 从EGit 4.0开始,最低支持的BREE是Java 7

I downloaded Java 8 64 bit, and installed it, and then updated my eclipse.ini file to include: 我下载了Java 8 64位并安装了它,然后更新了eclipse.ini文件,使其包括:

-vm
C:/Java/jdk1.8.0_60_x64/bin/javaw.exe

The path above will be different, depending on where you installed Java, but it needs to point at the javaw.exe file. 上面的路径会有所不同,具体取决于Java的安装位置,但是它需要指向javaw.exe文件。 See https://wiki.eclipse.org/Eclipse.ini#Specifying_the_JVM for further info. 有关更多信息,请参见https://wiki.eclipse.org/Eclipse.ini#Specifying_the_JVM

In Eclipse I added Java 8 as an installed JRE, via Preferences -> Java - Installed JREs and pointed it at my C:/Java/jdk1.8.0_60_x64 directory, but this step may not be necessary. 在Eclipse中,我通过首选项-> Java-已安装的JRE将Java 8添加为已安装的JRE,并将其指向我的C:/Java/jdk1.8.0_60_x64目录,但是此步骤可能不是必需的。

Once all this was done, after starting Eclipse, all the Git functionality was restored. 完成所有这些操作后,在启动Eclipse之后,将还原所有Git功能。

I used Java 8, but can use Java 7, which is the minimum required from EGit 4 onwards. 我使用Java 8,但可以使用Java 7,这是EGit 4以后的最低要求。

Is this project shared with the CVS team provider ? 该项目是否与CVS团队提供商共享? CVSLightWeightDecorator isn't an EGit class but looks like it's from the CVS team provider. CVSLightWeightDecorator不是EGit类,但看起来像来自CVS团队提供者。

If that's the case the should be a menu entry "Team > Disconnect" on this project, if that's the case run this command and then run "Team > Share with Git" to attach the git team provider implemented by EGit. 如果是这样,应该在该项目上的菜单项为“ Team> Disconnect”,如果是这种情况,请运行此命令,然后运行“ Team> Share with Git”以附加由EGit实现的git team provider。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM