Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » [RESOLVED] Git options are enabled for "Team" submenu, but DISabled for Git 'top-menu'?
[RESOLVED] Git options are enabled for "Team" submenu, but DISabled for Git 'top-menu'? [message #1707522] Sun, 06 September 2015 18:02 Go to next message
John AdevFriend
Messages: 9
Registered: September 2015
Junior Member
I've installed Eclipse from the minimal Platform Binaries tarball

    ...
    awt.toolkit=sun.awt.X11.XToolkit
    eclipse.application=org.eclipse.ui.ide.workbench
    eclipse.buildId=4.6.0.I20150805-2000
    eclipse.commands=-os
    linux
    -ws
    gtk
    -arch
    x86_64
    -launcher
    /usr/local/eclipse/eclipse
    ...
    eclipse.product=org.eclipse.platform.ide
    ...
    -Dorg.eclipse.swt.browser.UseWebKitGTK=true
    ...
    org.eclipse.swt.browser.UseWebKitGTK=true
    org.eclipse.swt.internal.gtk.version=3.14.15

and I've installed Aptana Studio 3 & eGit as plugins,

    ...
    Id: com.aptana.git.core, Version: 3.0.0.1430494413, Location: reference:file:plugins/com.aptana.git.core_3.0.0.1430494413/
    Id: com.aptana.git.ui, Version: 3.0.3.1409062155, Location: reference:file:plugins/com.aptana.git.ui_3.0.3.1409062155.jar
    Id: org.eclipse.egit, Version: 4.0.1.201506240215-r, Location: reference:file:plugins/org.eclipse.egit_4.0.1.201506240215-r.jar
    Id: org.eclipse.egit.core, Version: 4.0.1.201506240215-r, Location: reference:file:plugins/org.eclipse.egit.core_4.0.1.201506240215-r.jar
    Id: org.eclipse.egit.doc, Version: 4.0.1.201506240215-r, Location: reference:file:plugins/org.eclipse.egit.doc_4.0.1.201506240215-r.jar
    Id: org.eclipse.egit.mylyn.ui, Version: 4.0.1.201506240215-r, Location: reference:file:plugins/org.eclipse.egit.mylyn.ui_4.0.1.201506240215-r.jar
    Id: org.eclipse.egit.ui, Version: 4.0.1.201506240215-r, Location: reference:file:plugins/org.eclipse.egit.ui_4.0.1.201506240215-r.jar
    Id: org.eclipse.jgit, Version: 4.0.1.201506240215-r, Location: reference:file:plugins/org.eclipse.jgit_4.0.1.201506240215-r.jar
    Id: org.eclipse.jgit.archive, Version: 4.0.1.201506240215-r, Location: reference:file:plugins/org.eclipse.jgit.archive_4.0.1.201506240215-r.jar
    ...

In the Eclipse UI, for any project's modified file, if I want to exec a 'git commit', there are two options I see

(1) The top-menu "Git" menu pulldown
(2) The right-click-on-file "-> Team" menu

(2) works just fine. "Commit" is available, and I can make the commit, and check/verify the commit in logs.

But, the options in (1) are completely greyed-out. I can't use them at all. Apparently for any file.

How do I enable the top-menu "Git" menu pulldown options?

I think (?) this is due to 2 different types of Git in here ... but I'm not sure. I develop alone, so I think eGit is all that I need. IIUC, that's the top-menu?

[Updated on: Tue, 08 September 2015 23:53]

Report message to a moderator

Re: Git options are enabled for "Team" submenu, but DISabled for Git 'top-menu'? [message #1707677 is a reply to message #1707522] Tue, 08 September 2015 13:27 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1272
Registered: July 2009
Senior Member
The git top-menu is only displayed if you switched on the Git action set under "Window > Perspective > Customize Perspective > Action Set Availability".
If you also want the git toolbar you need to also activate it under "Window > Perspective > Customize Perspective > Toolbar Visibility".

I tried using EGit 4.1 from http://download.eclipse.org/egit/updates-nightly and the commands in the git top-menu are enabled
if some resource (file,project,repository) in a git managed project is selected.

I don't use Aptana so I don't know if it interferes here.
Re: Git options are enabled for "Team" submenu, but DISabled for Git 'top-menu'? [message #1707685 is a reply to message #1707677] Tue, 08 September 2015 13:40 Go to previous messageGo to next message
John AdevFriend
Messages: 9
Registered: September 2015
Junior Member
It's not an issue that the Git top-menu and toolbar aren't displayed -- they both *are*.

The issue is that all the displayed menu & toolbar items are disabled / greyed out & non-functional.

I'm already using ' http://download.eclipse.org/egit/updates-nightly' -- no change.

> the commands in the git top-menu are enabled if some resource (file,project,repository) in a git managed project is selected.

Not here. For any/all git-managed projects' files/folders, the right-click -> Team -> * options *are* all enabled.

*None* of the GIt top-menu or toolbar items are.
Re: Git options are enabled for "Team" submenu, but DISabled for Git 'top-menu'? [message #1707692 is a reply to message #1707685] Tue, 08 September 2015 14:00 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1272
Registered: July 2009
Senior Member
Can you reproduce this with any of the standard Eclipse packages available here
https://www.eclipse.org/downloads/
Re: Git options are enabled for "Team" submenu, but DISabled for Git 'top-menu'? [message #1707697 is a reply to message #1707692] Tue, 08 September 2015 14:23 Go to previous messageGo to next message
John AdevFriend
Messages: 9
Registered: September 2015
Junior Member
Yes. I'd originally seen the problem with Eclipse for PHP Developers / Mars. Which was one of the reasons I'd explored switching to IntelliJ's product, PHPStorm -- for the fully functional git support.

THAT product never quite fit right for me, and now the company's lost its mind over licensing, so I'm back to Eclipse.

Trying Nova M1 atm, realizing it's not fully baked yet, in the hopes that this & some other annoyances have been resolved.

I suspect it's something in my config, but heck if I know yet.
Re: Git options are enabled for "Team" submenu, but DISabled for Git 'top-menu'? [message #1707708 is a reply to message #1707697] Tue, 08 September 2015 16:01 Go to previous messageGo to next message
John AdevFriend
Messages: 9
Registered: September 2015
Junior Member
I removed AptanaStudio3 plugin. Now using Eclipse PDT , with eGit installled. Issue's the same -- greyed out in both Top-menu and Toolbar.
Re: Git options are enabled for "Team" submenu, but DISabled for Git 'top-menu'? [message #1707735 is a reply to message #1707708] Tue, 08 September 2015 23:54 Go to previous message
John AdevFriend
Messages: 9
Registered: September 2015
Junior Member
Looks like it was maybe a corrupted workspace ...

Launching eclipse once with

eclipse -clearPersistedState -clean -refresh


fixed the problem for good.

REF: https://bugs.eclipse.org/bugs/show_bug.cgi?id=476912#c2

Previous Topic:Git command equivalent in JGit (diff & Show)
Next Topic:git worktree support ?
Goto Forum:
  


Current Time: Fri Sep 20 02:44:36 GMT 2024

Powered by FUDForum. Page generated in 0.04918 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top