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.
Start with foo.html.erb that looks like: <% whatever do stuff end %> Keep hitting alt-shift-F, and the "stuff" line gets more and more indentation. Product Version: NetBeans Ruby IDE 20080109120642 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
Repros on Linux, build 6266 Product Version: NetBeans Ruby IDE 20080122123233 Java: 1.6.0_03; Java HotSpot(TM) Server VM 1.6.0_03-b05 System: Linux version 2.6.18-8.1.15.el5xen running on i386; UTF-8; en_US (nbrubyide) Userdir: /home/james/.nbrubyide/dev
I should add that I think this is a fairly serious problem - it means that NetBeans frequently damages erb files when you hit alt-shift-F.
Fixed in 6.1 - sorry about the delay. (With some duct tape. We're working on some serious changes in this area to make editing of embedded languages etc. much better). Please let me know if you see any other serious issues in this area. IDE:------------------------------------------------- IDE: [1/25/08 9:55 AM] Committing started Checking in editing/src/org/netbeans/modules/ruby/Formatter.java; /cvs/ruby/editing/src/org/netbeans/modules/ruby/Formatter.java,v <-- Formatter.java new revision: 1.29; previous revision: 1.28 done Checking in rhtml/src/org/netbeans/modules/ruby/rhtml/RhtmlIndentTask.java; /cvs/ruby/rhtml/src/org/netbeans/modules/ruby/rhtml/RhtmlIndentTask.java,v <-- RhtmlIndentTask.java new revision: 1.7; previous revision: 1.6 done IDE: [1/25/08 9:55 AM] Committing finished