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 146221 - Editor refuses to insert a closing parenthesis
Summary: Editor refuses to insert a closing parenthesis
Status: RESOLVED DUPLICATE of bug 146139
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-04 17:01 UTC by Torbjorn Norbye
Modified: 2008-09-04 19:43 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Source file which exposes the problem (16.54 KB, text/plain)
2008-09-04 17:02 UTC, Torbjorn Norbye
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Torbjorn Norbye 2008-09-04 17:01:04 UTC
(On OSX with a fresh dev build as of September 4th)

While editing, I suddenly can't insert a ) in the editor. I type ) repeatedly, and it inserts a space instead!  This
happened yesterday too. I was wondering if this perhaps is related to bracket matching or something else. 

In the end I had to exit the IDE, edit the file with a plain editor to get it back to what I want.

I will attach the source file where I cannot insert a ). Go to this line:
 if (p.getLookup().lookup(org.netbeans.modules.gsfpath.spi.classpath.ClassPathProvider.class) == null
and try to insert a ) on the right, right after "null". For me, that just moves the caret instead!
Comment 1 Torbjorn Norbye 2008-09-04 17:02:12 UTC
Created attachment 69075 [details]
Source file which exposes the problem
Comment 2 Torbjorn Norbye 2008-09-04 17:04:36 UTC
Adjusting priority - I at first thought my file had gotten corrupted, but it had not - it seems to be limited to bracket
matching on the ). I was able to cut & paste a ) from elsewhere in the document and that succeeded. Still, this is a
must-fix-for-6.5.
Comment 3 Jesse Glick 2008-09-04 19:27:46 UTC
If it happens to everyone, this is probably a P1...
Comment 4 Jan Lahoda 2008-09-04 19:43:13 UTC

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