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.
Using Netbeans Dev 200801220000 / Ruby1_6260 I'd like to add the native ruby 1.8 as platform. In Tools->Ruby Platforms (Platform manager) I click "add Platform" and browse to the "ruby.exe" file. After clicking on it the IDE tells me: "D:\ruby\bin\ruby.exe" does not seem to be a valid Ruby interpreter. The command "ruby.exe -v" returns: D:\ruby\bin>ruby.exe -v ruby 1.8.4 (2005-12-24) [i386-mswin32]
After installing Ruby 1.8.6 oneclick installer, the platform was added succesfully. Is 1.8.4 not supported? D:\ruby-1.8.6\bin>ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
Hi, it should be. Could you run: D:\ruby\bin\ruby.exe %PATH_TO_YOUR_NETBEANS%/ruby1/platform_info.rb It probably produces an error. Thanks.
D:\ruby\bin>ruby.exe d:\java\clusters\ruby1_6260\platform_info.rb ruby_kind=Ruby ruby_version=1.8.4 ruby_release_date=2005-12-24 d:/java/clusters/ruby1_6260/platform_info.rb:14: uninitialized constant RbConfig (NameError)
Additional info: on same system output for 1.8.6 D:\ruby-1.8.6\bin>ruby.exe d:\java\clusters\ruby1_6260\platform_info.rb ruby_kind=Ruby ruby_version=1.8.6 ruby_patchlevel=111 ruby_release_date=2007-09-24 ruby_executable=D:/ruby-1.8.6/bin/ruby.exe ruby_platform=i386-mswin32 gem_home=D:/ruby-1.8.6/lib/ruby/gems/1.8 gem_path=D:/ruby-1.8.6/lib/ruby/gems/1.8 gem_version=0.9.4 (0.9.4)
Ok, thanks. Seems that RbConfig was not in the 1.8.4 times. Definitely better to stay with up-to-date version of Ruby interpreters. Either I'll reject addition of ancient version or I'll fix the script. Thanks for the feedback.
RbConfig is not defined in Ruby 1.8.4. It was just Config. Fixed, now you should be able to add 1.8.4 as well. platform/release/platform_info.rb; new revision: 1.2; previous revision: 1.1
PS: will be available in one of the next build on deadlock http://deadlock.netbeans.org/hudson/job/ruby/
I replaced the installed platform_info.rb with the one in trunk. 1.8.4 win32 ruby.exe installes nicely as a platform now. Confirmed to work