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.
- Create ruby script, type "for ctrl + space" , you should see possible selectable options, select for and hit Enter, for syntax should be added to at cursor position, not happening so...
This is not a defect - we simply don't have a code template for for-loops, or indeed many of the other possible looping constructs in Ruby. We do for if - that's why it's showing up in code completion. It would be great to get a set of comprehensive code templates. The TextMate bundle importer might offer a good start.
Just to clarify: The "for" entry you -do- see in code completion is simply keyword completion - that's why it only inserts for. All the Ruby keywords are there for completion. For if you see not only the Ruby "if" keyword, but a code template for if as well. This is what we're missing for for and various other looping constructs. *** This issue has been marked as a duplicate of 101464 ***
Reassigning this issue to newly created 'ruby' component.
Changing target milestone of all resolved Ruby issues from TBD to 6.0 Beta 1 build.