2 2

Rapt error during peepcodes test first development tutorial 4

Posted by Chris Barnes Thu, 13 Sep 2007 16:47:00 GMT

OK, let me start off by saying, I love the tutorials from peepcode, you guys are doing a great job so keep doing it.

Alas, I got stuck while watching the Test-first-development tutorial. They were using Rapt as an alternative to script/plugin and when I tried to run it I kept getting an error.

Error: RaPT currently does not work outside of a Rails application directory. Please change to the top level of a Rails application and try again.

This error is misleading but at least it was obviously misleading, after all I know I'm in my Rails application directory.

After some googling, I found a post describing a work around for the problem, but it basically gave instructions on installing the plugin with script/plugin. But the guys at peepcode had a reason for using rapt over script/plugin (its faster). So I Google some more. I finally find a bug on the Rapt Trac posted in 2006 that explains that the user must first add repositories by executing the following.

rapt discover

If anyone knows how to have it default to yes without prompting you for every repository, please post a comment.

Alternatively, you can add only the repositories you want to use by executing the following.

rapt source http://path-to-repository

Trackbacks

Use the following link to trackback from your own site:
http://blog.randomutterings.com/articles/trackback/22

  1. Lexapro. From Stopping the use of lexapro.
    Lexapro. Lexapro 10mg. Lexapro dosage.

Comments - Leave a response

  1. Avatar
    Aleksandr 30 days later:
    Use this command: rapt discover --no-prompt
  2. Avatar
    tantle@hummusandpita.com about 1 month later:
    I *still* can't rapt to work, but passing "-n" to discover will avoid the prompting. i.e. rapt discover -n
  3. Avatar
    Chris Barnes about 1 month later:
    Thanks for the comments guys, I *still* can't rapt to work, but passing "-n" to discover will avoid the prompting. i.e. rapt discover -n Are you still having the same problem that I described?
  4. Avatar
    Rian 7 months later:
    Just ran into precisely the same thing (running through the peepcode) and nearly passed out from the "obviously misleading" nature of the error. You saved me from having a coronary. My wife thanks you.