Errors in Sass aren't reported gracefully
Reported by Charles Roper | October 29th, 2009 @ 06:54 PM | in 0.11.0
In messing about with this: http://github.com/charlesr/staticmatic-compass-susy
I started getting an error reported by staticmatic (see below). The wording of the error gives the impression that there's an error with Haml, but it turns out to be an error in my Sass. It doesn't matter what the problem with the Sass is - it always gives the same error. This could do with tidying up a bit.
@@@[ D:\Code\Projects\Staticmatic_Compass_Susy ]
staticmatic preview . Site root is: D:/Code/Projects/Staticmatic_Compass_Susy
StaticMatic Preview Server Starting...
Running Preview of D:/Code/Projects/Staticmatic_Compass_Susy on :3000
Thu Oct 29 18:42:25 +0000 2009: Read error: #<NoMethodError: private methodgsub' called for nil:NilClass><br/> (haml):17:in
render' C:/ruby/lib/ruby/gems/1.8/gems/haml-2.2.9/lib/haml/engine.rb:168:inrender'<br/> C:/ruby/lib/ruby/gems/1.8/gems/haml-2.2.9/lib/haml/engine.rb:168:in
instance_eval'
C:/ruby/lib/ruby/gems/1.8/gems/haml-2.2.9/lib/haml/engine.rb:168:inrender'<br/> C:/ruby/lib/ruby/gems/1.8/gems/staticmatic-0.10.6/bin/../lib/staticmatic/mixins/render.rb:98:in
generate_html_from_template_source'
C:/ruby/lib/ruby/gems/1.8/gems/staticmatic-0.10.6/bin/../lib/staticmatic/mixins/rescue.rb:10:inrender_rescue_from_error'<br/> C:/ruby/lib/ruby/gems/1.8/gems/staticmatic-0.10.6/bin/../lib/staticmatic/mixins/render.rb:83:in
generate_css'
C:/ruby/lib/ruby/gems/1.8/gems/staticmatic-0.10.6/bin/../lib/staticmatic/server.rb:32:inprocess'<br/> C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel/http_response.rb:65:in
start'
C:/ruby/lib/ruby/gems/1.8/gems/staticmatic-0.10.6/bin/../lib/staticmatic/server.rb:24:inprocess'<br/> C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel.rb:159:in
process_client'
C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel.rb:158:ineach'<br/> C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel.rb:158:in
process_client'
C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel.rb:285:inrun'<br/> C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel.rb:285:in
initialize'
C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel.rb:285:innew'<br/> C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel.rb:285:in
run'
C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel.rb:268:ininitialize'<br/> C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel.rb:268:in
new'
C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel.rb:268:inrun'<br/> C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel/configurator.rb:282:in
run'
C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel/configurator.rb:281:ineach'<br/> C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel/configurator.rb:281:in
run'
C:/ruby/lib/ruby/gems/1.8/gems/staticmatic-0.10.6/bin/../lib/staticmatic/server.rb:88:incloaker_'<br/> C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel/configurator.rb:50:in
call'
C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel/configurator.rb:50:ininitialize'<br/> C:/ruby/lib/ruby/gems/1.8/gems/staticmatic-0.10.6/bin/../lib/staticmatic/server.rb:82:in
new'
C:/ruby/lib/ruby/gems/1.8/gems/staticmatic-0.10.6/bin/../lib/staticmatic/server.rb:82:instart'<br/> C:/ruby/lib/ruby/gems/1.8/gems/staticmatic-0.10.6/bin/../lib/staticmatic/mixins/server.rb:4:in
preview'
C:/ruby/lib/ruby/gems/1.8/gems/staticmatic-0.10.6/bin/../lib/staticmatic/base.rb:60:insend'<br/> C:/ruby/lib/ruby/gems/1.8/gems/staticmatic-0.10.6/bin/../lib/staticmatic/base.rb:60:in
run'
C:/ruby/lib/ruby/gems/1.8/gems/staticmatic-0.10.6/bin/staticmatic:23
C:/Ruby/bin/staticmatic:19:inload'<br/> C:/Ruby/bin/staticmatic:19@@@
Comments and changes to this ticket
-
Stephen Bartholomew November 1st, 2009 @ 07:58 PM
- State changed from new to open
- Tag set to improvement
- Milestone set to 0.11.0
- Assigned user set to Stephen Bartholomew
Agreed.
-
Stephen Bartholomew November 1st, 2009 @ 08:14 PM
- Tag changed from improvement to bug
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Light-weight static site framework