Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 383348 - "Plug-in 'org.eclipse.cdt.ui' contributed an invalid Menu Extension" errors
Summary: "Plug-in 'org.eclipse.cdt.ui' contributed an invalid Menu Extension" errors
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 8.1.0   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 10.2.0   Edit
Assignee: Simeon Andreev CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
: 442787 445116 520208 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-06-22 15:26 EDT by Yevgeny Shifrin CLA
Modified: 2021-01-05 20:29 EST (History)
9 users (show)

See Also:


Attachments
Screenshot from CDT perspective main menu, Project, with invalid contributions. (68.16 KB, image/png)
2020-11-25 07:11 EST, Simeon Andreev CLA
no flags Details
Screenshot from CDT perspective main menu, Project, with fixed contribution menu paths. (68.31 KB, image/png)
2020-11-25 07:16 EST, Simeon Andreev CLA
no flags Details
"Missing" entries in current CDT (46.76 KB, image/png)
2020-11-25 07:49 EST, Andrey Loskutov CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yevgeny Shifrin CLA 2012-06-22 15:26:34 EDT
Build Identifier: I20120531-1500

Eclipse JUNO RC3


!SESSION 2012-06-22 22:20:08.587 -----------------------------------------------
eclipse.buildId=I20120531-1500
java.version=1.6.0_31
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.cpp.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.cpp.product

!ENTRY org.eclipse.ui 4 4 2012-06-22 22:20:19.788
!MESSAGE Plug-in 'org.eclipse.cdt.ui' contributed an invalid Menu Extension (Path: 'project/org.eclipse.cdt.ui.prjmenu' is invalid): org.eclipse.cdt.ui.manageConfigsAction2

!ENTRY org.eclipse.ui 4 4 2012-06-22 22:20:19.793
!MESSAGE Plug-in 'org.eclipse.cdt.ui' contributed an invalid Menu Extension (Path: 'project/org.eclipse.cdt.ui.prjmenu' is invalid): org.eclipse.cdt.ui.buildConfigMenuAction

!ENTRY org.eclipse.ui 4 4 2012-06-22 22:20:19.794
!MESSAGE Plug-in 'org.eclipse.cdt.ui' contributed an invalid Menu Extension (Path: 'project/org.eclipse.cdt.ui.prjmenu' is invalid): org.eclipse.cdt.ui.wsselection


Reproducible: Couldn't Reproduce
Comment 1 Thomas Bahls CLA 2012-07-02 11:26:11 EDT
Saw this same issue with Juno CDT release running on Ubuntu 10.4 (lucid) after upgrading from Indigo. Also, the right-click project context menu is now missing the 'Team' item on 'C' projects that were created from a CVS repository. This behavior is reproducible in the workspace upgraded from Indigo as well as with a fresh Juno workspace and newly-created 'C' project from CVS.

A quick test running Juno CDT release on Ubuntu 12.4 (precise) did *not* exhibit this error message, and the right-click project context menu contains a 'Team' sub-menu as expected. This test was performed only against a small test CVS repository.
Comment 2 Nobody - feel free to take it CLA 2013-08-01 18:27:24 EDT
Perhaps this is a platform bug. The messages occur when you open the Customize Perspectives dialog.
Comment 3 Jonah Graham CLA 2017-07-27 05:31:23 EDT
This bug has been there a while, not sure of the effect.
Comment 4 Jonah Graham CLA 2017-07-27 05:31:34 EDT
*** Bug 442787 has been marked as a duplicate of this bug. ***
Comment 5 Jonah Graham CLA 2017-07-27 05:31:37 EDT
*** Bug 445116 has been marked as a duplicate of this bug. ***
Comment 6 Jonah Graham CLA 2017-07-27 05:31:43 EDT
*** Bug 520208 has been marked as a duplicate of this bug. ***
Comment 7 Jonah Graham CLA 2017-07-27 05:33:50 EDT
(In reply to Jonah Graham from comment #5)
> *** Bug 445116 has been marked as a duplicate of this bug. ***

Bug 445116 Comment 0 has a stack trace that may be useful?
Comment 8 Jonah Graham CLA 2017-07-27 05:37:19 EDT
Can't reproduce at start-up. To reproduce:

1) Clean/New Eclipse workspace
2) Open Debug Perspective
3) Window -> Perspective -> Customize Perspective

and you get this output:


!ENTRY org.eclipse.ui 4 4 2017-07-27 10:37:00.946
!MESSAGE Plug-in 'org.eclipse.cdt.ui' contributed an invalid Menu Extension (Path: 'project/org.eclipse.cdt.ui.prjmenu' is invalid): org.eclipse.cdt.ui.manageConfigsAction2

!ENTRY org.eclipse.ui 4 4 2017-07-27 10:37:00.950
!MESSAGE Plug-in 'org.eclipse.cdt.ui' contributed an invalid Menu Extension (Path: 'project/org.eclipse.cdt.ui.prjmenu' is invalid): org.eclipse.cdt.ui.buildConfigMenuAction

!ENTRY org.eclipse.ui 4 4 2017-07-27 10:37:00.950
!MESSAGE Plug-in 'org.eclipse.cdt.ui' contributed an invalid Menu Extension (Path: 'project/org.eclipse.cdt.ui.prjmenu' is invalid): org.eclipse.cdt.ui.wsselection
Comment 9 Pierre-Yves Bigourdan CLA 2019-09-26 04:51:58 EDT
I'm able to reproduce this by simply selecting "Customize..." in the default perspective. Using the Eclipse IDE for Java Developers 2019-09.
Comment 10 Simeon Andreev CLA 2020-11-25 07:11:10 EST
Created attachment 284883 [details]
Screenshot from CDT perspective main menu, Project, with invalid contributions.
Comment 11 Eclipse Genie CLA 2020-11-25 07:15:05 EST
New Gerrit change created: https://git.eclipse.org/r/c/cdt/org.eclipse.cdt/+/172815
Comment 12 Simeon Andreev CLA 2020-11-25 07:16:54 EST
Created attachment 284884 [details]
Screenshot from CDT perspective main menu, Project, with fixed contribution menu paths.

As is, the 3 invalid contributions are not visible under the main menu, Project, when in the C/C++ perspective.

The contributions are visible (and hopefully placed correctly) with patch set 1 from this change: https://git.eclipse.org/r/c/cdt/org.eclipse.cdt/+/172815
Comment 13 Andrey Loskutov CLA 2020-11-25 07:49:41 EST
Created attachment 284886 [details]
"Missing" entries in current CDT

(In reply to Simeon Andreev from comment #12)
> The contributions are visible (and hopefully placed correctly) with patch
> set 1 from this change:
> https://git.eclipse.org/r/c/cdt/org.eclipse.cdt/+/172815

I'm really not sure what was intended.
I can see "missing" menus here: Project -> Build Configurations.
Comment 14 Simeon Andreev CLA 2020-11-25 08:01:53 EST
(In reply to Andrey Loskutov from comment #13)
> I'm really not sure what was intended.
> I can see "missing" menus here: Project -> Build Configurations.

I didn't notice the entries in the submenu.

From the slashes in the current code I expect the actions should be in submenus, but I'm not seeing submenus with the respective names?

The menu contribution itself is:

      <menuContribution
            locationURI="menu:project?after=build">
         <menu
               id="org.eclipse.cdt.ui.prjmenu"
               label="%Configurations.menu">
            <separator name="manage" visible="false"/>
            <separator name="sep1" visible="true"/>
            <separator name="wrksets" visible="false"/>
         </menu>
      </menuContribution>
Comment 15 Andrey Loskutov CLA 2020-11-25 08:31:05 EST
(In reply to Simeon Andreev from comment #14)
> (In reply to Andrey Loskutov from comment #13)
> From the slashes in the current code I expect the actions should be in
> submenus, but I'm not seeing submenus with the respective names?



> The menu contribution itself is:
> 
>       <menuContribution
>             locationURI="menu:project?after=build">
>          <menu
>                id="org.eclipse.cdt.ui.prjmenu"

I'm not a real menu expert, but I guess we have a mix of "new" menuContribution's and "old" action sets that causes the problem here.

The org.eclipse.cdt.ui.prjmenu is contributed via menuContribution and the three "bad" actions via actionSet contribution.
Comment 16 Eclipse Genie CLA 2020-11-30 09:10:44 EST
New Gerrit change created: https://git.eclipse.org/r/c/cdt/org.eclipse.cdt/+/173016
Comment 17 Jonah Graham CLA 2021-01-05 20:29:37 EST
Thanks Simeon for tackling this!