Bug 397064 - [repoView] Incomplete context menu shown on Kepler M3
Summary: [repoView] Incomplete context menu shown on Kepler M3
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.8   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 337532 397934 (view as bug list)
Depends on: 394505
Blocks:
  Show dependency tree
 
Reported: 2012-12-21 05:03 EST by Matthias Sohn CLA
Modified: 2017-12-19 09:39 EST (History)
12 users (show)

See Also:


Attachments
incomplete context menu on repository node (33.51 KB, image/png)
2012-12-21 05:05 EST, Matthias Sohn CLA
no flags Details
complete context menu on repository node (51.87 KB, image/png)
2012-12-21 05:06 EST, Matthias Sohn CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Sohn CLA 2012-12-21 05:03:11 EST
When running recent EGit on Kepler M3 I frequently face the problem that the context menu for repository nodes in the repositories view shows only the entry 'Paste Repository Path' instead of the full menu. I suspect this could be a platform problem.
Comment 1 Matthias Sohn CLA 2012-12-21 05:05:56 EST
Created attachment 224984 [details]
incomplete context menu on repository node
Comment 2 Matthias Sohn CLA 2012-12-21 05:06:15 EST
Created attachment 224985 [details]
complete context menu on repository node
Comment 3 Dani Megert CLA 2012-12-21 08:06:17 EST
Is M3? Or maybe M4?

M4 has bug 396796. If it's M3, can you try to provide steps? I've not seen it recently.
Comment 4 Jens Ohlsson CLA 2013-03-18 17:05:38 EDT
I´m experiencing the exact same problem. Running Juno SR2 on mac os x. EGIT 2.3.1.
Comment 5 Peter Kullmann CLA 2013-04-04 08:02:45 EDT
I have similar problems in Juno SR2 on a mac and I think they are related to bug 398925: After I hit the error "java.lang.Object cannot be cast to org.eclipse.e4.core.commands.EHandlerService" lots of context menus are no longer correctly enabled. For instance the "Switch to" entry is missing from the context menu of a git project (in addition to the original problem of the bug).
Comment 6 Richard Fearn CLA 2013-11-22 06:02:32 EST
Bug 337532, bug 394505 and bug 397934 seem to be reporting the same problem.
Comment 7 Kay Huber CLA 2013-11-22 06:08:49 EST
*** Bug 337532 has been marked as a duplicate of this bug. ***
Comment 8 Robin Stocker CLA 2013-11-22 11:52:31 EST
*** Bug 397934 has been marked as a duplicate of this bug. ***
Comment 9 Robin Stocker CLA 2013-11-22 11:53:55 EST
Is this still a problem with Eclipse 4.3 (Kepler)?
Comment 10 Matthias Sohn CLA 2013-11-26 02:46:14 EST
no, didn't see this for a long time so I think it's fixed
Comment 11 Markus Keller CLA 2014-04-15 13:04:49 EDT
(In reply to Matthias Sohn from comment #10)
> no, didn't see this for a long time so I think it's fixed

Then the resolution should be WORKSFORME, not FIXED.

For me, it's back: Bug 432847.
Comment 12 Vasili Gulevich CLA 2017-11-21 02:25:28 EST
Problem reappeared in Photon milestones.

Test steps:
 - Open Git Repositories view
 - Create any Git repository
 - Open a text editor
 - Select a repository in Git Repositories
 - Remove any selection from Git Repositories (Ctrl+LMB on selected item to remove selection, alternatively, restart Eclipse or reopen view)
 - Change focus to text editor
 - Right-click on repository node in Git Respositories

Expected:
Full repository context menu (items like Commit, Clean, etc)

Actual:
A context menu of a single item:
"Paste Repository Path or URI"

Workaround:
Cancel context menu, right-click on preselected repository. On a second attempt, context menu is complete.
Comment 13 Thomas Wolf CLA 2017-11-21 08:17:23 EST
Last time the cause was deep in platform.ui: bug 432847. I'm not aware of any changes in EGit relating to the repo view menus, and if it doesn't occur in Oxygen or Neon but only in Photon, I'd say it's again a platform.ui problem. Move this bug?
Comment 14 Andrey Loskutov CLA 2017-11-21 08:25:36 EST
(In reply to Vasili Gulevich from comment #12)
> Problem reappeared in Photon milestones.
> 
> Test steps:
>  - Open Git Repositories view
>  - Create any Git repository
>  - Open a text editor
>  - Select a repository in Git Repositories
>  - Remove any selection from Git Repositories (Ctrl+LMB on selected item to
> remove selection, alternatively, restart Eclipse or reopen view)
>  - Change focus to text editor
>  - Right-click on repository node in Git Respositories
> 
> Expected:
> Full repository context menu (items like Commit, Clean, etc)
> 
> Actual:
> A context menu of a single item:
> "Paste Repository Path or URI"
> 
> Workaround:
> Cancel context menu, right-click on preselected repository. On a second
> attempt, context menu is complete.

I can't reproduce on Linux, I20171109-2000 and 4.10 EGit build from 05.11.
Right clicking on an element selects it automatically for me and the menu which is shown has all the items.
Comment 15 Vasili Gulevich CLA 2017-11-22 00:52:32 EST
I've upgraded EGit to 4.10 and was still able to reproduce.

Problem disappears if 

--launcher.GTK_version
2

argument is added to eclipse.ini
Comment 16 Andrey Loskutov CLA 2017-11-22 01:00:22 EST
Which GTK3 version do you have? Also which DE and GTK theme are you using?
Comment 17 Vasili Gulevich CLA 2017-11-22 01:09:00 EST
Environment:

$ dpkg -l libgtk\* |grep ^ii
ii  libgtk-3-0:amd64             3.22.11-1        amd64        GTK+ graphical user interface library
ii  libgtk-3-bin                 3.14.5-1+deb8u1  amd64        programs for the GTK+ graphical user interface library
ii  libgtk-3-common              3.22.11-1        all          common files for the GTK+ graphical user interface library
ii  libgtk2-perl                 2:1.2492-4       amd64        Perl interface to the 2.x series of the Gimp Toolkit library
ii  libgtk2.0-0:amd64            2.24.25-3+deb8u1 amd64        GTK+ graphical user interface library
ii  libgtk2.0-bin                2.24.25-3+deb8u1 amd64        programs for the GTK+ graphical user interface library
ii  libgtk2.0-common             2.24.25-3+deb8u1 all          common files for the GTK+ graphical user interface library
ii  libgtkmm-2.4-1v5:amd64       1:2.24.5-1       amd64        C++ wrappers for GTK+ (shared libraries)
ii  libgtkmm-3.0-1v5:amd64       3.22.0-1         amd64        C++ wrappers for GTK+ (shared libraries)
ii  libgtksourceview2.0-0        2.10.5-2         amd64        shared libraries for the GTK+ syntax highlighting widget
ii  libgtksourceview2.0-common   2.10.5-2         all          common files for the GTK+ syntax highlighting widget


Photon 4.8.0M3 200171102-1036
EGit 4.10.0.201711052015
Desktop: Xfce 4.10 distirbuted by Debian

I'm using default "Xfce" scheme but bug is also reproducible on "Adwaita"
Comment 18 Vasili Gulevich CLA 2017-12-12 05:05:24 EST
I now observe same issue in Photon's Project Explorer.
Lets escalate to Platform UI.
Comment 19 Lars Vogel CLA 2017-12-12 09:11:09 EST
(In reply to Vasili Gulevich from comment #18)
> I now observe same issue in Photon's Project Explorer.
> Lets escalate to Platform UI.

Please describe the issue you see in the project explorer.
Comment 20 Dani Megert CLA 2017-12-19 09:32:43 EST
(In reply to Vasili Gulevich from comment #18)
> I now observe same issue in Photon's Project Explorer.
> Lets escalate to Platform UI.

You don't need to escalate. Just create a new bug report with detailed steps. This one is closed per M3.
Comment 21 Dani Megert CLA 2017-12-19 09:39:24 EST
(In reply to Dani Megert from comment #20)
> This one is closed per M3.

Sorry, closed per 2014-04-15 19:04:49 CEST