Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Duplicate
Assignee
Kirill Kalishev
Subsystem
Code Navigation
Affected versions
98.117, 98.187
Fixed in build
No Fixed in build
  • Created by   Bjørn T Johansen
    19 months ago (21 Oct 2010 18:23)
  • Updated by   Mark Rawling
    3 months ago (09 Feb 2012 11:31)
 
IDEA-60176 Bug when using CTRL-N in the latest EAP (build IU-98.187)
1
Issue is visible to: All Users
  The issue is visible to the selected user group only
When I use CTRL-N to search for a class and I have written enough characters that there is only one class left, the dialog box closes before I can choose the class...
This does not happend all the time but often.... Not sure what's different when it happends contra when it not happends...


Regards,

BTJ
Comments (40)
 
History
 
Linked Issues (?)
 
Bjørn T Johansen
  Bjørn T Johansen
21 Oct 2010 18:29
19 months ago
Hmmm... It also happends when there are more than 1 class left, problem finding a pattern.....
Dmitry Jemerov
  Dmitry Jemerov
08 Nov 2010 16:05
18 months ago
Are there any exceptions in idea.log?
Bjørn T Johansen
  Bjørn T Johansen
09 Nov 2010 13:43
18 months ago
Nope, nothing in the log file... But I can provoke it, just once, by clicking the Project pane so it has focus and then pressing Ctrl-N..
Bjørn T Johansen
  Bjørn T Johansen
10 Nov 2010 15:02
18 months ago
Well, I have now done two things... Upgraded to build 98.311 and switched from JDK 32 bits to JDK 64 bits and I haven't yet bumped into this problem... Not sure if there is something you have done in the latest build or running 64 bits but I guess somehting has been done in the latest build....
Bjørn T Johansen
  Bjørn T Johansen
12 Nov 2010 16:47
18 months ago
Hmmmm... And now it happend again.... And still no log...
Bjørn T Johansen
  Bjørn T Johansen
17 Nov 2010 13:20
18 months ago
Still the same in 98.382... Please find a fix for this, this is really annoying....
BTW, I am using Linux if this might be OS specific...
Bjørn T Johansen
  Bjørn T Johansen
18 Nov 2010 12:12
18 months ago
Think I've had a breakthrough... :)
I always enable "Focus follow mouse" and it seems that this is the problem... If I enable "Click to focus", I don't get this error anymore, it seems... So I guess the reason it sometimes works ok, is that the mouse is positioned in the right place for it to work...
But this is new, never had such a problem with earlier versions of IDEA... And I don't want to enable "Click to focus" on my system to be able to use IDEA....
Bjørn T Johansen
  Bjørn T Johansen
19 Jan 2011 14:50
16 months ago
Can you please fix this.... Using IDEA 10 is not really "Development with pleasure" anymore, this bug is really annoying!
Alexander Chernikov
  Alexander Chernikov
27 Jan 2012 22:44
3 months ago
112.618.
Related Changes
Resolved Date
3 months ago (27 Jan 2012 22:44)
State
SubmittedCan't Reproduce
Bjørn T Johansen
  Bjørn T Johansen
29 Jan 2012 15:54
3 months ago
Try running Linux and XFCE and enable Focus follows mouse, and you will see how annoying this is!!
Bjørn T Johansen
  Bjørn T Johansen
30 Jan 2012 17:33
3 months ago
See you have marked it as duplicate and I see there that it proposed a solution changing a setting... While that works (as in not closing the dialog), it is not really a solution... .What I don't understand is why this doesn't work anymore... Never had this problem with IDEA 9 and earlier, what have you changed?? And can you change back?
Dmitry Jemerov
  Dmitry Jemerov
30 Jan 2012 20:45
3 months ago
We have made many changes to popup implementation, mostly having to do with lightweight versus heavyweight popups. No, we cannot change it back.
Bjørn T Johansen
  Bjørn T Johansen
31 Jan 2012 00:59
3 months ago
Hmmm... Don't you change to improve things and not to go backwards?
Dmitry Jemerov
  Dmitry Jemerov
31 Jan 2012 14:04
3 months ago
Yes, we generally do. But if a change brings many improvements and one regression, it's still better to keep the change and not to roll it back.
Bjørn T Johansen
  Bjørn T Johansen
31 Jan 2012 14:42
3 months ago
Yes, but my problem is I don't see any improvements; I only keep getting this really annoying dialog close thing which keeps me from developing with pleasure..
But I see that I only have to learn to live with it...
Sebastian Gockel
  Sebastian Gockel
31 Jan 2012 16:15
3 months ago
Unfortunately the provided fix (Deactivate setting: "Hide navigation popup on focus lost") doesn't really improve the behaviour.
Tested with EAP build 111.255 using Windows 7 and XMouse.
The navigation popup (Ctrl-N) doesn't hide any more but the cursor still disappears from ctrl-n text field and moves to underlying editor.
Reproduction:
1) Ctrl-N
  • > Mouse cursor is NOT within the bounds of the input text field
2) type characters ("ABC")
  • > the class list appears
  • > mouse cursor is now within the bounds of the opened class list
3) type next character "D" (ABCD) which reduces the class list
  • > mouse cursor is NOT within the bounds of the reduced class list
  • > Cursor moves to underlying editor (in constrat to the behaviour before the navigation popup keeps visible, but any typed character appears in editor instead of navigation input field)
:((((((
Dmitry Jemerov
  Dmitry Jemerov
31 Jan 2012 17:47
3 months ago
I'm afraid I have no idea how to improve this behavior, other than leaving empty space within the popup when the number of elements to display is reduced.
Oleg Aleshko
  Oleg Aleshko
01 Feb 2012 00:07
3 months ago
i would be happy with this solution
probably you can make this empty space transparent or fill it with some useful info, but just leaving a blank area is also fine
Steven Adams
  Steven Adams
01 Feb 2012 04:54
3 months ago
Is there not an API for the text field component to request focus after resizing the popup?
Dmitry Jemerov
  Dmitry Jemerov
01 Feb 2012 14:08
3 months ago
There is, but it won't solve the problem. The focus will escape again after you move the mouse.
Bjørn T Johansen
  Bjørn T Johansen
01 Feb 2012 15:24
3 months ago
Well, I think that might be a viable solution... At least I never touch the mouse when using this feature...
Sebastian Gockel
  Sebastian Gockel
01 Feb 2012 15:31
3 months ago
At least I never touch the mouse when using this feature...

Neither do I - we are talking about a key-shortcut feature ...
Steven Adams
  Steven Adams
02 Feb 2012 00:20
3 months ago
+1 to neither do I.
Also in my experience (running metacity on Linux) focus does not change when moving the mouse within a window, only when mouse movement crosses window boundaries. However I don't know how this is affected if you're using lightweight GUI components and managing them yourself rather than system-provided components.
Oleg Aleshko
  Oleg Aleshko
02 Feb 2012 14:28
3 months ago
agreed
the only case when i use mouse together with this popup is to select several items from list (would be nice to have a way to do it with keyboard only, for sure)
Mark Rawling
  Mark Rawling
03 Feb 2012 01:00
3 months ago
I rarely use the mouse, but sometimes do, but regardless of that, I hardly think a 'non-mouse' solution is acceptable...
Oleg Aleshko
  Oleg Aleshko
03 Feb 2012 11:38
3 months ago
Mark, perhaps you misunderstood
nobody is suggesting that you would not be able to use mouse for this popup
ideally, every feature should be accessible by using only mouse or only keyboard, none should require both at the same time
Oleg Aleshko
  Oleg Aleshko
03 Feb 2012 12:04
3 months ago
currently this feature requires me to use both mouse and keyboard which is annoying and disrupting

one more workaround i can imagine - automatically put mouse cursor over popup textfield when it is invoked, looks like it should be really easy to implement
Dmitry Jemerov
  Dmitry Jemerov
03 Feb 2012 13:55
3 months ago
Please try 11.0.2 final and make sure you uncheck Settings | Appearance | Close navigation popups on focus loss
Bjørn T Johansen
  Bjørn T Johansen
03 Feb 2012 15:20
3 months ago
That's better... Looks a bit weird but way better than the annoying loss of focus.... :)
Oleg Aleshko
  Oleg Aleshko
03 Feb 2012 15:50
3 months ago
as i said, the focus is still lost if the popup list changes its width
http://www.screenr.com/JFws
Mark Rawling
  Mark Rawling
04 Feb 2012 04:11
3 months ago
I don't think I misunderstood did I? I consider it broken if you can narrow with the keyboard and then can't select with the mouse. I do that quite commonly, though not always, it just depends on how the list changes. Snapping the mouse into the dialog might be workable, though this whole thing smells a bit off - just adopt a well-proven dialog behaviour and implement it. Please don't leave it half broken after all of this pain.
Dmitry Jemerov
  Dmitry Jemerov
06 Feb 2012 14:28
3 months ago
Mark,
Please try 11.0.2 final. Mouse selection should work just as well as it did before.

I'm not sure what you mean by "well-proven dialog behavior" in this case.
Sebastian Gockel
  Sebastian Gockel
07 Feb 2012 15:27
3 months ago
still broken with 11.0.2 (111.277)
:(( This is really annoying.

Repro (same as with EAP build 111.255 -> see my post above):
The navigation popup (Ctrl-N) doesn't hide any more but the cursor still disappears from ctrl-n text field and moves to underlying editor.
Reproduction:
1) Ctrl-N
* > Mouse cursor is NOT within the bounds of the input text field

2) type characters ("ABC")
* > the class list appears
* > mouse cursor is now within the bounds of the opened class list

3) type next character "D" (ABCD) which reduces the class list
* > mouse cursor is NOT within the bounds of the reduced class list
* > Cursor moves to underlying editor (in constrat to the behaviour before the navigation popup keeps visible, but any typed character appears in underlying editor instead of navigation input field)
Dmitry Jemerov
  Dmitry Jemerov
07 Feb 2012 15:41
3 months ago
Sebastian,
Did you turn off the "Close navigation popups on focus loss" option in Settings | General?
Sebastian Gockel
  Sebastian Gockel
07 Feb 2012 16:42
3 months ago
Dimitry,
of course I did. Otherwise the navigation popup would disappear/hide in step 3)
Mark Rawling
  Mark Rawling
09 Feb 2012 06:18
3 months ago
Tx Dmitry, trying it tonight. Good news is it indexed nice and fast - 3 minutes vs 5-10 normally (huge project).
I am seeing a lot of this though (off topic, sorry)...

Error while indexing /usr/lib/python2.5/pstats.py
To reindex this file IDEA has to be restarted
java.lang.NoSuchFieldError: VIRTUAL_FILE
java.lang.NoSuchFieldError: VIRTUAL_FILE
 at com.jetbrains.python.psi.impl.PyFileImpl.getLanguageLevel(PyFileImpl.java:78)
 at com.jetbrains.python.psi.PyFileElementType.getLanguageLevel(PyFileElementType.java:57)
 at com.jetbrains.python.psi.PyFileElementType.parseContents(PyFileElementType.java:33)
 at com.intellij.psi.impl.source.tree.LazyParseableElement.e(LazyParseableElement.java:160)
 at com.intellij.psi.impl.source.tree.LazyParseableElement.getLastChildNode(LazyParseableElement.java:210)
Mark Rawling
  Mark Rawling
09 Feb 2012 06:55
3 months ago
Ok, what am I doing wrong? I have Version 11.0.2 IU-111.277, but I don't see "Close navigation popups on focus loss" option in Settings | General.
I see 3 startup/shutdown options and 4 synchronization options.
Tim Wundke
  Tim Wundke
09 Feb 2012 07:03
3 months ago
Mark, the option is under Settings | Appearance, just above the Look and Feel combo.
Mark Rawling
  Mark Rawling
09 Feb 2012 07:17
3 months ago
OK, tx, got it now. I'll check it out over NX tonight. At work it seems ok with the option changed, but it's completely unusable with the default setting - the dialog won't even stay up for more than a millisecond - honestly guys that's crazy, the damn thing should just work. Ubuntu 10, focus follows mouse. Also, I see the popup window has a title bar (I don't see that in IJ9), which tells me straight away it's not a normal dialog box and you are fighting the window manager, so I doubt good things will come of this... We'll see.
Mark Rawling
  Mark Rawling
09 Feb 2012 11:31
3 months ago
Ok, I tried it over NX. Unusable. It started off ok, but at one point I clicked in an edit form and unlike my above report, where nothing happened (specifically, it did not dismiss the dialog as expected), here, the drop down file list part vanished, leaving me with a title bar and the file name box. All I could do at this point was close it with the close button, and it did close, but after this I could not relaunch the popup at all, so it was completely unusable at this point. Do you guys test this thing at all? Really? It's just a dialog box, why is it still broken after two major releases and countless bug reports/feedback? Looks like I'll be sticking with IJ9 for a while longer.

I am pleased to report though, that scrolling and general redrawing behavior over NX seems to have greatly improved, it used to be deplorable over NX, crazy slow and jerky scrolling and redrawing if you say resized the left column. But now it is a lot better, I wouldn't call it great, but it is usable. I'm pleased with that, though it should really be better.

Indexing also seems MUCH faster, like 2-3 times faster, but I'm suspicious it's not indexing as much as it used to, because now I find that JavaScript completion is extremely slow, like 30 seconds just to launch the selection popup. This is when you type foo. and it tries to complete the properties of foo. I didn't a/b that with IJ/9 though, I'll do that tomorrow, but it certainly felt a lot slower than it used to be (but I might be wrong). It's so slow (even in 9) that I fear typing a period in JS, however I find that if I always follow the period with a junk char, eg, foo.x typed very quickly, that prevents it from stealing my ability to type for the next 30 seconds. Looks like I'll have to be even more diligent about that if I ever switch to 11.