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.
1. Create an empty file without an extension (e.g. my_exec) with the following contents : #!ruby msg = "Hello" puts msg 2. After saving the file, the file is not recognized as a Ruby file 3. Restarting Netbeans does not have any effect. 4. Using the following shebang does not help either : #!/usr/bin/env ruby I'm using Netbeans 6.5 beta.
Strange, that restart does not help. With the latest build: http://wiki.netbeans.org/RubyInstallation#section-RubyInstallation-HowDoIGetTheContinuousBuilds if I: - open 'some_file' without '.rb' (or other Ruby) extension and without Shebang line, it is not colored - when I then put '#!/usr/bin/env ruby' on the first line, the file is still not colored - when I restart the IDE and open the file, it *is* colored correctly (colored == syntax highlighting)
I just tried hudson-trunk-3568 and this does not work either. Restarting Netbeans has no effect. Note that I'm on Windows.
Seems to work for me (with #!/usr/bin/env ruby), can you try whether this still happens to you 6.7 dev (http:// bits.netbeans.org/dev/nightly/latest/)?
somehow does not work for me neither in 090915; #!/usr/bin/env ruby puts "aaa" does not get colored.