Help, Newbie out of box: Rake tasks fetching failed error

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

Help, Newbie out of box: Rake tasks fetching failed error

by CaptKurt_99 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I'm new to RoR and would like to use Netbeans as my RoR IDE but cannot get a basic Rails project to work. I've been trying to solve this issue for about 2 weeks !!!.



1.)I downloaded the latest version of Netbeans RoR. I've tried NB6.7.1, NB6.8m1, and the nightly build.



2.)I've tried both MySQL5.0 & Derby. I start them in the Services panel before trying to create a new project.



3.)I create a new project. I specify only the development DB.



4.)The progress meter gets to  aprox. 25% and I get:

Rake tasks fetching failed with (working directory:....)

rake aborted!

No rake file found(looking for:rakefile, Rakefile, rakefile.rb, Rakefile.rb)



To resolve this I've tried:

1.)Tools->Ruby Gems->Updated: Updated everything in this tab



2.)Tools->Ruby Gems->New Gems: Installed the "mysql" gem.



Still getting the same error msg: Rake tasks fetching failed...



My Environment:

--Window XP Pro.

--Java 1.6 update 6

--NB6.8m1, and nightly build






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


Re: Help, Newbie out of box: Rake tasks fetching failed error

by Erno Mononen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Did you check http://forums.netbeans.org/post-47417.html#47417  ?

Looks like the same problem here - let me know if that doesn't help.

Thanks,
Erno

CaptKurt_99 wrote:

> I'm new to RoR and would like to use Netbeans as my RoR IDE but cannot get a basic Rails project to work. I've been trying to solve this issue for about 2 weeks !!!.
>
>
>
> 1.)I downloaded the latest version of Netbeans RoR. I've tried NB6.7.1, NB6.8m1, and the nightly build.
>
>
>
> 2.)I've tried both MySQL5.0 & Derby. I start them in the Services panel before trying to create a new project.
>
>
>
> 3.)I create a new project. I specify only the development DB.
>
>
>
> 4.)The progress meter gets to  aprox. 25% and I get:
>
> Rake tasks fetching failed with (working directory:....)
>
> rake aborted!
>
> No rake file found(looking for:rakefile, Rakefile, rakefile.rb, Rakefile.rb)
>
>
>
> To resolve this I've tried:
>
> 1.)Tools->Ruby Gems->Updated: Updated everything in this tab
>
>
>
> 2.)Tools->Ruby Gems->New Gems: Installed the "mysql" gem.
>
>
>
> Still getting the same error msg: Rake tasks fetching failed...
>
>
>
> My Environment:
>
> --Window XP Pro.
>
> --Java 1.6 update 6
>
> --NB6.8m1, and nightly build
>
>
>
>
>
>
> ---------------------------------------------------------------------
> 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@...


Help, Newbie out of box: Rake tasks fetching failed error

by CaptKurt_99 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Yes I tried  http://forums.netbeans.org/post-47417.html#47417 



I tried to upgrade to rubygems to 1.3.5 but didn't quite understand the process. I tried the command line route(from the Gems dir) and it didn't recognize the command(s). How is this different from upgrading the Gems package via the IDE tools menu ?



Thanks,



Any help is greatly appreciated.






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


Re: Help, Newbie out of box: Rake tasks fetching failed error

by Chris Kutler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am a bit confused about your wording which is basically "How is updating rubygems from the command line different from updating a gems package from the tools menu (assuming you mean the Ruby Gems manager)."

Updating rubygems is different from updataing a gems package. Updating a gems package from the GUI is basically the same as doing it from the command line, the IDE basically invokes a command line call.

Here is some info that you might or might not find helpful. I am not sure what you already know.

(1) Updating RubyGems

RubyGems is a gem packaging system that enables you to download and install Ruby libraries (gems).  "RubyGems is the name of the project that developed the gem packaging system and the gem command. " (See http://rubygems.org).

Basically, to update RubyGems to the lastest version, you type

gem update --system
(use "sudo gem update --system" where necessary)

(See http://rubygems.org/read/chapter/3#page14)

If you have NetBeans and you have your own Ruby installations, it gets a bit more complicated as you need to know when you are updating your NetBeans JRuby installation and your Ruby installation. You first need to know which command (JRuby or Ruby) you are calling when you type "gem" in the command line. If you are not sure, type:

which gem

For me, the response back is C:/ruby/bin/gem.bat

If you are wanting to update a different installation, such as your Ruby 1.9 installation, you either have to change your path variable and open a new command window, or use the full path to the command, such as

c:/Ruby/bin/gem update --system

Tip: What I do is put the path to my Ruby bin before the path to my JRuby bin in my path environment variable. When I want to invoke a JRuby binary, I put "jruby -S" in front of the command. For example, with my path set up this way, the first command invokes Ruby and the 2nd command invokes JRuby

gem update --system
jruby -S gem update --system

It doesn't matter what dir you do it from. The command knows where to do the update. What matters is which installation's gem command you are invoking. If you want to update your Ruby installation, make sure you are calling the gem command from the Ruby installation.

(2) Installing a gem

You can install a gem from the Ruby Gems tool or from the command line

* Using the Ruby Gems tool, make sure you select the right Ruby platform.
* Using the command line. Just make sure you are invoking the right gem command (from the right installation). Just like above, type "which gem" to see which command is called by default. Use the full path to make sure you call the right one, or use the above tip.

Also remember that you can't install native gems into your JRuby repository. See http://blogs.sun.com/divas/entry/using_gems_with_jruby

See also
http://blogs.sun.com/divas/entry/fixing_the_rails_requires_rubygems
http://blogs.sun.com/divas/entry/installing_your_own_jruby_to

CaptKurt_99 wrote:
Yes I tried  http://forums.netbeans.org/post-47417.html#47417 



I tried to upgrade to rubygems to 1.3.5 but didn't quite understand the process. I tried the command line route(from the Gems dir) and it didn't recognize the command(s). How is this different from upgrading the Gems package via the IDE tools menu ? 



Thanks, 



Any help is greatly appreciated.






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

  

-- 
Chris Kutler
Sun Cloud Learning Services
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@...