<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Pragmatic Forums | Posts in topic 'Error from initial run of Depot'</title>
    <link>/forums/148/topics/9665.rss</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>Error from initial run of Depot posted by Bradley Pattee @ Sat, 31 Dec 2011 22:59:47 +0000</title>
      <description>&lt;p&gt;I am running linux mint 12.&lt;/p&gt;


	&lt;p&gt;I got syntax errors when I tried Harsh&amp;#8217;s edits to the gemfile.&lt;br /&gt;But that gave me the idea of trying it from the command line.&lt;/p&gt;


	&lt;p&gt;The following solved the problem for me:&lt;/p&gt;


	&lt;p&gt;&lt;del&gt;&amp;#8212;&lt;/del&gt;-&lt;del&gt;&amp;#8212;&lt;/del&gt;-&lt;del&gt;&amp;#8212;&lt;/del&gt;-&lt;del&gt;&amp;#8212;&lt;/del&gt;-&lt;del&gt;&amp;#8212;&lt;/del&gt;-&lt;br /&gt;brad@wubi ~/work/demo $ gem install execjs&lt;br /&gt;Successfully installed execjs-1.2.13&lt;br /&gt;1 gem installed&lt;br /&gt;Installing ri documentation for execjs-1.2.13&amp;#8230;&lt;br /&gt;Installing RDoc documentation for execjs-1.2.13&amp;#8230;&lt;br /&gt;&lt;del&gt;&amp;#8212;&lt;/del&gt;-&lt;del&gt;&amp;#8212;&lt;/del&gt;-&lt;del&gt;&amp;#8212;&lt;/del&gt;-&lt;del&gt;&amp;#8212;&lt;/del&gt;-&lt;del&gt;&amp;#8212;&lt;/del&gt;-&lt;/p&gt;


	&lt;p&gt;Good Journeys, Brad&lt;/p&gt;</description>
      <pubDate>Sat, 31 Dec 2011 22:59:47 +0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:148:9665:28097</guid>
      <author>Bradley Pattee</author>
      <link>http://forums.pragprog.com/forums/148/topics/9665</link>
    </item>
    <item>
      <title>Error from initial run of Depot posted by Sean Robbins @ Wed, 12 Oct 2011 20:12:19 +0000</title>
      <description>&lt;p&gt;Yeah, my bad. I needed to install a JavaScript Runtime. I&amp;#8217;ve installed nodejs and the error has gone.&lt;/p&gt;


	&lt;p&gt;Thanks.&lt;/p&gt;</description>
      <pubDate>Wed, 12 Oct 2011 20:12:19 +0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:148:9665:26580</guid>
      <author>Sean Robbins</author>
      <link>http://forums.pragprog.com/forums/148/topics/9665</link>
    </item>
    <item>
      <title>Error from initial run of Depot posted by Sam Ruby @ Wed, 12 Oct 2011 11:11:45 +0000</title>
      <description>&lt;p&gt;If you commented out sass and coffeesript, you will likely not be able to follow along with the 3.1 version of the book.&lt;/p&gt;


	&lt;p&gt;Ubuntu is my primary development environment, and I haven&amp;#8217;t seen this problem.  I run with both 10.04 and 11.04.  This particular problem was pretty Windows specific.&lt;/p&gt;


	&lt;p&gt;What you want to do is to get to the point where &lt;code&gt;rake about&lt;/code&gt; returns an indication that it has found a JavaScript Runtime.  Typically, the easiest way to accomplish this is to simply &lt;code&gt;apt-get install nodejs&lt;/code&gt;.&lt;/p&gt;</description>
      <pubDate>Wed, 12 Oct 2011 11:11:45 +0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:148:9665:26576</guid>
      <author>Sam Ruby</author>
      <link>http://forums.pragprog.com/forums/148/topics/9665</link>
    </item>
    <item>
      <title>Error from initial run of Depot posted by Sean Robbins @ Wed, 12 Oct 2011 00:50:33 +0000</title>
      <description>&lt;p&gt;I had the same error on Ubuntu.&lt;/p&gt;


	&lt;p&gt;At the moment the only way I can get this to work is to completely remove execjs. Following the instructions here: &lt;a href="http://stackoverflow.com/questions/5955004/ruby-on-rails-3-1-without-execjs"&gt;http://stackoverflow.com/questions/5955004/ruby&amp;#8230;&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;This might cause me some pain as I work through the rest of the book?&lt;/p&gt;</description>
      <pubDate>Wed, 12 Oct 2011 00:50:33 +0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:148:9665:26570</guid>
      <author>Sean Robbins</author>
      <link>http://forums.pragprog.com/forums/148/topics/9665</link>
    </item>
    <item>
      <title>Error from initial run of Depot posted by Sam Ruby @ Tue, 20 Sep 2011 22:41:11 +0000</title>
      <description>&lt;p&gt;Once again, I will suggest &lt;code&gt;bundle update&lt;/code&gt; as execjs 3.1.8 contains the following fix:&lt;/p&gt;


	&lt;p&gt;&lt;a href="https://github.com/sstephenson/execjs/commit/a7cdbfc0c1c89b6b2570f74673b4aceffe7c9d56"&gt;https://github.com/sstephenson/execjs/commit/a7&amp;#8230;&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;If you have changed your Gemfile, please undo that change and test this fix.&lt;/p&gt;</description>
      <pubDate>Tue, 20 Sep 2011 22:41:11 +0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:148:9665:26298</guid>
      <author>Sam Ruby</author>
      <link>http://forums.pragprog.com/forums/148/topics/9665</link>
    </item>
    <item>
      <title>Error from initial run of Depot posted by Jay Downey @ Tue, 20 Sep 2011 14:11:14 +0000</title>
      <description>&lt;p&gt;I get the same error when trying to run the example in Chapter 2 &amp;#8220;Instant Gratification.&amp;#8221;  Instead of getting the display in Figure 2.2, I get the following in both &lt;span class="caps"&gt;IE8&lt;/span&gt; and Firefox 4.  I am definitely a noob so I apologize if I&amp;#8217;ve missed something that might be completely obvious to most of the users here.&lt;/p&gt;


	&lt;blockquote&gt;
		&lt;p&gt;ExecJS::RuntimeError in Say#hello&lt;/p&gt;
	&lt;/blockquote&gt;


	&lt;p&gt;Showing C:/Ruby/WORK/demo/app/views/layouts/application.html.erb where line #6 raised:&lt;/p&gt;


	&lt;p&gt;䌧尺坜义佄南屜祳瑳浥㈳屜獣牣灩⹴硥履‧獩渠瑯爠捥杯楮敺⁤獡愠⁮湩整湲污漠⁲硥整湲污挠浯慭摮ബ漊数慲汢⁥牰杯慲⁭牯戠瑡档映汩⹥਍
  (in C:/Ruby/WORK/demo/app/assets/javascripts/say.js.coffee)&lt;/p&gt;


	&lt;p&gt;Extracted source (around line #6):&lt;/p&gt;


	&lt;p&gt;3: &lt;br /&gt;4:   Demo&lt;br /&gt;5:   &amp;lt;&lt;span&gt;= stylesheet_link_tag    &amp;#8220;application&amp;#8221; %&amp;gt;&lt;br /&gt;6:   &amp;lt;&lt;/span&gt;= javascript_include_tag &amp;#8220;application&amp;#8221; &lt;span&gt;&amp;gt;&lt;br /&gt;7:   &amp;lt;&lt;/span&gt;= csrf_meta_tags %&amp;gt;&lt;br /&gt;8: &lt;br /&gt;9: &lt;/p&gt;


	&lt;p&gt;Rails.root: C:/Ruby/WORK/demo&lt;br /&gt;Application Trace | Framework Trace | Full Trace&lt;/p&gt;


	&lt;p&gt;app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb___599409497_16714068&amp;#8217;&lt;/p&gt;


	&lt;p&gt;Request&lt;/p&gt;


	&lt;p&gt;Parameters:&lt;/p&gt;


	&lt;p&gt;None&lt;/p&gt;


	&lt;p&gt;Show session dump&lt;/p&gt;


	&lt;p&gt;Show env dump&lt;br /&gt;Response&lt;/p&gt;


	&lt;p&gt;Headers:&lt;/p&gt;


	&lt;p&gt;None&lt;/p&gt;</description>
      <pubDate>Tue, 20 Sep 2011 20:10:15 +0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:148:9665:26286</guid>
      <author>Jay Downey</author>
      <link>http://forums.pragprog.com/forums/148/topics/9665</link>
    </item>
    <item>
      <title>Error from initial run of Depot posted by Jino Thomas @ Tue, 20 Sep 2011 19:13:55 +0000</title>
      <description>&lt;p&gt;Thanks Harsh Pandit. That worked! &lt;br /&gt;&lt;span class="caps"&gt;NOTE&lt;/span&gt;: if using copy/paste replace the single quotes. They showed up as different.&lt;/p&gt;


	&lt;p&gt;I am new to RoR so could you explain the fix. I assume it simply replaced the gem bundle &amp;#8216;execjs&amp;#8217; with your source rather then my installed version? Would an update fix this? Please explain as I am eager to learn.&lt;/p&gt;


	&lt;p&gt;Thanks again.&lt;/p&gt;</description>
      <pubDate>Tue, 20 Sep 2011 19:13:55 +0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:148:9665:26292</guid>
      <author>Jino Thomas</author>
      <link>http://forums.pragprog.com/forums/148/topics/9665</link>
    </item>
    <item>
      <title>Error from initial run of Depot posted by Emile Silvis @ Tue, 20 Sep 2011 13:08:58 +0000</title>
      <description>&lt;p&gt;Hi Sam &amp;#8211; a &lt;code&gt;bundle update&lt;/code&gt; does not seem to fix it. A GitHub issue was logged: &lt;a href="https://github.com/sstephenson/execjs/issues/48"&gt;https://github.com/sstephenson/execjs/issues/48&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 20 Sep 2011 14:01:35 +0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:148:9665:26285</guid>
      <author>Emile Silvis</author>
      <link>http://forums.pragprog.com/forums/148/topics/9665</link>
    </item>
    <item>
      <title>Error from initial run of Depot posted by Sam Ruby @ Tue, 20 Sep 2011 11:44:12 +0000</title>
      <description>&lt;p&gt;If I&amp;#8217;m following the commit logs correctly, it looks like a simple &lt;code&gt;bundle update&lt;/code&gt; will do&amp;#8230; as it will install execjs (1.2.7) which contains this fix:&lt;/p&gt;


	&lt;p&gt;&lt;a href="https://gist.github.com/rails/rails/issues/2880#issuecomment-2125197"&gt;https://gist.github.com/rails/rails/issues/2880&amp;#8230;&lt;/a&gt;&lt;br /&gt;&lt;a href="https://github.com/sstephenson/execjs/pull/46"&gt;https://github.com/sstephenson/execjs/pull/46&lt;/a&gt;&lt;br /&gt;&lt;a href="https://github.com/sstephenson/execjs/commits/master"&gt;https://github.com/sstephenson/execjs/commits/m&amp;#8230;&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 20 Sep 2011 11:44:12 +0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:148:9665:26280</guid>
      <author>Sam Ruby</author>
      <link>http://forums.pragprog.com/forums/148/topics/9665</link>
    </item>
    <item>
      <title>Error from initial run of Depot posted by Harsh Pandit @ Tue, 20 Sep 2011 10:51:16 +0000</title>
      <description>&lt;p&gt;1) Go to your application &lt;br /&gt;cd Products&lt;br /&gt;2) Then Edit your gemfile&lt;br /&gt;edit gemfile&lt;br /&gt;3) In Editor window write following line in file&lt;br /&gt;gem &amp;#8216;execjs&amp;#8217;, :git =&amp;gt; &amp;#8216;&lt;a&gt;git://github.com/kennyj/execjs.git&lt;/a&gt;&amp;#8216;&lt;br /&gt;4) Save File and install bundle again&lt;br /&gt;bundle install&lt;/p&gt;


	&lt;p&gt;like below &lt;br /&gt;C:\Sites\TESTAP~1&amp;gt;bundle install&lt;br /&gt;Fetching &lt;a&gt;git://github.com/kennyj/execjs.git&lt;/a&gt;&lt;br /&gt;remote: Counting objects: 854, done.&lt;br /&gt;remote: Compressing objects: 100% (441/441), done.&lt;br /&gt;remote: Total 854 (delta 457), reused 793 (delta 398)Receiving objects:&lt;/p&gt;


	&lt;p&gt;Receiving objects: 100% (854/854), 94.14 KiB | 42 KiB/s, done.&lt;br /&gt;Resolving deltas: 100% (457/457), done.&lt;br /&gt;Fetching source index for &lt;a href="http://rubygems.org/"&gt;http://rubygems.org/&lt;/a&gt;&lt;br /&gt;........&lt;/p&gt;


	&lt;p&gt;5)now restart your server and check again.&lt;/p&gt;</description>
      <pubDate>Tue, 20 Sep 2011 10:51:16 +0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:148:9665:26277</guid>
      <author>Harsh Pandit</author>
      <link>http://forums.pragprog.com/forums/148/topics/9665</link>
    </item>
    <item>
      <title>Error from initial run of Depot posted by Jino Thomas @ Mon, 19 Sep 2011 22:15:11 +0000</title>
      <description>&lt;p&gt;I am receiving an error when running Depot for the first time at localhost:3000/products (page 67)&lt;/p&gt;


	&lt;p&gt;&lt;span class="caps"&gt;NOTE&lt;/span&gt;: the demo app works fine. I am running the updated 3.1 version from RailsInstaller version 2.0 on Windows 7&lt;/p&gt;


&lt;a href="http://www.enwise.co/ror-error.jpg"&gt;Screen capture of the error&lt;/a&gt;

&lt;pre&gt;&lt;code&gt;
ExecJS::RuntimeError in Products#index

Showing D:/Zector/rails/work/depot/app/views/layouts/application.html.erb where line #6 raised:

䌧尺坜湩潤獷屜祓瑳浥㈳屜獣牣灩⹴硥履‧獩渠瑯爠捥杯楮敺⁤獡愠⁮湩整湲污漠⁲硥整湲污挠浯慭摮ബ漊数慲汢⁥牰杯慲⁭牯戠瑡档映汩⹥਍
  (in D:/Zector/rails/work/depot/app/assets/javascripts/products.js.coffee)

Extracted source (around line #6):

3: &amp;lt;head&amp;gt;
4:   &amp;lt;title&amp;gt;Depot&amp;lt;/title&amp;gt;
5:   &amp;lt;%= stylesheet_link_tag    "application" %&amp;gt;
6:   &amp;lt;%= javascript_include_tag "application" %&amp;gt;
7:   &amp;lt;%= csrf_meta_tags %&amp;gt;
8: &amp;lt;/head&amp;gt;
9: &amp;lt;body&amp;gt;

Rails.root: D:/Zector/rails/work/depot

Application Trace | Framework Trace | Full Trace

app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb___554235847_35047824'
app/controllers/products_controller.rb:7:in `index'

Request

Parameters:</description>
      <pubDate>Mon, 19 Sep 2011 22:37:30 +0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:148:9665:26271</guid>
      <author>Jino Thomas</author>
      <link>http://forums.pragprog.com/forums/148/topics/9665</link>
    </item>
  </channel>
</rss>
