Rapt error during peepcodes test first development tutorial

Posted by Chris Barnes Thu, 13 Sep 2007 12: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.
  2. Naked carmen electra. From Carmen electra.
    Carmen electra nude. Carmen electra naked. Carmen electra. Carmen electra boobs.
  3. psychicchatonline From psychicchatonline
    <.......>
  4. Abilify side effects. From Side affects of abilify.
    Abilify. Abilify and diabetes. Lexapro and abilify.

Comments - Leave a response

  1. Avatar
    Aleksandr 29 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 6 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.
  5. Avatar
    Chris Barnes 10 months later:
    Glad to hear it Rian. Its so rewarding to hear that this helped someone else. I've learned most of what I know from others posting what they've learned on blogs and forums and I'm glad to be able to give something back.
  6. Avatar
    Richard 12 months later:
    You helped me too... Thanks
  7. Avatar
    Geoffrey Grosenbach about 1 year later:
    Thanks for the bug report! Rapt was a great idea at the time but hasn't been updated much since then. I'll issue an update to the screencast that advises the use of script/plugin instead.