Note that there are some explanatory texts on larger screens.

plurals
  1. POApp crashed because of syntax error in an helper utf-8 encoded
    primarykey
    data
    text
    <p>I'm using heroku to deploy my app (rails 3). Ok so I do the usual, which is a <code>git commit</code>, a <code>git push heroku master</code> => deployment is ok, gems are installed, etc...</p> <p>When running my app in the web browser, I get an heroku error : app crashed.</p> <pre><code>In the ouput of heroku logs, this got my attention : ==&gt; dyno-2625316.log (crash) &lt;== /disk1/home/slugs/321697_5debeb5_58eb-de03f9a2-bd41-487c-aae7-6b20b9281d85/mnt/.bundle/gems/ruby/1.8/gems/activesupport- 3.0.0/lib/active_support/dependencies.rb:239:in `require': /disk1/home/slugs/321697_5debeb5_58eb-de03f9a2-bd41-487c-aae7 -6b20b9281d85/mnt/app/helpers/string_helper.rb:6: syntax error, unexpected kEND, expecting $end (SyntaxError) </code></pre> <p>It seems that there's a syntaxt error in my string_helper module. This file is encoded in utf-8 (I precise it because it can be important).</p> <p>This file contains the following lines (empty) :</p> <pre><code>module StringHelper end </code></pre> <p>Note : I had a groups_helper file with methods in it, and the app crashed because of that. I deleted it and now the error points to this stringhelper.</p> <p>What I will do now : delete this file an redeploy.</p> <p><strong>Edit</strong> I did delete string_helper. Now the error is on events_controller.rb, the very same error</p> <pre><code>==&gt; dyno-2625316.log (crash) &lt;== /disk1/home/slugs/321697_401813b_58eb-4b2e3910-f043-4e4f-8eae-8631c932a62b/mnt/.bundle/gems/ruby/1.8/gems/activesupport- 3.0.0/lib/active_support/dependencies.rb:239:in `require': /disk1/home/slugs/321697_401813b_58eb-4b2e3910-f043-4e4f-8eae -8631c932a62b/mnt/app/controllers/events_controller.rb:104: syntax error, unexpected kEND, expecting $end (SyntaxError) </code></pre> <p>line 104 is the last end of the class</p> <pre><code>class EventsController &lt; ApplicationController layout 'event' def index end ... end </code></pre> <p>This file is also in utf-8</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload