sass exceptions break guard-sass until guard is restarted
Closed this issue · 2 comments
Most SASS errors break guard until I restart it. Here is a stracktrace:
17:18:39 - ERROR - Guard::Sass failed to achieve its <run_on_changes>, exception was:
[#] Sass::SyntaxError: Invalid CSS after " margin": expected "{", was "}"
[#] public/css/_index.scss:31
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:1148:inexpected' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:1084:in
expected'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:1079:intok!' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:534:in
block'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:529:inruleset' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:591:in
block in declaration_or_ruleset'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:1122:incall' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:1122:in
rethrow'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:592:indeclaration_or_ruleset' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:554:in
block_child'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:543:inblock_contents' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:535:in
block'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:529:inruleset' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:591:in
block in declaration_or_ruleset'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:1122:incall' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:1122:in
rethrow'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:592:indeclaration_or_ruleset' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:554:in
block_child'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:546:inblock_contents' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:535:in
block'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:529:inruleset' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:591:in
block in declaration_or_ruleset'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:1122:incall' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:1122:in
rethrow'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:592:indeclaration_or_ruleset' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:554:in
block_child'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:546:inblock_contents' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:535:in
block'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:529:inruleset' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:553:in
block_child'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:543:inblock_contents' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:82:in
stylesheet'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/scss/parser.rb:27:inparse' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/engine.rb:342:in
_to_tree'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/engine.rb:274:into_tree' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/engine.rb:306:in
_dependencies'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/sass-3.2.7/lib/sass/engine.rb:295:independencies' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/guard-sass-1.0.3/lib/guard/sass.rb:107:in
block in resolve_partials_to_owners'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/guard-sass-1.0.3/lib/guard/sass.rb:105:inselect' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/guard-sass-1.0.3/lib/guard/sass.rb:105:in
resolve_partials_to_owners'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/guard-sass-1.0.3/lib/guard/sass.rb:119:inrun_with_partials' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/guard-sass-1.0.3/lib/guard/sass.rb:133:in
run_on_changes'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/guard-1.6.2/lib/guard/runner.rb:99:inblock in run_supervised_task' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/guard-1.6.2/lib/guard/runner.rb:97:in
catch'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/guard-1.6.2/lib/guard/runner.rb:97:inrun_supervised_task' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/guard-1.6.2/lib/guard/runner.rb:146:in
block in run_first_task_found'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/guard-1.6.2/lib/guard/runner.rb:144:ineach' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/guard-1.6.2/lib/guard/runner.rb:144:in
run_first_task_found'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/guard-1.6.2/lib/guard/runner.rb:79:inblock in run_on_changes' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/guard-1.6.2/lib/guard/runner.rb:175:in
block (3 levels) in scoped_guards'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/guard-1.6.2/lib/guard/runner.rb:174:ineach' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/guard-1.6.2/lib/guard/runner.rb:174:in
block (2 levels) in scoped_guards'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/guard-1.6.2/lib/guard/runner.rb:173:incatch' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/guard-1.6.2/lib/guard/runner.rb:173:in
block in scoped_guards'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/guard-1.6.2/lib/guard/runner.rb:172:ineach' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/guard-1.6.2/lib/guard/runner.rb:172:in
scoped_guards'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/guard-1.6.2/lib/guard/runner.rb:72:inrun_on_changes' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/guard-1.6.2/lib/guard.rb:139:in
block (2 levels) in setup_listener'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/guard-1.6.2/lib/guard.rb:363:inblock in within_preserved_state' [#] <internal:prelude>:10:in
synchronize'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/guard-1.6.2/lib/guard.rb:360:inwithin_preserved_state' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/guard-1.6.2/lib/guard.rb:138:in
block in setup_listener'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/listen-0.7.3/lib/listen/listener.rb:212:incall' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/listen-0.7.3/lib/listen/listener.rb:212:in
on_change'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/listen-0.7.3/lib/listen/listener.rb:221:inblock in initialize_adapter' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/listen-0.7.3/lib/listen/adapters/polling.rb:56:in
call'
[#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/listen-0.7.3/lib/listen/adapters/polling.rb:56:inpoll' [#] /Users/emkman/.rvm/gems/ruby-1.9.3-p392@triple/gems/listen-0.7.3/lib/listen/adapters/polling.rb:32:in
block in start'
17:18:39 - INFO - Guard::Sass has just been fired
My Gemset:
guard (1.6.2)
guard-livereload (1.1.3)
guard-sass (1.0.3)
and my Guardfile
guard 'sass', :input => 'public/css', :load_paths => ["lib", "public/css"], :smart_partials => true
guard 'livereload' do
watch(%r{views/.+\.(erb|haml)})
watch(%r{public/.+\.(css|js)})
end
I'm pretty sure that fixes the problem (now 1.0.4). But tell me if it doesn't, thanks.
So far so good. Thanks!