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 125723 - Cannot add native Ruby Platform in version 1.8.4
Summary: Cannot add native Ruby Platform in version 1.8.4
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Platform (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-22 10:28 UTC by ktukker
Modified: 2008-01-22 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ktukker 2008-01-22 10:28:28 UTC
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]
Comment 1 ktukker 2008-01-22 10:38:06 UTC
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]
Comment 2 Martin Krauskopf 2008-01-22 10:49:46 UTC
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.
Comment 3 ktukker 2008-01-22 10:53:54 UTC
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)
Comment 4 ktukker 2008-01-22 10:54:43 UTC
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)
Comment 5 Martin Krauskopf 2008-01-22 10:58:44 UTC
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.
Comment 6 Martin Krauskopf 2008-01-22 11:28:11 UTC
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
Comment 7 Martin Krauskopf 2008-01-22 11:28:43 UTC
PS: will be available in one of the next build on deadlock

http://deadlock.netbeans.org/hudson/job/ruby/
Comment 8 ktukker 2008-01-22 13:44:41 UTC
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