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 111245 - no autocompletion for def foo/end, open-close parens, brackets, etc
Summary: no autocompletion for def foo/end, open-close parens, brackets, etc
Status: RESOLVED WORKSFORME
Alias: None
Product: ruby
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P2 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-27 16:34 UTC by jamespb
Modified: 2007-07-27 17:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jamespb 2007-07-27 16:34:27 UTC
Build 3134 ruby editor.

Typing [{( doesn't insert the closing ]}).  Hitting return after def foo doesn't insert the 'end.'

Product Version: NetBeans Ruby IDE 070727 Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06 System: Windows Vista
version 6.0 running on x86; Cp1252; en_US (nbrubyide) Userdir: C:\Users\James\AppData\Roaming\.nbrubyide\dev
Comment 1 Torbjorn Norbye 2007-07-27 16:39:40 UTC
I finally hooked bracket completion up to the options in the Options dialog. Can you open options, go to the Editor category and see if the "Insert Closing 
Brackets Automatically" option is selected?

If it isn't, do you remember if you ever changed this option?  (The default should be that it's on.)

I'm hoping that you turned this off at some point and left it off since it didn't affect bracket completion back then.
Comment 2 jamespb 2007-07-27 17:01:28 UTC
It was turned off in options - turned it back on, things are now working as expected.
Comment 3 Torbjorn Norbye 2007-07-27 17:06:50 UTC
Great. What I'm wondering though is how that option came to be turned off; is it at all possible that you turned it off at some point?  The alternative is that 
users with older user directories don't get migrated up correctly and end up with options turned off (which would be bad) - I've verified that with a new userdir 
it's all working, and I ran an older build as well and then ran the new build and that also seemed to work, but I don't have all older versions of settings files to 
test with.
Comment 4 jamespb 2007-07-27 17:18:29 UTC
I think it's fair to assume I turned it off - there was a time when I was playing with all the options, and I've never
really liked autocompletion much anyway (I'm experimenting with it more lately).
Comment 5 Torbjorn Norbye 2007-07-27 17:52:46 UTC
Great, I'm relieved to hear that. I'm closing this bug as resolved.