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 101989 - appropriate end to def is not generetad in some cases
Summary: appropriate end to def is not generetad in some cases
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Editing (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-20 16:45 UTC by Tomas Danek
Modified: 2011-01-28 20:10 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 Tomas Danek 2007-04-20 16:45:08 UTC
NetBeans Ruby IDE 070420
1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b99
Windows XP version 5.1 running on x86
en_US (nbrubyide); Cp1252
-------------------------------
- create some foo controller, this is what you get:

class FooController < ApplicationController
end

- if you want to add action and do it like this:
place caret on start of line with "end" and push enter, to move this line down.
Push up arrow to move cusror to that empty line, type "def myaction", and hit enter
- no matching end to def is generated
Comment 1 Jiri Kovalsky 2007-07-03 14:11:32 UTC
Reassigning this issue to newly created 'ruby' component.
Comment 2 Torbjorn Norbye 2007-07-09 20:27:40 UTC
This occurs because you're typing "def" at the left margin (aligned with "class") instead of indented (hit Tab).

Perhaps we should automatically indent "def" when you type the last "f" (the same way else is reindented) ?
Comment 3 Erno Mononen 2009-03-12 13:45:37 UTC
Yes, I guess we should automatically indent 'def'. Probably won't get to this in 6.7 though.