NetBeans 6.1 Rails Console

View: New views
15 Messages — Rating Filter:   Alert me  

NetBeans 6.1 Rails Console

by bruparel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am running NetBeans 6.1 Dev build 200804110003 on Windows XP and using Chris's blog demo to see how the rails console works.  I have installed InstantRails 2.0 which has Ruby 1.8.6 Patch level 111.  When I work in InstantRails the Rails console works fine, but when I try to open it in NetBeans, I get the following message:

C:/InstantRails20/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/console.rb:32:in `exec': Exec format error - irb --noreadline  -r irb/completion -r "C:/InstantRails20/rails_apps/blog/config/environment" -r console_app -r console_with_helpers --simple-prompt (Errno::ENOEXEC)

Loading development environment (Rails 2.0.2)

        from C:/InstantRails20/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/console.rb:32

        from C:/InstantRails20/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'

        from C:/InstantRails20/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'

        from script/console:3

This used to work fine before?  Is there something new that I need?

Thanks.

Bharat

Re: NetBeans 6.1 Rails Console

by Tim Haines-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have some problems with the console not starting too..

On 16/04/2008, bruparel <ruparel@...> wrote:

I am running NetBeans 6.1 Dev build 200804110003 on Windows XP and using
Chris's blog demo to see how the rails console works.  I have installed
InstantRails 2.0 which has Ruby 1.8.6 Patch level 111.  When I work in
InstantRails the Rails console works fine, but when I try to open it in
NetBeans, I get the following message:

C:/InstantRails20/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/console.rb:32:in
`exec': Exec format error - irb --noreadline  -r irb/completion -r
"C:/InstantRails20/rails_apps/blog/config/environment" -r console_app -r
console_with_helpers --simple-prompt (Errno::ENOEXEC)

Loading development environment (Rails 2.0.2)

        from
C:/InstantRails20/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/console.rb:32

        from
C:/InstantRails20/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'

        from
C:/InstantRails20/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'

        from script/console:3

This used to work fine before?  Is there something new that I need?

Thanks.

Bharat


--
View this message in context: http://www.nabble.com/NetBeans-6.1-Rails-Console-tp16714440p16714440.html
Sent from the NetBeans Ruby - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...



Re: NetBeans 6.1 Rails Console

by bruparel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I just switched the platform to JRuby 1.1 and the console works fine!  Why is the console not working with MRI?

Re: NetBeans 6.1 Rails Console

by Tim Haines-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It used to work for me.  I was on ruby 1.8.5, and only recently updated to 1.8.6.  Not sure if that was related to it breaking or not..

On 16/04/2008, bruparel <ruparel@...> wrote:

I just switched the platform to JRuby 1.1 and the console works fine!  Why is
the console not working with MRI?

--
View this message in context: http://www.nabble.com/NetBeans-6.1-Rails-Console-tp16714440p16714472.html

Sent from the NetBeans Ruby - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...



Re: NetBeans 6.1 Rails Console

by Erno Mononen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

bruparel wrote:
> I just switched the platform to JRuby 1.1 and the console works fine!  Why is
> the console not working with MRI?
>  

Seems to work for me even with MRI, but I'm on Linux. So possibly this
is Windows specific. Could you please file an issue for this with
details on your setup, I'd have a look at this then.

Thanks,
Erno


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: NetBeans 6.1 Rails Console

by bruparel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Be happy to.  I forgot the URL though for the issues list.  Can you forward it to me?
Thanks.
Bharat

Re: NetBeans 6.1 Rails Console

by Erno Mononen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

bruparel wrote:
> Be happy to.  I forgot the URL though for the issues list.  Can you forward
> it to me?
>  
Sure, http://www.netbeans.org/issues/enter_bug.cgi -> the right
component would be ruby, subcomponent rails. BTW, Tor had an idea that
this could be caused the usage of the noreadline parameter, so could you
please try whether the Rails console works for you from the command line
using:

script/console --irb='irb --noreadline'

Thanks,
Erno


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: NetBeans 6.1 Rails Console

by bruparel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Erno,
You are right.  I just confirmed this on my Fedora Core 5 Linux box.  The Rails Console comes up without any problems.  So it is a Windows specific problem.  I gave you the information on my Windows XP environment:  Ruby 1.8.6 with patch level 111.  My Fedora Core 5 is at patch level 114 however.  Anything else you need?
Also if you give me the URL to file this bug, I will be happy to.  Sorry, I lost the URL for file the issue.  I will bookmark it this time.
Thanks.
Bharat

Re: NetBeans 6.1 Rails Console

by Erno Mononen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Bharat,

thanks for following up on this. The info below is almost enough at this
point, just if you could still paste the info from the Help -> About
dialog to the issue then, to see the exact build and JDK versions. You
can file issues at http://www.netbeans.org/community/issues.html - I
would file the issue for you, but then I don't have the possibility to
get more info if needed (in case I can't reproduce on my configuration)
and you wouldn't be notified when the issue gets fixed.

Thanks,
Erno

bruparel wrote:

> Erno,
> You are right.  I just confirmed this on my Fedora Core 5 Linux box.  The
> Rails Console comes up without any problems.  So it is a Windows specific
> problem.  I gave you the information on my Windows XP environment:  Ruby
> 1.8.6 with patch level 111.  My Fedora Core 5 is at patch level 114 however.
> Anything else you need?
> Also if you give me the URL to file this bug, I will be happy to.  Sorry, I
> lost the URL for file the issue.  I will bookmark it this time.
> Thanks.
> Bharat
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: NetBeans 6.1 Rails Console

by bruparel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Done.
See below:
Issue 133066 posted
Email sent to: emononen, bruparel, issues@ruby  Go back to ISSUE# 133066

Re: NetBeans 6.1 Rails Console

by ebenezer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Two things to try:

1) On the windows command line > gem outdated
   This will show you if any of your windows gems need to be updated.  This can make a difference.

2) Ruby patch 114 is available (at least for linux).  If it is available for windows, or you can compile it, give it a spin.  It fixed a bug for me that was in patch 111.  But that bug was on linux.

Ebenezer

Re: NetBeans 6.1 Rails Console

by bruparel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I updated the outdated gems on my Windows machine.  It did not make a difference.
Regarding ruby patch 114, I don't have the c compiler to compile it so I have to wait for the binaries to be available.  I am not sure if that is the problem though.
Regards,
Bharat

Re: NetBeans 6.1 Rails Console

by ebenezer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I get a perfectly acceptable console on WinXp with the following command line, which I've since put into a .cmd file:

> start "console" /MAX ruby script\console

I just use that.  It works.  Set up the options so you can copy with select-enter and paste with a mouse-rightclick.


Re: NetBeans 6.1 Rails Console

by buhrmi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

Im a new user of rails and just wanted to update this, since its nagging me too.
::> script/console --irb='irb --noreadline' gives the same error

c:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/console.rb:32:in `exec': Exec format error - irb --noreadline  -r irb/completion -r "C:/Users/Stefan/Documents/NetBeansProjects/RailsApplication1/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.0/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'



Erno Mononen wrote:
bruparel wrote:
> Be happy to.  I forgot the URL though for the issues list.  Can you forward
> it to me?
>  
Sure, http://www.netbeans.org/issues/enter_bug.cgi -> the right
component would be ruby, subcomponent rails. BTW, Tor had an idea that
this could be caused the usage of the noreadline parameter, so could you
please try whether the Rails console works for you from the command line
using:

script/console --irb='irb --noreadline'

Thanks,
Erno


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org

Re: NetBeans 6.1 Rails Console

by Erno Mononen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

that'll be fixed for 6.5 M1, which should be out in about two weeks or
so. In fact I've had the fix laying on my disk for a while now, just
waiting for to be tested on Windows. I'll go ahead and attach a patch to
the issue (http://www.netbeans.org/issues/show_bug.cgi?id=133066) for
anyone on Windows to test and verify so that I can commit the patch,
otherwise I will test it on Win myself before M1.

Thanks,
Erno

buhrmi wrote:

> Hello,
>
> Im a new user of rails and just wanted to update this, since its nagging me
> too.
> ::> script/console --irb='irb --noreadline' gives the same error
>
> c:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/console.rb:32:in
> `exec': Exec format error - irb --noreadline  -r irb/completion -r
> "C:/Users/Stefan/Documents/NetBeansProjects/RailsApplication1/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.0/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'
>
>
>
>
> Erno Mononen wrote:
>  
>> bruparel wrote:
>>    
>>> Be happy to.  I forgot the URL though for the issues list.  Can you
>>> forward
>>> it to me?
>>>  
>>>      
>> Sure, http://www.netbeans.org/issues/enter_bug.cgi -> the right
>> component would be ruby, subcomponent rails. BTW, Tor had an idea that
>> this could be caused the usage of the noreadline parameter, so could you
>> please try whether the Rails console works for you from the command line
>> using:
>>
>> script/console --irb='irb --noreadline'
>>
>> Thanks,
>> Erno
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>>
>>    
>
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

LightInTheBox - Buy quality products at wholesale price