Bug 148081 - [hovering] Hover and F2 do not work for some error messages
Summary: [hovering] Hover and F2 do not work for some error messages
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: 3.2.1   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords: accessibility
Depends on:
Blocks:
 
Reported: 2006-06-21 13:49 EDT by Randy Hudson CLA
Modified: 2006-08-31 04:52 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Randy Hudson CLA 2006-06-21 13:49:04 EDT
create a try block without a catch or finally. There is no squiggly underline on the closing brace, so the error is not easily accessible using F2.

Type "; ff" in a method body somewhere. There *IS* a squiggly underline under the semicolor, but F2 fails there too.
Comment 1 Dani Megert CLA 2006-06-22 03:23:53 EDT
This works for me using 3.2 RC7 and latest 3.3 build (I20060620-1010).

Note: F2 applies if the caret is before or inside the word with the error but not if the caret is just after the word. This counts to the next word/error. It also applies if the full word/error is selected.
Comment 2 Randy Hudson CLA 2006-06-22 11:54:43 EDT
I tried F2 on both sides of the character that was underlined. Could you reproduce in RC5, or do you know which bug fixed after RC5 addressed this issue? Thanks.
Comment 3 Dani Megert CLA 2006-06-22 12:49:47 EDT
Sorry but I don't have time to go back in time ;-) and we don't patch RC5 either. I tried latest 3.2 and 3.3 builds. Maybe it's something special with the error annotation? Please try one of the latest build and if you still see it provide more detailed steps to reproduce the problem.
Comment 4 Randy Hudson CLA 2006-06-22 13:04:30 EDT
Reproduced in Fresh RC7 workspace:
public class Foo {

public static void main(String[] args) {
	try {
		System.out.println("");
	}
}

}
Comment 5 Randy Hudson CLA 2006-06-22 13:05:55 EDT
I could not get F2 to work for this either:

public class Foo {
public static void main(String[] args) {
	try {
		System.out.println(");
	}
}
}
Comment 6 Dani Megert CLA 2006-06-22 13:10:10 EDT
See ;-)

Me neither. It's not only F2, also the hovers aren't showing for me in that example.
Comment 7 Dani Megert CLA 2006-06-26 05:28:17 EDT
Similar problem using 3.1.x but there at least the hover works i.e. one can use hover + F2.

Might be a good 3.2.1 candidate if the fix is simple.
Comment 8 Dani Megert CLA 2006-08-17 05:46:05 EDT
The F2 problem which was already in 3.1 is caused by the fact that the information provider is only registered for some content types (partitions). Hence in things like String partitions it doesn't work.
==> fixed by using the same content types as the hovers i.e. all configured content types.

The hover stopped working due to fixing bug 94705 where we made the Word Finder more strict. Fixed this one too.

Fixed in HEAD and released into R3_2_maintenance.
Comment 9 Benno Baumgartner CLA 2006-08-31 04:52:16 EDT
verified in M20060830-0800