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 128931 - "toggle comment" keyboard shortcut not working
Summary: "toggle comment" keyboard shortcut not working
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Key bindings (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords:
: 127525 (view as bug list)
Depends on:
Blocks: 131539
  Show dependency tree
 
Reported: 2008-03-02 17:10 UTC by jamespb
Modified: 2018-01-13 15:32 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
A mercurial repository containing two revs: 0 is the good userdir, 1 is the userdir where keyboard shortcuts no longer work (5.40 MB, application/x-gzip)
2008-03-29 02:16 UTC, jamespb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jamespb 2008-03-02 17:10:42 UTC
Toggle comment is bound to ctrl-slash and ctrl-shift-C according to Tools>Options>Keymap.

Neither key combo does "toggle comment."  

The Source>Toggle comment menu doesn't list a key combo next to the command.

Possibly related to http://www.netbeans.org/issues/show_bug.cgi?id=127525
Comment 1 jamespb 2008-03-02 17:15:15 UTC
Product Version: NetBeans IDE Dev (Build 20080302134226)
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 2 jamespb 2008-03-02 17:16:02 UTC
Ubuntu 7.10, gnome
Comment 3 jamespb 2008-03-02 17:17:46 UTC
Select next element (alt-shift-period), select previous element (alt-shift-comma) also not working.  I'm assuming the
window manager isn't intercepting these since I can enter them in the keymap shortcut box.
Comment 4 Torbjorn Norbye 2008-03-11 16:10:33 UTC
Up until about a week ago there were a bunch of broken keybindings - can you check whether this is working now?

This was supposedly fixed by changeset http://hg.netbeans.org/main?cmd=changeset;node=b1e12be2aeb0 on March 4 (two days
after this bug was filed).
Comment 5 jamespb 2008-03-12 03:26:26 UTC
Yes, it was fixed.
Comment 6 jamespb 2008-03-25 16:37:12 UTC
And it appears to be 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 7 Jan Lahoda 2008-03-27 21:45:11 UTC
Works OK for me on 20080326132413 (build from Hudson), Ubuntu, JDK6, on both new and old userdir...
Comment 8 Jan Lahoda 2008-03-28 11:29:51 UTC
Jirka could you please try to reproduce? Thanks.
Comment 9 Vitezslav Stejskal 2008-03-28 13:49:40 UTC
I tried in java and ruby files with both JDK5 and 6 on my dev build from this morning and the shortcuts worked. I'll
leave this open as P3 for a while so that we can do more investigation. Probably together with issue #127525.

Product Version: NetBeans IDE Dev (Build 080328)
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)

Product Version: NetBeans IDE Dev (Build 080328)
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)
Comment 10 Jiri Prox 2008-03-28 13:58:01 UTC
Work for me as well

Product Version: NetBeans IDE Dev (Build 20080328094427)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)
Comment 11 jamespb 2008-03-28 14:43:18 UTC
I'm guessing that these two bugs are the same/related:

http://scripting.netbeans.org/issues/show_bug.cgi?id=127525

It's a userdir issue - I put a good user and a bad userdir in that bug and confirmed that the bad userdir still gives
bad results for me with this build:

Product Version: NetBeans IDE Dev (Build 20080327180128)
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

When I found the userdir problem on the other bug, I dropped the priority to P4, but Tor mentioned on the mailing list
that he's also seen this come up.  I'll let someone else figure out if it's worth investigating or not with the repro
case.  
Comment 12 philswenson 2008-03-29 00:08:50 UTC
where are you getting these builds after 3/25?  That's the latest I see.
Comment 14 jamespb 2008-03-29 02:12:57 UTC
Bingo - I can reproduce!  Raising this to P1 - I think it means people adding keyboard shortcuts are likely to break
many key combos.

* Remove your userdir.
* Start netbeans.  Open your existing project.
* Wait for netbeans to finish indexing.
* Close netbeans, open netbeans.
* Set a new keyboard shortcut: add Alt-Shift-R as a second keyboard combo for debug focused test.

At this point, keyboard shortcuts are broken.
Comment 15 jamespb 2008-03-29 02:16:23 UTC
Created attachment 59332 [details]
A mercurial repository containing two revs: 0 is the good userdir, 1 is the userdir where keyboard shortcuts no longer work
Comment 16 Vitezslav Stejskal 2008-03-29 10:22:43 UTC
Thanks for the steps James. I can reproduce it now in ruby files, but not java. I assume this affects all GSF based editors.
Comment 17 Vitezslav Stejskal 2008-03-30 09:04:57 UTC
Should work now. Could you please try again in a dev build? thanks
http://hg.netbeans.org/main/rev/dc6d4dffd7d4
Comment 18 Vitezslav Stejskal 2008-03-30 09:05:40 UTC
*** Issue 127525 has been marked as a duplicate of this issue. ***
Comment 19 jamespb 2008-03-30 18:24:13 UTC
Seems to be working fine in a build from this morning (1395)
Comment 20 Jiri Prox 2008-04-02 09:53:07 UTC
Thanks for verification.
This fix is also included in releace61 clone, so no additional porting is needed
Comment 21 aaravydv 2018-01-13 15:32:28 UTC
Does not have alternatives found on twenty years of age Windows variations of solitaire, such as the ability to choose http://solitairetimes.com in between one or 3 card flips in Klondike.