RoR in Netbeans - Rails console not working


#1

Hey Everyone,

Local setup:
Platform: Windows XP
NetBeans IDE 6.1 (Build 200805300101)
Ruby 1.8.6
Rails 2.1.1

While trying to test out the IDE I experienced the below error as
output.
Is it something wrong with the version of the Rails gem that I’m
using?

I think I had an earlier version of Rails installed initially then I
updated it…

HELP!!!

C:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.1/lib/commands/console.rb:
32:in `exec’: Exec format error - irb --noreadline -r irb/completion

r “C:/Documents and Settings/jamesc/My Documents/Tinyrockhopper/
helloworld/config/environment” -r console_app -r console_with_helpers
–simple-prompt (Errno::ENOEXEC)

    from C:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.1/lib/commands/

console.rb:32

    from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/

custom_require.rb:
27:in `gem_original_require’

    from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/

custom_require.rb:
27:in `require’

    from script/console:3

Loading development environment (Rails 2.1.1)


#2

Hi,

Sorry for replying so late. Seems that you’re running into
http://www.netbeans.org/issues/show_bug.cgi?id=133066, the issue is
fixed in 6.5 (6.5 RC1 is available now). Alternatively you can patch
rails/lib/commands.console.rb like described in desc5 of the issue
(http://www.netbeans.org/issues/show_bug.cgi?id=133066#desc5).

HTH,
Erno

2008/10/16 TinyRockHopper removed_email_address@domain.invalid: