
| View previous topic :: View next topic |
| Author |
Message |
miganb
Joined: 15 Aug 2008 Posts: 15
|
Posted: Wed Aug 27, 2008 8:37 am Post subject: 6.5 troubles with Rails console within Netbeans |
|
|
Hello,
I've two major problems with Rails console within Netbeans 6.5 beta on my Mac PPC system 10.4.11, java 5.
1 - It takes a huge amount of time to fire the Rails console.
(as if takes an even more huge amount of time to fire Netbeans, create any project, especially ruby ones, and use rake tasks and migrations).
But outside of Netbeans, it is almost immediate, so maybe there is something in the way which slows down Netbeans.
2 - The Rails console does not seem to take care of changes in models after a few minutes.
It seems to freeze the code, which makes it extremely difficult to test.
I've also noted this kind of behaviour outside of Netbeans, but it takes hours to do so, which is not so bad.
If anybody has an idea how to solve those problems, I would be grateful. |
|
| Back to top |
|
 |
Erno Mononen Posted via mailing list.
|
Posted: Wed Aug 27, 2008 9:00 am Post subject: 6.5 troubles with Rails console within Netbeans |
|
|
miganb wrote:
| Quote: | Hello,
I've two major problems with Rails console within Netbeans 6.5 beta on my Mac PPC system 10.4.11, java 5.
1 - It takes a huge amount of time to fire the Rails console.
(as if takes an even more huge amount of time to fire Netbeans, create any project, especially ruby ones, and use rake tasks and migrations).
But outside of Netbeans, it is almost immediate, so maybe there is something in the way which slows down Netbeans.
|
Which platform are you using for the project (you can check it in
Project Properties)? Sounds like this could be caused the slower startup
time of JRuby (vs. MRI Ruby). In case the project is using JRuby, could
you try switching to MRI Ruby and see if that helps?
| Quote: |
2 - The Rails console does not seem to take care of changes in models after a few minutes.
It seems to freeze the code, which makes it extremely difficult to test.
I've also noted this kind of behaviour outside of Netbeans, but it takes hours to do so, which is not so bad.
|
I'll need to look at this, maybe there is some switch we should be
passing to the Rails console in the IDE. Could you also try whether you
experience this outside of NetBeans with JRuby, e.g. try running the
rails console as follows (in your project dir):
<netbeans install dir>/ruby2/jruby-1.1.3/bin/jruby script/console
Erno
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org |
|
| Back to top |
|
 |
miganb
Joined: 15 Aug 2008 Posts: 15
|
Posted: Wed Aug 27, 2008 9:16 am Post subject: Re: 6.5 troubles with Rails console within Netbeans |
|
|
| Erno Mononen wrote: |
Which platform are you using for the project (you can check it in
Project Properties)?
|
I'm using Built-in JRuby 1.1.3
| Erno Mononen wrote: | n case the project is using JRuby, could
you try switching to MRI Ruby and see if that helps?
|
Before trying it, is MRI Ruby this one for example:
Ruby 1.8.6 (2007-09-23 patchlevel 110) [powerpc-darwin8.11.0] which I installed in /usr/local/bin/ruby?
[quote] |
|
| Back to top |
|
 |
Erno Mononen Posted via mailing list.
|
Posted: Wed Aug 27, 2008 9:23 am Post subject: 6.5 troubles with Rails console within Netbeans |
|
|
Hi,
miganb wrote:
| Quote: | Erno Mononen wrote:
| Quote: | Which platform are you using for the project (you can check it in Project Properties)?
|
I'm using Built-in JRuby 1.1.3
Erno Mononen wrote:
| Quote: | n case the project is using JRuby, could you try switching to MRI Ruby and see if that helps?
|
Before trying it, is MRI Ruby this one for example:
Ruby 1.8.6 (2007-09-23 patchlevel 110) [powerpc-darwin8.11.0] which I installed in /usr/local/bin/ruby?
|
Right, that's it. Let us know then,
Thanks,
Erno
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org |
|
| Back to top |
|
 |
miganb
Joined: 15 Aug 2008 Posts: 15
|
Posted: Wed Aug 27, 2008 9:30 am Post subject: Re: 6.5 troubles with Rails console within Netbeans |
|
|
| Erno Mononen wrote: | In case the project is using JRuby, could you try switching to MRI Ruby and see if that helps?
|
Yes, it helps:
43 seconds to load the Rails console with JRuby built-in and it shows those lines:
Loading development environment (Rails 2.1.0)
JRuby limited openssl loaded. gem install jruby-openssl for full support.
http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
>>
14 seconds to load the Rails console under MRI Ruby and it shows those lines:
Loading development environment (Rails 2.1.0)
>> |
|
| Back to top |
|
 |
miganb
Joined: 15 Aug 2008 Posts: 15
|
Posted: Wed Aug 27, 2008 9:44 am Post subject: Re: 6.5 troubles with Rails console within Netbeans |
|
|
| Erno Mononen wrote: |
I'll need to look at this, maybe there is some switch we should be
passing to the Rails console in the IDE. Could you also try whether you
experience this outside of NetBeans with JRuby, e.g. try running the
rails console as follows (in your project dir):
<netbeans install dir>/ruby2/jruby-1.1.3/bin/jruby script/console
|
It takes about the same time as directly from Netbeans, that is 42 seconds versus 43 seconds.
I detail here the loading in case it is helpful:
From the terminal:
/Applications/NetBeans/NetBeans\ 6.5\ Beta.app/Contents/Resources/NetBeans/ruby2/jruby-1.1.3/bin/jruby script/console
After 12 seconds, I get this line:
Loading development environment (Rails 2.1.0)
After 36 seconds (that is: 36 - 12 = 24 seconds to load), I get those lines:
JRuby limited openssl loaded. gem install jruby-openssl for full support.
http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
After 42 seconds (that is: 42 - 36 = 6 seconds to load), I get this line:
>> |
|
| Back to top |
|
 |
Erno Mononen Posted via mailing list.
|
Posted: Wed Aug 27, 2008 10:11 am Post subject: 6.5 troubles with Rails console within Netbeans |
|
|
miganb wrote:
| Quote: | Erno Mononen wrote:
| Quote: | I'll need to look at this, maybe there is some switch we should be passing to the Rails console in the IDE. Could you also try whether you experience this outside of NetBeans with JRuby, e.g. try running the rails console as follows (in your project dir): <netbeans install dir>/ruby2/jruby-1.1.3/bin/jruby script/console
|
It takes about the same time as directly from Netbeans, that is 42 seconds versus 43 seconds.
I detail here the loading in case it is helpful:
|
Thanks for the analysis, that was useful. JRuby startup seems to take
rather long on your setup, on my laptop loading the Rails console with
JRuby takes less than 10 seconds. Unfortunately I don't know what we
could do about it in the NetBeans IDE, not sure if there is a way to
speed it up somehow. Might be worth asking on the JRuby users mailing
list (please see http://xircles.codehaus.org/projects/jruby/lists).
Erno
| Quote: |
From the terminal:
/Applications/NetBeans/NetBeans\ 6.5\ Beta.app/Contents/Resources/NetBeans/ruby2/jruby-1.1.3/bin/jruby script/console
After 12 seconds, I get this line:
Loading development environment (Rails 2.1.0)
After 36 seconds (that is: 36 - 12 = 24 seconds to load), I get those lines:
JRuby limited openssl loaded. gem install jruby-openssl for full support.
http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
After 42 seconds (that is: 42 - 36 = 6 seconds to load), I get this line:
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org
|
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org |
|
| Back to top |
|
 |
miganb
Joined: 15 Aug 2008 Posts: 15
|
Posted: Wed Aug 27, 2008 5:22 pm Post subject: Re: 6.5 troubles with Rails console within Netbeans |
|
|
Thank you very much for your answers. I've subscribed to the JRuby users mailing list, now I just have to wait till I receive the confirmation. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|
|