Bug 569112 - Conflicting handlers for org.eclipse.ltk.ui.refactoring commands
Summary: Conflicting handlers for org.eclipse.ltk.ui.refactoring commands
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.15   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-24 05:38 EST by Simeon Andreev CLA
Modified: 2021-01-23 12:14 EST (History)
5 users (show)

See Also:


Attachments
Video showing reproduction of the problem, using the steps from the description. (1.04 MB, video/mp4)
2020-11-24 10:53 EST, Simeon Andreev CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simeon Andreev CLA 2020-11-24 05:38:49 EST
We see the following logged errors:

null
org.eclipse.ui
Error
Tue Nov 24 11:36:42 CET 2020
Conflicting handlers for org.eclipse.ltk.ui.refactor.show.refactoring.history: {ActionDelegateHandlerProxy(null,org.eclipse.jdt.internal.ui.refactoring.actions.ShowRefactoringHistoryAction in org.eclipse.jdt.ui)} vs {ActionDelegateHandlerProxy(null,org.eclipse.ltk.ui.refactoring.actions.ShowRefactoringHistoryAction in org.eclipse.cdt.ui)} in: PartImpl (org.eclipse.e4.ui.compatibility.editor)  removeOnHide org.eclipse.jdt.ui.CompilationUnitEditor (BringToTopOnBuild.java) Context

java.lang.IllegalStateException: Conflicting handlers: {[ActionDelegateHandlerProxy(null,org.eclipse.jdt.internal.ui.refactoring.actions.ShowRefactoringHistoryAction in org.eclipse.jdt.ui),  for 'org.eclipse.ltk.ui.refactor.show.refactoring.history',  in TrimmedWindowImpl (IDEWindow) Context, activeWhen=AndExpression [children=[ActionSetExpression(org.eclipse.jdt.ui.CodingActionSet,org.eclipse.ui.internal.WorkbenchWindow@4769537a), WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@4769537a)]], active=true, sourcePriority=16448, participating=true]} vs {[ActionDelegateHandlerProxy(null,org.eclipse.ltk.ui.refactoring.actions.ShowRefactoringHistoryAction in org.eclipse.cdt.ui),  for 'org.eclipse.ltk.ui.refactor.show.refactoring.history',  in TrimmedWindowImpl (IDEWindow) Context, activeWhen=AndExpression [children=[ActionSetExpression(org.eclipse.cdt.ui.CodingActionSet,org.eclipse.ui.internal.WorkbenchWindow@4769537a), WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@4769537a)]], active=true, sourcePriority=16448, participating=true]} in: PartImpl (org.eclipse.e4.ui.compatibility.editor)  removeOnHide org.eclipse.jdt.ui.CompilationUnitEditor (BringToTopOnBuild.java) Context


null
org.eclipse.ui
Error
Tue Nov 24 11:36:42 CET 2020
Conflicting handlers for org.eclipse.ltk.ui.refactor.create.refactoring.script: {ActionDelegateHandlerProxy(null,org.eclipse.jdt.internal.ui.refactoring.actions.CreateRefactoringScriptAction in org.eclipse.jdt.ui)} vs {ActionDelegateHandlerProxy(null,org.eclipse.ltk.ui.refactoring.actions.CreateRefactoringScriptAction in org.eclipse.cdt.ui)} in: PartImpl (org.eclipse.e4.ui.compatibility.editor)  removeOnHide org.eclipse.jdt.ui.CompilationUnitEditor (BringToTopOnBuild.java) Context

java.lang.IllegalStateException: Conflicting handlers: {[ActionDelegateHandlerProxy(null,org.eclipse.jdt.internal.ui.refactoring.actions.CreateRefactoringScriptAction in org.eclipse.jdt.ui),  for 'org.eclipse.ltk.ui.refactor.create.refactoring.script',  in TrimmedWindowImpl (IDEWindow) Context, activeWhen=AndExpression [children=[ActionSetExpression(org.eclipse.jdt.ui.CodingActionSet,org.eclipse.ui.internal.WorkbenchWindow@4769537a), WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@4769537a)]], active=true, sourcePriority=16448, participating=true]} vs {[ActionDelegateHandlerProxy(null,org.eclipse.ltk.ui.refactoring.actions.CreateRefactoringScriptAction in org.eclipse.cdt.ui),  for 'org.eclipse.ltk.ui.refactor.create.refactoring.script',  in TrimmedWindowImpl (IDEWindow) Context, activeWhen=AndExpression [children=[ActionSetExpression(org.eclipse.cdt.ui.CodingActionSet,org.eclipse.ui.internal.WorkbenchWindow@4769537a), WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@4769537a)]], active=true, sourcePriority=16448, participating=true]} in: PartImpl (org.eclipse.e4.ui.compatibility.editor)  removeOnHide org.eclipse.jdt.ui.CompilationUnitEditor (BringToTopOnBuild.java) Context


null
org.eclipse.ui
Error
Tue Nov 24 11:36:42 CET 2020
Conflicting handlers for org.eclipse.ltk.ui.refactor.apply.refactoring.script: {ActionDelegateHandlerProxy(null,org.eclipse.jdt.internal.ui.refactoring.actions.ApplyRefactoringScriptAction in org.eclipse.jdt.ui)} vs {ActionDelegateHandlerProxy(null,org.eclipse.ltk.ui.refactoring.actions.ApplyRefactoringScriptAction in org.eclipse.cdt.ui)} in: PartImpl (org.eclipse.e4.ui.compatibility.editor)  removeOnHide org.eclipse.jdt.ui.CompilationUnitEditor (BringToTopOnBuild.java) Context

java.lang.IllegalStateException: Conflicting handlers: {[ActionDelegateHandlerProxy(null,org.eclipse.jdt.internal.ui.refactoring.actions.ApplyRefactoringScriptAction in org.eclipse.jdt.ui),  for 'org.eclipse.ltk.ui.refactor.apply.refactoring.script',  in TrimmedWindowImpl (IDEWindow) Context, activeWhen=AndExpression [children=[ActionSetExpression(org.eclipse.jdt.ui.CodingActionSet,org.eclipse.ui.internal.WorkbenchWindow@4769537a), WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@4769537a)]], active=true, sourcePriority=16448, participating=true]} vs {[ActionDelegateHandlerProxy(null,org.eclipse.ltk.ui.refactoring.actions.ApplyRefactoringScriptAction in org.eclipse.cdt.ui),  for 'org.eclipse.ltk.ui.refactor.apply.refactoring.script',  in TrimmedWindowImpl (IDEWindow) Context, activeWhen=AndExpression [children=[ActionSetExpression(org.eclipse.cdt.ui.CodingActionSet,org.eclipse.ui.internal.WorkbenchWindow@4769537a), WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@4769537a)]], active=true, sourcePriority=16448, participating=true]} in: PartImpl (org.eclipse.e4.ui.compatibility.editor)  removeOnHide org.eclipse.jdt.ui.CompilationUnitEditor (BringToTopOnBuild.java) Context

This can be reproduced by:

1. Install CDT into an Eclipse SDK.
2. Open a Java source.
3. Refactor rename a method.
4. Open the C/C++ perspective.
5. Observe the key binding conflict errors.
Comment 1 Jonah Graham CLA 2020-11-24 10:19:38 EST
(In reply to Simeon Andreev from comment #0)
> This can be reproduced by:

I haven't been able to reproduce this. I tried a couple of different ways. The one thing I have not tried is creating a project with both Java and C natures at the same time. Is that possible problem?

Do you understand the problem well enough to provide a patch that may fix it?

> 5. Observe the key binding conflict errors.
I believe the error message is not a key binding conflict?
Comment 2 Simeon Andreev CLA 2020-11-24 10:53:53 EST
Created attachment 284874 [details]
Video showing reproduction of the problem, using the steps from the description.

The video is after starting Eclipse in a new workspace.

Probably depends on what CDT bits are installed; I downloaded an Eclipse SDK and installed the usual plug-ins I use plus CDT on top to work on CDT issues.

Here is the list of CDT plug-ins (seeing that the conflict is between JDT and CDT, I assume installing CDT in an Eclipse SDK is enough):

org.eclipse.cdt.autotools.core.source_2.1.0.202008310002.jar
org.eclipse.cdt.autotools.core_2.1.0.202008310002.jar
org.eclipse.cdt.autotools.docs_2.0.500.202008310002.jar
org.eclipse.cdt.autotools.ui.source_2.1.0.202008310002.jar
org.eclipse.cdt.autotools.ui_2.1.0.202008310002.jar
org.eclipse.cdt.build.crossgcc.source_1.2.0.202008310002.jar
org.eclipse.cdt.build.crossgcc_1.2.0.202008310002.jar
org.eclipse.cdt.build.gcc.core.source_1.1.0.202008310002.jar
org.eclipse.cdt.build.gcc.core_1.1.0.202008310002.jar
org.eclipse.cdt.build.gcc.ui.source_1.1.0.202008310002.jar
org.eclipse.cdt.build.gcc.ui_1.1.0.202008310002.jar
org.eclipse.cdt.cmake.core.source_1.3.0.202009011824.jar
org.eclipse.cdt.cmake.core_1.3.0.202009011824.jar
org.eclipse.cdt.cmake.is.arm.source_1.0.0.202008310315.jar
org.eclipse.cdt.cmake.is.arm_1.0.0.202008310315.jar
org.eclipse.cdt.cmake.is.core.doc.source_1.0.0.202008310315.jar
org.eclipse.cdt.cmake.is.core.doc_1.0.0.202008310315.jar
org.eclipse.cdt.cmake.is.core.source_1.0.0.202008310315.jar
org.eclipse.cdt.cmake.is.core.ui.source_1.0.0.202008310315.jar
org.eclipse.cdt.cmake.is.core.ui_1.0.0.202008310315.jar
org.eclipse.cdt.cmake.is.core_1.0.0.202008310315.jar
org.eclipse.cdt.cmake.is.hpenonstop.source_1.0.0.202008310315.jar
org.eclipse.cdt.cmake.is.hpenonstop_1.0.0.202008310315.jar
org.eclipse.cdt.cmake.is.intel.source_1.0.0.202008310315.jar
org.eclipse.cdt.cmake.is.intel_1.0.0.202008310315.jar
org.eclipse.cdt.cmake.is.microsoft.source_1.0.0.202008310315.jar
org.eclipse.cdt.cmake.is.microsoft_1.0.0.202008310315.jar
org.eclipse.cdt.cmake.is.nvidia.source_1.0.0.202008310315.jar
org.eclipse.cdt.cmake.is.nvidia_1.0.0.202008310315.jar
org.eclipse.cdt.cmake.ui.source_1.3.0.202008310002.jar
org.eclipse.cdt.cmake.ui_1.3.0.202008310002.jar
org.eclipse.cdt.codan.checkers.source_3.4.0.202008310002.jar
org.eclipse.cdt.codan.checkers.ui.source_3.3.0.202008310002.jar
org.eclipse.cdt.codan.checkers.ui_3.3.0.202008310002.jar
org.eclipse.cdt.codan.checkers_3.4.0.202008310002.jar
org.eclipse.cdt.codan.core.cxx.source_3.5.0.202008310002.jar
org.eclipse.cdt.codan.core.cxx_3.5.0.202008310002.jar
org.eclipse.cdt.codan.core.source_4.1.0.202008310002.jar
org.eclipse.cdt.codan.core_4.1.0.202008310002.jar                                                                                                                                          
org.eclipse.cdt.codan.ui.cxx.source_3.6.0.202008310002.jar                                                                                                                                 
org.eclipse.cdt.codan.ui.cxx_3.6.0.202008310002.jar                                                                                                                                        
org.eclipse.cdt.codan.ui.source_3.4.0.202008310002.jar                                                                                                                                     
org.eclipse.cdt.codan.ui_3.4.0.202008310002.jar                                                                                                                                            
org.eclipse.cdt.core.autotools.core.source_1.2.0.202008310002.jar                                                                                                                          
org.eclipse.cdt.core.autotools.core_1.2.0.202008310002.jar                                                                                                                                 
org.eclipse.cdt.core.autotools.ui.source_1.1.0.202008310002.jar                                                                                                                            
org.eclipse.cdt.core.autotools.ui_1.1.0.202008310002.jar                                                                                                                                   
org.eclipse.cdt.core.linux.source_6.0.0.202008310002.jar                                                                                                                                   
org.eclipse.cdt.core.linux.x86_64_6.0.0.202008310002.jar                                                                                                                                   
org.eclipse.cdt.core.linux_6.0.0.202008310002.jar                                                                                                                                          
org.eclipse.cdt.core.native.source_6.0.0.202009030027.jar                                                                                                                                  
org.eclipse.cdt.core.native_6.0.0.202009030027.jar                                                                                                                                         
org.eclipse.cdt.core.source_7.0.1.202010091427.jar                                                                                                                                         
org.eclipse.cdt.core_7.0.1.202010091427.jar                                                                                                                                                
org.eclipse.cdt.debug.application.doc_1.1.600.202008310002.jar                                                                                                                             
org.eclipse.cdt.debug.application.source_1.2.1.202010061707.jar
org.eclipse.cdt.debug.core.memory.source_0.1.0.202008310315.jar
org.eclipse.cdt.debug.core.memory_0.1.0.202008310315.jar
org.eclipse.cdt.debug.core.source_8.5.0.202008310002.jar
org.eclipse.cdt.debug.core_8.5.0.202008310002.jar
org.eclipse.cdt.debug.dap.gdbjtag.source_1.101.0.202008310315.jar
org.eclipse.cdt.debug.dap.gdbjtag_1.101.0.202008310315.jar
org.eclipse.cdt.debug.dap.source_1.2.0.202008310315.jar
org.eclipse.cdt.debug.gdbjtag.core.source_10.0.0.202008310002.jar
org.eclipse.cdt.debug.gdbjtag.core_10.0.0.202008310002.jar
org.eclipse.cdt.debug.gdbjtag.ui.source_9.0.0.202008310002.jar
org.eclipse.cdt.debug.gdbjtag.ui_9.0.0.202008310002.jar
org.eclipse.cdt.debug.gdbjtag_7.0.301.202010061707.jar
org.eclipse.cdt.debug.ui.memory.floatingpoint.source_1.1.0.202008310002.jar
org.eclipse.cdt.debug.ui.memory.floatingpoint_1.1.0.202008310002.jar
org.eclipse.cdt.debug.ui.memory.memorybrowser.source_1.4.0.202008310002.jar
org.eclipse.cdt.debug.ui.memory.memorybrowser_1.4.0.202008310002.jar
org.eclipse.cdt.debug.ui.memory.search.source_1.4.0.202008310002.jar
org.eclipse.cdt.debug.ui.memory.search_1.4.0.202008310002.jar
org.eclipse.cdt.debug.ui.memory.traditional.source_1.6.0.202008310002.jar
org.eclipse.cdt.debug.ui.memory.traditional_1.6.0.202008310002.jar
org.eclipse.cdt.debug.ui.memory.transport.source_2.2.0.202008310002.jar
org.eclipse.cdt.debug.ui.memory.transport_2.2.0.202008310002.jar
org.eclipse.cdt.debug.ui.source_8.4.0.202008310002.jar
org.eclipse.cdt.debug.ui_8.4.0.202008310002.jar
org.eclipse.cdt.doc.isv_5.4.501.202010091427.jar
org.eclipse.cdt.doc.user_5.4.500.202008310002.jar
org.eclipse.cdt.docker.launcher.source_1.3.0.202009070147.jar
org.eclipse.cdt.docker.launcher_1.3.0.202009070147.jar
org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui.source_1.2.0.202008310002.jar
org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui_1.2.0.202008310002.jar
org.eclipse.cdt.dsf.gdb.source_6.0.0.202008310002.jar
org.eclipse.cdt.dsf.gdb.ui.source_2.7.0.202008310002.jar
org.eclipse.cdt.dsf.gdb.ui_2.7.0.202008310002.jar
org.eclipse.cdt.dsf.gdb_6.0.0.202008310002.jar
org.eclipse.cdt.dsf.source_2.9.0.202008310002.jar
org.eclipse.cdt.dsf.ui.source_2.6.0.202008310002.jar
org.eclipse.cdt.dsf.ui_2.6.0.202008310002.jar
org.eclipse.cdt.dsf_2.9.0.202008310002.jar
org.eclipse.cdt.examples.dsf.pda.source_2.2.0.202009010132.jar
org.eclipse.cdt.examples.dsf.pda.ui.source_2.2.0.202008310002.jar
org.eclipse.cdt.examples.dsf.pda.ui_2.2.0.202008310002.jar
org.eclipse.cdt.examples.dsf.pda_2.2.0.202009010132.jar
org.eclipse.cdt.examples.dsf.source_2.3.0.202008310002.jar
org.eclipse.cdt.examples.dsf_2.3.0.202008310002.jar
org.eclipse.cdt.flatpak.launcher.source_1.0.1.202010061721.jar
org.eclipse.cdt.flatpak.launcher_1.0.1.202010061721.jar
org.eclipse.cdt.gdb.source_7.1.0.202008310002.jar
org.eclipse.cdt.gdb.ui.source_7.1.0.202008310002.jar
org.eclipse.cdt.gdb.ui_7.1.0.202008310002.jar
org.eclipse.cdt.gdb_7.1.0.202008310002.jar
org.eclipse.cdt.launch.remote.source_2.6.0.202008310002.jar
org.eclipse.cdt.launch.remote_2.6.0.202008310002.jar
org.eclipse.cdt.launch.serial.core.source_1.1.0.202008310002.jar
org.eclipse.cdt.launch.serial.core_1.1.0.202008310002.jar
org.eclipse.cdt.launch.serial.ui.source_1.1.0.202008310002.jar
org.eclipse.cdt.launch.serial.ui_1.1.0.202008310002.jar
org.eclipse.cdt.launch.source_10.0.0.202009010132.jar
org.eclipse.cdt.launch_10.0.0.202009010132.jar
org.eclipse.cdt.llvm.dsf.lldb.core.source_1.101.0.202008310002.jar
org.eclipse.cdt.llvm.dsf.lldb.core_1.101.0.202008310002.jar
org.eclipse.cdt.llvm.dsf.lldb.ui.source_1.1.0.202008310002.jar
org.eclipse.cdt.llvm.dsf.lldb.ui_1.1.0.202008310002.jar
org.eclipse.cdt.lsp.clangd.source_0.1.0.202008310315.jar
org.eclipse.cdt.lsp.clangd_0.1.0.202008310315.jar
org.eclipse.cdt.lsp.core.source_1.1.100.202009021744.jar
org.eclipse.cdt.lsp.core_1.1.100.202009021744.jar
org.eclipse.cdt.lsp.ui.source_0.1.100.202009021744.jar
org.eclipse.cdt.lsp.ui_0.1.100.202009021744.jar
org.eclipse.cdt.make.core.source_7.5.0.202009040332.jar
org.eclipse.cdt.make.core_7.5.0.202009040332.jar
org.eclipse.cdt.make.ui.source_8.0.0.202008310002.jar
org.eclipse.cdt.make.ui_8.0.0.202008310002.jar
org.eclipse.cdt.managedbuilder.core.source_9.0.0.202009010132.jar
org.eclipse.cdt.managedbuilder.core_9.0.0.202009010132.jar
org.eclipse.cdt.managedbuilder.gnu.ui.source_8.4.0.202008310002.jar
org.eclipse.cdt.managedbuilder.gnu.ui_8.4.0.202008310002.jar
org.eclipse.cdt.managedbuilder.llvm.ui.source_1.3.0.202008242150.jar
org.eclipse.cdt.managedbuilder.llvm.ui_1.3.0.202008242150.jar
org.eclipse.cdt.managedbuilder.ui.source_9.2.0.202008310002.jar
org.eclipse.cdt.managedbuilder.ui_9.2.0.202008310002.jar
org.eclipse.cdt.meson.core.source_1.1.0.202008310002.jar
org.eclipse.cdt.meson.core_1.1.0.202008310002.jar
org.eclipse.cdt.meson.docs_1.0.500.202008310002.jar
org.eclipse.cdt.meson.ui.editor.source_1.1.0.202008310315.jar
org.eclipse.cdt.meson.ui.editor_1.1.0.202008310315.jar
org.eclipse.cdt.meson.ui.source_1.1.0.202008310002.jar
org.eclipse.cdt.meson.ui_1.1.0.202008310002.jar
org.eclipse.cdt.msw.build.source_1.2.0.202008310002.jar
org.eclipse.cdt.msw.build_1.2.0.202008310002.jar
org.eclipse.cdt.native.serial.source_1.2.0.202009030027.jar
org.eclipse.cdt.native.serial_1.2.0.202009030027.jar
org.eclipse.cdt.platform.branding.source_10.0.1.202009251553.jar
org.eclipse.cdt.platform.branding_10.0.1.202009251553.jar
org.eclipse.cdt.qt.core.source_2.3.1.202010061707.jar
org.eclipse.cdt.qt.core_2.3.1.202010061707.jar
org.eclipse.cdt.qt.ui.source_2.1.1.202010061707.jar
org.eclipse.cdt.qt.ui_2.1.1.202010061707.jar
org.eclipse.cdt.remote.core.source_1.1.0.202008310002.jar
org.eclipse.cdt.remote.core_1.1.0.202008310002.jar
org.eclipse.cdt.sdk_10.0.1.202009251553.jar
org.eclipse.cdt.testsrunner.boost.source_7.1.0.202008310002.jar
org.eclipse.cdt.testsrunner.boost_7.1.0.202008310002.jar
org.eclipse.cdt.testsrunner.gtest.source_7.1.0.202008310002.jar
org.eclipse.cdt.testsrunner.gtest_7.1.0.202008310002.jar
org.eclipse.cdt.testsrunner.qttest.source_7.1.0.202008310002.jar
org.eclipse.cdt.testsrunner.qttest_7.1.0.202008310002.jar
org.eclipse.cdt.testsrunner.source_8.2.0.202008310002.jar
org.eclipse.cdt.testsrunner.tap.source_1.1.0.202008310002.jar
org.eclipse.cdt.testsrunner.tap_1.1.0.202008310002.jar
org.eclipse.cdt.testsrunner_8.2.0.202008310002.jar
org.eclipse.cdt.ui.source_7.0.1.202010061707.jar
org.eclipse.cdt.ui_7.0.1.202010061707.jar
org.eclipse.cdt.util.source_5.0.300.202008310002.jar
org.eclipse.cdt.util_5.0.300.202008310002.jar
org.eclipse.cdt.visualizer.core.source_1.1.0.202008310002.jar
org.eclipse.cdt.visualizer.core_1.1.0.202008310002.jar
org.eclipse.cdt.visualizer.ui.source_1.4.0.202008310002.jar
org.eclipse.cdt.visualizer.ui_1.4.0.202008310002.jar
org.eclipse.cdt_10.0.1.202009251553.jar
org.eclipse.tm.terminal.connector.cdtserial.source_4.7.100.202008310315.jar
org.eclipse.tm.terminal.connector.cdtserial_4.7.100.202008310315.jar
Comment 3 Jonah Graham CLA 2020-11-24 11:03:03 EST
The command definitions are in main CDT UI bundle and what I did was very similar. The video is great, so I will try again to see if I get a different result.

BTW I just noticed your "Version" is 9.6.0. Is this all with 2018-12 versions of everything? I initially tried with 4.18 M3 and cdt master (aka 2020-12 versions).
Comment 4 Simeon Andreev CLA 2020-11-24 11:11:23 EST
The first time I saw the problem it was 9.6, though that was a while ago. The CDT I have installed now is:

C/C++ Development Tools
Version: 10.0.1.202010091427
Build id: 20201009-1616

On top of:

Eclipse SDK
Version: 2020-12 (4.18)
Build id: I20201103-0030
Comment 5 Jonah Graham CLA 2020-11-24 11:26:06 EST
(In reply to Simeon Andreev from comment #4)
> Build id: I20201103-0030

Since this is not available anymore I tried with 4.18 M3 and installed everything in the CDT 10.0 release repo and I got the failure.
Comment 6 Jonah Graham CLA 2020-11-24 11:40:37 EST
I have tried a few times and the only way I can reproduce is with CDT's LSP4E support installed. i.e. these bundles:

> org.eclipse.cdt.lsp.clangd.source_0.1.0.202008310315.jar
> org.eclipse.cdt.lsp.clangd_0.1.0.202008310315.jar
> org.eclipse.cdt.lsp.core.source_1.1.100.202009021744.jar
> org.eclipse.cdt.lsp.core_1.1.100.202009021744.jar
> org.eclipse.cdt.lsp.ui.source_0.1.100.202009021744.jar
> org.eclipse.cdt.lsp.ui_0.1.100.202009021744.jar

Regardless, I can't reproduce except from a fresh workspace.
Comment 7 Simeon Andreev CLA 2020-12-07 09:40:39 EST
I think the error is logged sporadically, as I can't seem to reproduce it always. I don't know how that makes sense though, other than its some platform bug.

Anyway one of the actions for which the error complains:

Definition in CDT UI, action set org.eclipse.cdt.ui.CodingActionSet:

         <action
               class="org.eclipse.ltk.ui.refactoring.actions.ApplyRefactoringScriptAction"
               definitionId="org.eclipse.ltk.ui.refactor.apply.refactoring.script"
               id="org.eclipse.cdt.ui.actions.applyRefactoringScript"
               label="%applyScriptAction.label"
               menubarPath="org.eclipse.jdt.ui.refactoring.menu/historyGroup"
               retarget="false">
         </action>

Definition in JDT UI, action set org.eclipse.jdt.ui.CodingActionSet:

        <action
               class="org.eclipse.jdt.internal.ui.refactoring.actions.ApplyRefactoringScriptAction"
               definitionId="org.eclipse.ltk.ui.refactor.apply.refactoring.script"
               id="org.eclipse.ltk.ui.actions.ApplyRefactoringStript"
               label="%Refactoring.applyScript.label"
               menubarPath="org.eclipse.jdt.ui.refactoring.menu/scriptGroup"/>

I find no other matches for 'org.eclipse.ltk.ui.refactor.apply.refactoring.script' in the CDT repository.
Comment 8 Simeon Andreev CLA 2020-12-07 09:55:15 EST
Actually it seems the conflict is found when I try to open the Error Log view, i.e. when I invoke quick access *after* the reproduction steps.
Comment 9 Simeon Andreev CLA 2020-12-08 07:18:53 EST
Andrey any platform contributor that is familiar with actions and commands, that could give us hints here?

As far as I can tell, JDT UI and CDT UI define 2 actions that handle the same command, resulting in the conflict (CDT seems to "re-use" the JDT menu for its action). I have no idea how the conflict is supposed to be resolved.

I'm not seeing enablement/activation expressions that can be specified for either action:

https://help.eclipse.org/2020-09/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fextension-points%2Forg_eclipse_ui_actionSets.html
(see elements for "action")
Comment 10 Andrey Loskutov CLA 2021-01-20 12:19:04 EST
(In reply to Simeon Andreev from comment #9)
> Andrey any platform contributor that is familiar with actions and commands,
> that could give us hints here?
> 
> As far as I can tell, JDT UI and CDT UI define 2 actions that handle the
> same command, resulting in the conflict (CDT seems to "re-use" the JDT menu
> for its action). I have no idea how the conflict is supposed to be resolved.
> 
> I'm not seeing enablement/activation expressions that can be specified for
> either action:
> 
> https://help.eclipse.org/2020-09/index.jsp?topic=%2Forg.eclipse.platform.doc.
> isv%2Freference%2Fextension-points%2Forg_eclipse_ui_actionSets.html
> (see elements for "action")

I would say let's move to platform and ask if someone has an idea. 
For me it looks like perspective switch confuses commands/handlers, probably some activation / deactivation code is running in "wrong" order.
Comment 11 Rolf Theunissen CLA 2021-01-23 12:14:12 EST
There have been more reports of conflicting handlers, especially while the scope is switched, e.g. switching a tab or a perspective. These conflicts are then intermittent and should go away when the context is stable again.
There are also some inconsistencies between the context and the active part, when switching perspectives, then can add to this problem.

I had made an attempt in Bug 549432 to reduce the number of intermittent handlers. However that patch caused a lot of regressions or triggered other bugs.