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.
Summary: | RbConfig::CONFIG['ruby_install_name'] returns "jruby.bat" | ||
---|---|---|---|
Product: | ruby | Reporter: | brucetesar <brucetesar> |
Component: | Rake | Assignee: | issues@ruby <issues> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.3 | ||
Hardware: | PC | ||
OS: | Windows 7 x64 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
brucetesar
2013-04-16 00:18:43 UTC
Thanks for reporting this. I think I have a workaround and possibly you might help find the actual solution. In JRuby itself, the code for that config value is to call this method: public static String jrubyScript() { return SafePropertyAccessor.getProperty("jruby.script", "jruby").replace('\\', '/'); } So if you can find the script with launches Netbeans (I don't know offhand) then you can add -Djruby.script=jruby.exe and see if things work as expected. I am hoping somewhere in the install Netbeans is adding this as part of the Ruby module support and it is not hard-coded into source. This also probably has another issue which is in our Ruby Netbeans source which is that we must be blindly trying to execute without knowing whether that executable exists. One extra stat() would probably be worth not trying to launch a nonsense-named binary and throwing an error instead. The first things I've tried have not worked. I tried adding "-J-Djruby.script=jruby.exe" to the command line with netbeans.exe directly, and from within NetBeans still get "jruby.bat" for RbConfig::CONFIG['ruby_install_name']. I also tried editing <netbeans-install>\etc\netbeans.conf and adding "-J-Djruby.script=jruby.exe" to the end of the string for netbeans_default_options. That had no effect either. |