Watch, Follow, &
Connect with Us
Public Report
Report From: 3rdRail/Ruby and Rails Editors    [ Add a report in this area ]  
Report #:  64360   Status: Resolved
Code completion adds "end" keyword when it's not necessary
Project:  3rdRail Build #:  v20080311_0801
Version:    unspecifie Submitted By:   Olivier Lance
Report Type:  Minor failure / Design problem Date Reported:  7/11/2008 4:22:03 AM
Severity:    Commonly encountered problem Last Updated: 7/28/2008 4:53:50 PM
Platform:    All platforms Internal Tracking #:  
Resolution: Fixed (Resolution Comments) Resolved in Build: : v20080714_1148
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
When striking the "enter" key at the end of a def or class line (for instance), the automatic code completion adds an "end" keyword for the block even if there's already one.
Steps to Reproduce:
- Open a .rb file

- let's assume it already contains this code :

def action
  @model = Model.find :all
end

- Position the caret anywhere on the "def action" line

- hit "Enter"

> the code is now :

def action
  
end
  @model = Model.find :all
end

or for instance

def act
  ion
end
  @model = Model.find :all
end

if you had position your caret after "act".
Workarounds
None
Attachment
None
Comments

None

Server Response from: ETNACODE01