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 160267 - square brackets and curly braces
Summary: square brackets and curly braces
Status: RESOLVED INVALID
Alias: None
Product: editor
Classification: Unclassified
Component: Key bindings (show other bugs)
Version: 6.x
Hardware: Other Linux
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords: I18N
: 159460 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-13 16:26 UTC by akpor
Modified: 2009-08-19 12:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
my messages.log (54.94 KB, text/plain)
2009-03-25 14:44 UTC, blackrat
Details

Note You need to log in before you can comment on or make changes to this bug.
Description akpor 2009-03-13 16:26:29 UTC
I have installed netbeans 6.5 - on Fedora 10 - when I open a file the square brackets and curly braces do not work -
when I try to type in any of these keys I get nothing.

This is a nightmare - even worse will be being obliged to use eclipse
Comment 1 Martin Schovanek 2009-03-18 15:24:35 UTC
Can you type these chars in any other Java application, eg. in:
http://java.sun.com/javase/technologies/desktop/javawebstart/apps/notepad.jnlp ?
Comment 2 Martin Schovanek 2009-03-19 16:29:01 UTC
*** Issue 159460 has been marked as a duplicate of this issue. ***
Comment 3 akpor 2009-03-19 17:10:48 UTC
I am able to type this characters in Eclipse without any problems
Comment 4 Vitezslav Stejskal 2009-03-23 17:28:37 UTC
Eclipse is different, it's not a Swing application. Could you please try typing these in java notepad (eg. use the JNPL
link provided by mschovanek or simply type java -jar ${JAVA_HOME}/demo/jfc/Notepad/Notepad.jar to a commandline). Also
please attach here the IDE's log file from <ide-userdir>/var/log/messages.log. Thanks
Comment 5 blackrat 2009-03-25 14:41:54 UTC
I have experienced this behavior a couple of times before and it is very frustrating when it happens. I run Netbeans 6.5
on Linux (Fedora 10) and use Swedish keyboard settings. With a Swedish keyboard one has to use AltGr combined with the
numbers 7 through 9 to produce the {[]} letters. Occasionally this stops working and you get just the numbers instead of
the brackets. In fact, no AltGr key combos work at all -- and there are quite a few useful ones with a Swedish setting
(e.g. @, \).

Everything works fine in most applications, even in Eclipse. There are other applications though that share the same
problem as Netbeans, the Java notepad example is one -- no brackets there.

Earlier, when having had these problems, I have been able to fix them by running the SCIM (Smart Common Input Method)
and then restart Eclipse.

This morning when yet again the curly brackets became numbers I tried to start SCIM. It didn't work this time, no matter
how I tried to configure it and restart Netbeans. Now the only way of writing brackets is by copying and pasting from
somewhere else -- neither productive nor practical.

I'm feeling pretty clueless about this; what's the cause and how to fix it. I'll append my Netbeans log, maybe that
could shed some light upon this issue for someone.

Comment 6 blackrat 2009-03-25 14:44:30 UTC
Created attachment 78825 [details]
my messages.log
Comment 7 Vitezslav Stejskal 2009-03-26 10:47:20 UTC
"the Java notepad example is one -- no brackets there." - Then the problem is somewhere between JDK/OS/SCIM and I'm
afraid there is not much we can do in Netbeans.

"Occasionally this stops working and you get just the numbers instead of the brackets." - So, *sometimes* AltGr works in
Netbeans and you *can* type {}[], but then something happens and it stops working. Correct? The same for java notepad?
Or does AltGr never work?
Comment 8 Jiri Prox 2009-08-19 12:18:56 UTC
Please provide requested info so we can further analyze this problem. 
I'm closing this as Invalid for now, please reopen when the info is provided.

As vstejskal mentioned this is probably problem of the OS/JDK. Please try upgrading your JDK. I also remember, that the
AltGr problem was sometimes solved by change in xorg.cong, but unfortunately I cannot find it now.