Community
Participate
Working Groups
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:
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
The error occurs when trying to (Ctrl-C)opy from a JSP file (Java perspective). See the attached log files.
Created attachment 70103 [details] Log files (with tracking options)
(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
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.
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
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.
Updated as per http://wiki.eclipse.org/Platform_UI/Bug_Triage PW
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.