Bug 190812 - [KeyBindings] The Ctrl-C Shortcut stops working
Summary: [KeyBindings] The Ctrl-C Shortcut stops working
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-04 09:58 EDT by Dirk Grossmann CLA
Modified: 2019-09-06 15:31 EDT (History)
0 users

See Also:


Attachments
Log files (with tracking options) (5.31 KB, application/zip)
2007-06-05 05:35 EDT, Dirk Grossmann CLA
no flags Details
New log file (including options) (20.10 KB, application/zip)
2007-06-05 10:18 EDT, Dirk Grossmann CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Grossmann CLA 2007-06-04 09:58:24 EDT
Build ID: I20070601-1539

Steps To Reproduce:
During an Eclipse session, Ctrl-C ceases to copy the selected text into the clipboard. I have to restart Eclipse to make this shortcut work again.

Is it due to this exception ?-


!ENTRY org.eclipse.debug.ui 4 0 2007-06-04 13:01:43.599
!MESSAGE Launch shortcut 'org.eclipse.jdt.debug.ui.localJavaShortcut' enablement expression caused exception. Shortcut was removed.
!STACK 1
org.eclipse.core.runtime.CoreException: No property tester contributes a property hasMainType to type class org.eclipse.core.internal.resources.File
	at org.eclipse.core.internal.expressions.TypeExtensionManager.getProperty(TypeExtensionManager.java:109)
	at org.eclipse.core.internal.expressions.TestExpression.evaluate(TestExpression.java:95)
	at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53)
	at org.eclipse.core.internal.expressions.IterateExpression.evaluate(IterateExpression.java:150)
	at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53)
	at org.eclipse.core.internal.expressions.WithExpression.evaluate(WithExpression.java:69)
	at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53)
	at org.eclipse.core.internal.expressions.EnablementExpression.evaluate(EnablementExpression.java:43)
	at org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension.evalEnablementExpression(LaunchShortcutExtension.java:282)
	at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationManager.getApplicableConfigurationTypes(LaunchConfigurationManager.java:714)
	at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationManager.getApplicableLaunchConfigurations(LaunchConfigurationManager.java:747)
	at org.eclipse.debug.internal.ui.contextlaunching.LaunchingResourceManager.getResourceLabel(LaunchingResourceManager.java:303)
	at org.eclipse.debug.internal.ui.contextlaunching.LaunchingResourceManager.computeLabels(LaunchingResourceManager.java:207)
	at org.eclipse.debug.internal.ui.contextlaunching.LaunchingResourceManager$2.run(LaunchingResourceManager.java:125)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
!SUBENTRY 1 org.eclipse.core.expressions 4 201 2007-06-04 13:01:43.599
!MESSAGE No property tester contributes a property hasMainType to type class org.eclipse.core.internal.resources.File


More information:
Comment 1 Paul Webster CLA 2007-06-04 14:15:12 EDT
What view were you copying from?  to?

What perspective are you in? Debug?

If this is easy to reproduce for you, try running with http://wiki.eclipse.org/index.php/Platform_Command_Framework#Tracing_Option and then attach the log.

You want to uncomment the correct handlers.verbose.commandId entry:
org.eclipse.ui/trace/handlers.verbose.commandId=org.eclipse.ui.edit.copy

PW
Comment 2 Dirk Grossmann CLA 2007-06-05 05:34:45 EDT
The error occurs when trying to (Ctrl-C)opy from a JSP file (Java perspective). See the attached log files.
Comment 3 Dirk Grossmann CLA 2007-06-05 05:35:31 EDT
Created attachment 70103 [details]
Log files (with tracking options)
Comment 4 Paul Webster CLA 2007-06-05 07:23:42 EDT
(In reply to comment #3)
> Created an attachment (id=70103) [details]
> Log files (with tracking options)

Thank you for the log files, that's almost the trace file I need :-)

You need to comment out:
org.eclipse.ui/trace/handlers.verbose.commandId=org.eclipse.jdt.ui.navigate.open.type
and uncomment:
#org.eclipse.ui/trace/handlers.verbose.commandId=org.eclipse.ui.edit.copy
in order to see how the copy command got in that state.

After this failure, does CTRL+C just not work at all?  i.e. you can't copy and paste within a java file?  Or is it just within JSP files?

PW
Comment 5 Dirk Grossmann CLA 2007-06-05 10:18:26 EDT
Created attachment 70138 [details]
New log file (including options)

I have included the options file (I hope it is correct now) together with the logs. When the error occurs, Ctrl-C also does not work for Java files. The copy command from the context menu still works, but not the shortcut.
Comment 6 Paul Webster CLA 2007-06-05 10:49:34 EDT
Thank you, that has the information.

What user operations are you performing?  Are you performing your copy/paste in a JSP file, and then opening another and repeating the test?

Are you switching between views and editors?  Are you double-clicking on files, or using a key shortcut to open them?

PW
Comment 7 Dirk Grossmann CLA 2007-06-05 11:00:11 EDT
I have several JSP files open and copy/paste between them (I do not paste text from the same file). For each test, I have opened a new "source" file:

* Open first JSP file using a double-click in the package explorer (Java perspective)
* Open second JSP file (always using a double-click in the package explorer)
* Select+copy text in the first file, paste into second
* If hat worked, opened another JSP file, etc.

Thus, I switch between editors and the "Package Explorer" view (the package explorer is always open, not eclipsed by another view, not minimized, not a fast view).

Sometimes, the first copy fails, sometimes it happens after a few copy/pastes.
Comment 8 Paul Webster CLA 2009-03-02 11:41:09 EST
Updated as per http://wiki.eclipse.org/Platform_UI/Bug_Triage
PW
Comment 9 Eclipse Webmaster CLA 2019-09-06 15:31:47 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.