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 114947 - =begin/=end style of block commenting doesn't work in NetBeans' Ruby editor
Summary: =begin/=end style of block commenting doesn't work in NetBeans' Ruby editor
Status: RESOLVED INVALID
Alias: None
Product: ruby
Classification: Unclassified
Component: Editing (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-06 21:25 UTC by rpatel
Modified: 2007-09-21 02:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot for what this looks like for me (42.23 KB, image/png)
2007-09-06 22:13 UTC, Torbjorn Norbye
Details
This is how it looks on Win XP on M10 (87.81 KB, image/png)
2007-09-06 22:25 UTC, rpatel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rpatel 2007-09-06 21:25:57 UTC
Hi,

The summary is self-explanatory.

Also see related enhancement request - http://www.netbeans.org/issues/show_bug.cgi?id=114946

Regards,
Rima.
Comment 1 Torbjorn Norbye 2007-09-06 22:13:58 UTC
Created attachment 48327 [details]
Screenshot for what this looks like for me
Comment 2 Torbjorn Norbye 2007-09-06 22:15:08 UTC
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?
Comment 3 rpatel 2007-09-06 22:25:49 UTC
Created attachment 48331 [details]
This is how it looks on Win XP on M10
Comment 4 Torbjorn Norbye 2007-09-06 22:58:20 UTC
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.
Comment 5 rpatel 2007-09-06 23:45:59 UTC
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.
Comment 6 Torbjorn Norbye 2007-09-21 02:27:26 UTC
P.S. The =begin/=end hint is there now and described in http://wiki.netbeans.org/wiki/view/RubyHints near the bottom