| View previous topic :: View next topic |
| Author |
Message |
dyrathror
Joined: 20 Aug 2008 Posts: 42
|
Posted: Wed Jun 17, 2009 7:48 am Post subject: problems with NB 6.7 RC1 switching from jruby 1.3.0 => jruby 1.3.1 |
|
|
Hello all,
I just tried to switch in NB 6.7 RC1 from jruby 1.3.0 to jruby 1.3.1 on Vista and got the strange effect that my rake tasks are all gone and I cannot start my project any more from NB.
In a shell everything works fine though.
Switching back to 1.3.0 didn't help. Somehow he complains no to find the right rails gem but the gem manager shows all installed gems correctly.
D.
_________________ If all else fails, read the manuals. |
|
| Back to top |
|
 |
Erno Mononen Posted via mailing list.
|
Posted: Wed Jun 17, 2009 8:39 am Post subject: problems with NB 6.7 RC1 switching from jruby 1.3.0 => jruby 1.3.1 |
|
|
Hello,
dyrathror wrote:
| Quote: | Hello all,
I just tried to switch in NB 6.7 RC1 from jruby 1.3.0 to jruby 1.3.1 on Vista and got the strange effect that my rake tasks are all gone and I cannot start my project any more from NB.
|
This is probably due to the problem below, when the right Rails gem is
not found, the building of the rake task list fails.
| Quote: |
In a shell everything works fine though.
Switching back to 1.3.0 didn't help. Somehow he complains no to find the right rails gem but the gem manager shows all installed gems correctly.
|
Strange, not sure off hand what could be the problem here if the right
Rails version is shown as installed in the gem manager. Could you turn
on detailed logging as per the instructions at
http://wiki.netbeans.org/FaqRubyNBLogging67 and send the log file to me?
Thanks,
Erno
|
|
| Back to top |
|
 |
dyrathror
Joined: 20 Aug 2008 Posts: 42
|
Posted: Wed Jun 17, 2009 3:06 pm Post subject: |
|
|
Hello Erno,
I attach the logfile.
I have my gems installed in a different folder "c:\rubygems".
I can start my rake tasks from shell and run the server, ...
Only not from NB any more :-/
D.
| Description: |
|
 Download |
| Filename: |
log.txt |
| Filesize: |
60.77 KB |
| Downloaded: |
258 Time(s) |
_________________ If all else fails, read the manuals. |
|
| Back to top |
|
 |
Erno Mononen Posted via mailing list.
|
Posted: Wed Jun 17, 2009 3:51 pm Post subject: problems with NB 6.7 RC1 switching from jruby 1.3.0 => jruby 1.3.1 |
|
|
Hi,
It seems that your JRuby 1.3.1 installation doesn't have rake installed,
can you check that? What does
C:\jruby-1.3.1\bin\jruby -S gem list --local
output, can you see rake there?
Erno
dyrathror wrote:
| Quote: | Hello Erno,
I attach the logfile.
I have my gems installed in a different folder "c:\rubygems".
I can start my rake tasks from shell and run the server, ...
Only not from NB any more :-/
D.
------------------------
If all else fails, read the manuals.
Attachments:
http://forums.netbeans.org//files/log_601.txt
|
|
|
| Back to top |
|
 |
dyrathror
Joined: 20 Aug 2008 Posts: 42
|
Posted: Wed Jun 17, 2009 4:05 pm Post subject: |
|
|
Hello Erno,
yes, rake is installed in version 0.8.7
From the command line everything works fine. Only from NB after the switch to JRuby 1.3.1 it doesn't work any more.
D.
_________________ If all else fails, read the manuals. |
|
| Back to top |
|
 |
Erno Mononen Posted via mailing list.
|
Posted: Wed Jun 17, 2009 6:48 pm Post subject: problems with NB 6.7 RC1 switching from jruby 1.3.0 => jruby 1.3.1 |
|
|
OK, thanks for the info. Another thing I noticed from the log is that
you have GEM_HOME=c:/rubygems, is that correct for you JRuby
installation? If not, can you try unsetting it?
Erno
dyrathror wrote:
| Quote: | Hello Erno,
yes, rake is installed in version 0.8.7
From the command line everything works fine. Only from NB after the switch to JRuby 1.3.1 it doesn't work any more.
D.
------------------------
If all else fails, read the manuals.
|
|
|
| Back to top |
|
 |
dyrathror
Joined: 20 Aug 2008 Posts: 42
|
Posted: Wed Jun 17, 2009 11:12 pm Post subject: |
|
|
Jupp, that is correct.
Due to several times of changing the JRuby Version and running two versions at the same time I decided to put the gems into their own directory.
BTW, I am just downloading RC2. Perhaps a reinstall will save my problem.
How important would you think is it to find the bug in my installation? Am I the only one who reported these problems with a JRuby version switch?
D.
_________________ If all else fails, read the manuals. |
|
| Back to top |
|
 |
dyrathror
Joined: 20 Aug 2008 Posts: 42
|
|
| Back to top |
|
 |
dyrathror
Joined: 20 Aug 2008 Posts: 42
|
Posted: Thu Jun 18, 2009 7:55 am Post subject: |
|
|
Ok, I deleted all NB installations.
Then I installed RC2 only and tried JRuby 1.2.0 (internal) worked with locally installed rails gems under NB JRuby dir.
Then I switched to my JRuby 1.3.1 installation and suddenly the rake gem didn't show up any more. I suppose it is because the rake gem was installed in the gem dir under the 1.3.1 installation and not in the GEM_HOME dir.
I installed rake which went into the GEM_HOME this time and now everything works fine.
Hope this description can help you figure out where the problem lies.
D.
_________________ If all else fails, read the manuals. |
|
| Back to top |
|
 |
Erno Mononen Posted via mailing list.
|
Posted: Thu Jun 18, 2009 1:12 pm Post subject: problems with NB 6.7 RC1 switching from jruby 1.3.0 => jruby 1.3.1 |
|
|
Glad to hear you solved it. BTW, did you have the gem home correctly set
for the 1.3.1 platform in Ruby Platform Manager? Perhaps the problem was
that the IDE didn't set it up correctly when you added the platform.
Cheers,
Erno
dyrathror wrote:
| Quote: | Ok, I deleted all NB installations.
Then I installed RC2 only and tried JRuby 1.2.0 (internal) worked with locally installed rails gems under NB JRuby dir.
Then I switched to my JRuby 1.3.1 installation and suddenly the rake gem didn't show up any more. I suppose it is because the rake gem was installed in the gem dir under the 1.3.1 installation and not in the GEM_HOME dir.
I installed rake which went into the GEM_HOME this time and now everything works fine.
Hope this description can help you figure out where the problem lies.
D.
------------------------
If all else fails, read the manuals.
|
|
|
| Back to top |
|
 |
dyrathror
Joined: 20 Aug 2008 Posts: 42
|
Posted: Thu Jun 18, 2009 2:42 pm Post subject: |
|
|
Hello Erno,
in the Ruby Platform Manager I've set the following:
GEM_HOME=c:\rubygems
GEM_PATH=c:\jruby-1.3.1\lib\ruby\gems\1.8\gems:c:\rubygems
its the same I did for 1.3.0
D.
_________________ If all else fails, read the manuals. |
|
| Back to top |
|
 |
|