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.
Hi, The summary is self-explanatory. Also see related enhancement request - http://www.netbeans.org/issues/show_bug.cgi?id=114946 Regards, Rima.
Created attachment 48327 [details] Screenshot for what this looks like for me
Can you explain more in what way it's not working? Also, which version are you using? I've attached a screenshot of what I see which seems correct. Perhaps it's broken on Windows (I'm on a Mac), or for certain source constructs?
Created attachment 48331 [details] This is how it looks on Win XP on M10
Your =begin is indented - that's invalid Ruby so the error underlines are correct. (If you run the program you should see Ruby complaining about syntax errors too). =begin and =end must be in column 0. Try selecting them and clicking on the shift left buttons in the editor toolbar and you should see it working. (There may have been a bug in the formatter for M10 which indented =begin/=end; I don't remember. In any case, the daily builds at http://deadlock.netbeans.org/hudson/job/ruby/ should be in much much better shape - M10 is two months old. Look at the changes since M10 in the end of June here: http://wiki.netbeans.org/wiki/view/RubyRecentChanges ) P.S. This gave me an idea for another quicktip (see http://wiki.netbeans.org/wiki/view/RubyHints) - identify indented =begin's and offer to realign the block.
Tor, Okay, thanks! As you can tell, this is my first day of programming in Ruby :-). I agree that this could be added to your quicktips project. Not sure though as to how many people who are *real* Ruby programmers would not know something like this. The reason I made this mistake is because I am coming from the Java land where we are not as bound by the specifics :-)... Regards, Rima.
P.S. The =begin/=end hint is there now and described in http://wiki.netbeans.org/wiki/view/RubyHints near the bottom