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 127525

Summary: go to declaration keyboard shortcut not working, but assigned
Product: editor Reporter: jamespb <jamespb>
Component: Key bindingsAssignee: Vitezslav Stejskal <vstejskal>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: pjiricka, rmatous
Priority: P4    
Version: 6.x   
Hardware: All   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 90403    
Bug Blocks:    
Attachments: navigate menu
options menu with ctrl-b set
new upload of options dialog
good userdir, no problems
bad userdir, keyboard shortcuts are broken

Description jamespb 2008-02-16 00:29:53 UTC
Go to declaration keystroke (ctrl-b) is defined according to Tools > Options.  Ctrl-b is not set according to Navigate >
Go to declaration, and the keystroke doesn't appear to do anything.  Choosing Navigate > Go to declaration from the menu
works fine.

Screenshots enclosed.

Product Version: NetBeans IDE Dev (Build 200802151203)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Linux version 2.6.22-14-generic running on i386; UTF-8; en_US (nb)
Userdir: /home/james/.netbeans/dev
Comment 1 jamespb 2008-02-16 00:30:41 UTC
Created attachment 56755 [details]
navigate menu
Comment 2 jamespb 2008-02-16 00:31:50 UTC
Created attachment 56756 [details]
options menu with ctrl-b set
Comment 3 jamespb 2008-02-16 00:34:24 UTC
Created attachment 56758 [details]
new upload of options dialog
Comment 4 jamespb 2008-02-16 02:45:08 UTC
Toggle comment has the same problem.
Comment 5 Petr Jiricka 2008-02-20 10:05:25 UTC
Weird, works for me on Mac. This is not Ruby-specific, assigning to core.
Comment 6 rmatous 2008-02-21 15:10:17 UTC
Reassigned Editor/Options
Comment 7 Jiri Prox 2008-02-22 10:08:29 UTC
reproducible, but only with ruby distribution, in javase distribution it works fine
Comment 8 Vitezslav Stejskal 2008-02-22 16:05:46 UTC
I think that this is a classic implication of issue #90403 (aka kitclass vs mimetype dichotomy). Ruby is GSF based
language, which does not have its own EditorKit implementation, therefore the only shortcuts that are available for it
are those defined for MimePath.EMPTY, which is not the case of ctrl+B as it is registered for text/x-ruby.

The quick workaround would be to move the shortcut declaration to the editor infrastructure and under the empty mimepath
(ie. make it available for all file types). Correct solution obviously is fixing #90403.
Comment 9 Vitezslav Stejskal 2008-02-25 13:34:50 UTC
I moved the shortcut to the editor infrastructure.

changeset 3795f025e02d in main
details: http://hg.netbeans.org/main?cmd=changeset;node=3795f025e02d
Comment 10 jamespb 2008-03-25 16:38:23 UTC
Broken again in this build:

Product Version: NetBeans IDE Dev (Build 20080325130838)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Linux version 2.6.22-14-generic running on i386; UTF-8; en_US (nb)
Userdir: /home/james/.netbeans/dev
Comment 11 Vitezslav Stejskal 2008-03-26 13:25:51 UTC
I'm sorry, I couldn't get the exact same build, but tried 200803251204 from nb.org and my own dev build 080326 and the
shortcut is working in both. Could you please try in a dev build? Thanks

Product Version: NetBeans IDE Dev (Build 200803251204)
Java: 1.6.0_10-ea; Java HotSpot(TM) Client VM 11.0-b11
System: Linux version 2.6.22-14-generic running on i386; UTF-8; en_US (nb)
Userdir: /home/vita/.netbeans/dev

Product Version: NetBeans IDE Dev (Build 080326)
Java: 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b04
System: Linux version 2.6.22-14-generic running on i386; UTF-8; en_US (nb)
Userdir: /home/vita/devel/netbeans/main/nbbuild/testuserdir
Comment 12 jamespb 2008-03-26 16:58:42 UTC
I'm downloading 1315 from

http://deadlock.netbeans.org/hudson/job/trunk/lastSuccessfulBuild/artifact/nbbuild/dist/zip/

now.  I'll give it a shot this morning.
Comment 13 jamespb 2008-03-26 18:48:17 UTC
It's working in 1315 - and I think the problem is a user directory issue.  I installed 1315, saw the problem, shut down,
removed my .netbeans directory, and restarted.  The problem went away.

I'm going to reopen the issue and include both the working and non-working user directories.  

I'll also drop this to a P4 - seems like the sort of problem that might be interesting to look at if someone thinks it
might be an indication of a deeper problem, but certainly isn't a priority.
Comment 14 jamespb 2008-03-26 18:50:02 UTC
Created attachment 59163 [details]
good userdir, no problems
Comment 15 jamespb 2008-03-26 18:51:55 UTC
Created attachment 59165 [details]
bad userdir, keyboard shortcuts are broken
Comment 16 Vitezslav Stejskal 2008-03-27 14:31:39 UTC
Thanks for this, I'll have a look.
Comment 17 Vitezslav Stejskal 2008-03-30 09:05:47 UTC

*** This issue has been marked as a duplicate of 128931 ***