<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>random utterings...: Rapt error during peepcodes test first development tutorial</title>
    <link>http://blog.randomutterings.com/articles/2007/09/13/rapt-error-during-peepcodes-test-first-development-tutorial</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Rapt error during peepcodes test first development tutorial</title>
      <description>&lt;p&gt;OK, let me start off by saying, I love the tutorials from peepcode, you guys are doing a great job so keep doing it.&lt;/p&gt;

&lt;p&gt;Alas, I got stuck while watching the &lt;a href="http://peepcode.com/products/test-first-development"&gt;Test-first-development&lt;/a&gt; tutorial.  They were using &lt;a href="http://rapt.rubyforge.org/"&gt;Rapt&lt;/a&gt; as an alternative to script/plugin and when I tried to run it I kept getting an error.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This error is misleading but at least it was obviously misleading, after all I know I'm in my Rails application directory.&lt;/p&gt;

&lt;p&gt;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 &lt;a href="http://rubyforge.org/tracker/index.php?func=detail&amp;aid=6611&amp;group_id=1889&amp;atid=7384"&gt;bug &lt;/a&gt; on the Rapt &lt;a href="http://rubyforge.org/projects/rapt/"&gt;Trac&lt;/a&gt; posted in 2006 that explains that the user must first add repositories by executing the following.&lt;/p&gt;

&lt;pre&gt;
&lt;p&gt;rapt discover&lt;/p&gt;
&lt;/pre&gt;

&lt;p&gt;If anyone knows how to have it default to yes without prompting you for every repository, please post a comment.&lt;/p&gt;

&lt;p&gt;Alternatively, you can add only the repositories you want to use by executing the following.&lt;/p&gt;

&lt;pre&gt;
&lt;p&gt;rapt source http://path-to-repository&lt;/p&gt;
&lt;/pre&gt;

</description>
      <pubDate>Thu, 13 Sep 2007 12:47:00 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:a5ba1b07-1d85-4136-9454-4820007eb561</guid>
      <author>Chris Barnes</author>
      <link>http://blog.randomutterings.com/articles/2007/09/13/rapt-error-during-peepcodes-test-first-development-tutorial</link>
      <category>Ruby</category>
      <category>ruby</category>
      <category>rails</category>
      <category>rapt</category>
      <category>plugins</category>
      <category>peepcode</category>
      <category>tutorial</category>
      <category>screencast</category>
      <trackback:ping>http://blog.randomutterings.com/articles/trackback/22</trackback:ping>
    </item>
    <item>
      <title>"Rapt error during peepcodes test first development tutorial" by Chris Barnes</title>
      <description>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.</description>
      <pubDate>Mon, 28 Jul 2008 15:07:45 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:b98ff476-17fc-416c-8dca-6eed50abdfaf</guid>
      <link>http://blog.randomutterings.com/articles/2007/09/13/rapt-error-during-peepcodes-test-first-development-tutorial#comment-2492</link>
    </item>
    <item>
      <title>"Rapt error during peepcodes test first development tutorial" by Rian</title>
      <description>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.</description>
      <pubDate>Wed, 09 Apr 2008 14:19:30 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:916d84e7-7a78-4730-96b5-9a8ce1439790</guid>
      <link>http://blog.randomutterings.com/articles/2007/09/13/rapt-error-during-peepcodes-test-first-development-tutorial#comment-1662</link>
    </item>
    <item>
      <title>"Rapt error during peepcodes test first development tutorial" by Chris Barnes</title>
      <description>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?</description>
      <pubDate>Tue, 30 Oct 2007 17:23:37 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:8869f317-531a-4dda-aa8a-eff279f6de5d</guid>
      <link>http://blog.randomutterings.com/articles/2007/09/13/rapt-error-during-peepcodes-test-first-development-tutorial#comment-18</link>
    </item>
    <item>
      <title>"Rapt error during peepcodes test first development tutorial" by tantle@hummusandpita.com</title>
      <description>I *still* can't rapt to work, but passing "-n" to discover will avoid the prompting.

   i.e. rapt discover -n

</description>
      <pubDate>Sun, 28 Oct 2007 21:25:48 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:5c2bf8a6-b083-4f6c-993a-1b126b9926e2</guid>
      <link>http://blog.randomutterings.com/articles/2007/09/13/rapt-error-during-peepcodes-test-first-development-tutorial#comment-16</link>
    </item>
    <item>
      <title>"Rapt error during peepcodes test first development tutorial" by Aleksandr</title>
      <description>Use this command: rapt discover --no-prompt</description>
      <pubDate>Sat, 13 Oct 2007 07:37:55 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:738da710-bd23-4a69-a30a-3f19ad6368f2</guid>
      <link>http://blog.randomutterings.com/articles/2007/09/13/rapt-error-during-peepcodes-test-first-development-tutorial#comment-6</link>
    </item>
  </channel>
</rss>
