Coffeescript is very sensitive to whitespace, and it does not support !==
and ===
if you have that in your code that might be a reason for the error, cost me
an hour today:)
Why don't you post your code in a gist so that we can take a look at it?

Martin


On Sun, May 15, 2011 at 3:08 PM, egervari <[email protected]> wrote:

> > You might want to jump directly to coffeescript (use the barista gem). It
> is
> > the rubyfication of javascript and makes coding client side both fun and
> > productive again and will be part of rails 3.1. It works more than nicely
> > with jquery too. Take a look at this presentation if you aren't convinced
> > yet:http://coffeescript-seattlejs.heroku.com
> >
> > Martin
>
> I have coffee-script and barista installed. I got everything working
> *almost*, but I ran into 1 little snag.
>
> Whenever i make a change to a .coffee file... Barista does the right
> thing and attempts to compile all of my .coffee files automatically.
> This is cool.
>
> However, I always get a compile error - even if the syntax should is
> correct and the script is very simple. The compilation error doesn't
> say anything specific about what went wrong either. It just says:
>
>    Barista::CompilationError
>
>    Error: In app/coffeescripts/lib/dynamic_menu.coffee, V8::JSError
>
>    Rails.root: /home/egervari/Projects/training
>
> The strange this is... if I restart the server, everything is fine
> again. When I go to make 1 change to the .coffee file - ANY change at
> all - this error rears its ugly head again, even though the syntax is
> 100% okay.
>
> Any reason why it would be doing this?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>


-- 
Martin Wawrusch
p: +1 310 773 7346

I blog at http://martinatsunset.com
Follow me on twitter at http://twitter.com/martin_sunset
Learn more about me <http://about.me/martinw>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to