This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 247186 - Go to Line ignores ENTER keypress
Summary: Go to Line ignores ENTER keypress
Status: REOPENED
Alias: None
Product: editor
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-16 23:56 UTC by _ gtzabari
Modified: 2014-12-09 18:23 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (49.21 KB, application/octet-stream)
2014-09-16 23:56 UTC, _ gtzabari
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2014-09-16 23:56:08 UTC
Created attachment 149273 [details]
messages.log

Product Version: NetBeans IDE Dev (Build 201409080001)
Updates: Updates available
Java: 1.8.0_20; Java HotSpot(TM) 64-Bit Server VM 25.20-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_20-b26
System: Windows 7 version 6.1 running on amd64; Cp1252; en_CA (nb)
User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev

1. With keyboard focus in the editor, hit CTRL+G.
2. Go to Bookmark dialog will pop up
3. Enter a line number and hit ENTER
4. Most of the time, the editor will go to the desired line but sometimes the editor goes into a bad state where it ignores ENTER (but clicking "Go To" still works)
5. The only way I've found to fix the problem is restart the IDE.

I am unsure how to reproduce this problem consistently. Is it possible for you to increase the logging level somehow and have me send you logs the next time this happens?
Comment 1 _ gtzabari 2014-09-17 03:06:33 UTC
I figured out how to reproduce the problem.

1. Open a Java file in the editor.
2. Hit CTRL+G, "Go to Line" (this works).
3. Hit CTRL+HOME, Jump to top of file.
4. Now, hit CTRL+G again.
5. Notice that ENTER no longer works.

For some reason hitting CTRL+HOME seems to trigger this bug.
Comment 2 _ gtzabari 2014-09-17 03:07:49 UTC
I'm guessing the Navigation component is more appropriate. Feel free to reassign if you disagree.
Comment 3 Milutin Kristofic 2014-09-19 12:04:46 UTC
I cannot reproduce this on my machine. 
Product Version: NetBeans IDE Dev (Build 201407010002)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.2.0-68-generic running on amd64; UTF-8; en (nb)

Ctrl+Home doesn't trigger this behaviour.
Comment 4 _ gtzabari 2014-09-19 16:45:43 UTC
Milutin,

Your build is two months older than the one I reported the bug in. And you're also under Linux.

Try a newer build (even under Linux) and the bug should occur.
Comment 5 Milutin Kristofic 2014-09-23 13:32:09 UTC
Sorry I coppied last time wrong about. I was working on 2 month old netbeans build but I tested it on daily build. I also tested this on 

Product Version: NetBeans IDE Dev (Build 20140919-7bbc457b4823)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.2.0-68-generic running on amd64; UTF-8; en_US (nb)

But still Linux. Somebody could help us and try this on Windows.
Comment 6 Jiri Prox 2014-09-24 08:24:05 UTC
I can reproduce the problem. It is important that between steps 4 and 5 (comment 1) no new number is typed. 

Another problem, maybe related, is that arrow keys does not work for selecting from previously used numbers, it automatically select the next number and closed the dialog (user cannot browse in the list)



Product Version: NetBeans IDE Dev (Build 201409220001)
Java: 1.8.0_20; Java HotSpot(TM) 64-Bit Server VM 25.20-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_20-b26
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev
Comment 7 Milutin Kristofic 2014-09-24 14:13:18 UTC
Ok, I still cannot reproduce original bug, but I can reproduce problem with combobox history (arrows down). I think it is connected, and by fixing combobox history I also fixed Enter keypress. Please reopen, if I am wrong and you can reproduce it in fixed build. 

http://hg.netbeans.org/jet-main/rev/e81d178e96fe
Comment 8 matthies 2014-12-09 14:34:41 UTC
I just encountered the original bug in NetBeans 8.0.2. Is it supposed to be fixed there?
Comment 9 _ gtzabari 2014-12-09 15:48:17 UTC
matthies,

I believe so. Reopening.
Comment 10 matthies 2014-12-09 18:23:01 UTC
Just FYI, for me the problem now went away after a while without having to restart the IDE.