FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

problems with NB 6.7 RC1 switching from jruby 1.3.0 => jruby 1.3.1

 
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users
View previous topic :: View next topic  
Author Message
dyrathror



Joined: 20 Aug 2008
Posts: 42

PostPosted: 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 Reply with 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.

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
View user's profile Send private message
Erno Mononen
Posted via mailing list.





PostPosted: 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 Reply with quote

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

PostPosted: Wed Jun 17, 2009 3:06 pm    Post subject: Reply with 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.



log.txt
 Description:
NB log file

Download
 Filename:  log.txt
 Filesize:  60.77 KB
 Downloaded:  258 Time(s)


_________________
If all else fails, read the manuals.
Back to top
View user's profile Send private message
Erno Mononen
Posted via mailing list.





PostPosted: 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 Reply with quote

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

PostPosted: Wed Jun 17, 2009 4:05 pm    Post subject: Reply with 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
View user's profile Send private message
Erno Mononen
Posted via mailing list.





PostPosted: 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 Reply with quote

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

PostPosted: Wed Jun 17, 2009 11:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
dyrathror



Joined: 20 Aug 2008
Posts: 42

PostPosted: Thu Jun 18, 2009 6:05 am    Post subject: Reply with quote

I finally downloaded RC2 and installed it.

JRuby doesn't run any more either with this new installation :-/

I attached the log file which was building up continuously after the start. Perhaps it helps you to see anything.

The next step from my side will be a complete deinstall of all NB versions and workspaces and re-installing Sad Hope that at least this will solve my problem.

D.



messages.log.gz
 Description:

Download
 Filename:  messages.log.gz
 Filesize:  52.46 KB
 Downloaded:  38 Time(s)


_________________
If all else fails, read the manuals.
Back to top
View user's profile Send private message
dyrathror



Joined: 20 Aug 2008
Posts: 42

PostPosted: Thu Jun 18, 2009 7:55 am    Post subject: Reply with 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
View user's profile Send private message
Erno Mononen
Posted via mailing list.





PostPosted: 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 Reply with quote

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

PostPosted: Thu Jun 18, 2009 2:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB