Re: [compass] Help! Error on compass watch

283 views
Skip to first unread message

Sascha Kleiber

unread,
Mar 16, 2013, 4:57:50 PM3/16/13
to compas...@googlegroups.com

Did you try updating your gems?
gem update - - system





Lidocayne <mosu...@gmail.com> schrieb:
So I've never had problems with compass/sass in the past, and compass watch has always worked fine.  Now I see to be having a problem however.  

Running:  Compass 0.12.2
               Sass 3.2.6

When I run a compass watch I get the following error:

StringScanner::Error on line 1156 of /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/scss/parser.rb: regexp buffer overflow
Run with --trace to see the full backtrace


I run a compass watch --trace and I get:

StringScanner::Error on line 1156 of /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/scss/parser.rb: regexp buffer overflow
  /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/scss/parser.rb:1156:in `tok'
  /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/scss/parser.rb:957:in `_interp_string'
  /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/scss/parser.rb:949:in `interp_string'
  /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/scss/parser.rb:911:in `term'
  /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/scss/parser.rb:897:in `expr'
  /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/scss/parser.rb:671:in `simple_selector_sequence'
  /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/scss/parser.rb:640:in `_selector'
  /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/scss/parser.rb:619:in `selector'
  /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/scss/parser.rb:603:in `selector_sequence'
  /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/scss/parser.rb:528:in `ruleset'
  /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/scss/parser.rb:553:in `block_child'
  /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/scss/parser.rb:546:in `block_contents'
  /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/scss/parser.rb:82:in `stylesheet'
  /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/scss/parser.rb:27:in `parse'
  /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/engine.rb:342:in `_to_tree'
  /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/engine.rb:274:in `to_tree'
  /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/plugin/staleness_checker.rb:173:in `compute_dependencies'
  /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/app_integration.rb:25:in `grep'
  /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/tree/node.rb:151:in `each'
  /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/tree/node.rb:150:in `each'
  /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/tree/node.rb:151:in `each'
  /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/tree/node.rb:151:in `each'
  /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/plugin/staleness_checker.rb:169:in `grep'
  /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/plugin/staleness_checker.rb:169:in `compute_dependencies'
  /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/plugin/staleness_checker.rb:146:in `dependencies'
  /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/plugin/staleness_checker.rb:123:in `dependencies_stale?'
  /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/plugin/staleness_checker.rb:161:in `dependency_updated?'
  /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/plugin/staleness_checker.rb:79:in `call'
  /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/plugin/staleness_checker.rb:79:in `stylesheet_modified_since?'
  /Library/Ruby/Gems/1.8/gems/sass-3.2.6/lib/sass/../sass/plugin/staleness_checker.rb:67:in `stylesheet_needs_update?'
  /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/compiler.rb:67:in `needs_update?'
  /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/compiler.rb:61:in `out_of_date?'
  /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/compiler.rb:60:in `each'
  /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/compiler.rb:60:in `out_of_date?'
  /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/commands/watch_project.rb:143:in `recompile'
  /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/commands/watch_project.rb:68:in `perform'
  /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/commands/base.rb:18:in `execute'
  /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/commands/project_base.rb:19:in `execute'
  /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:43:in `perform!'
  /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:15:in `run!'
  /Library/Ruby/Gems/1.8/gems/compass-0.12.2/bin/compass:30
  /Library/Ruby/Gems/1.8/gems/compass-0.12.2/bin/compass:44:in `call'
  /Library/Ruby/Gems/1.8/gems/compass-0.12.2/bin/compass:44
  /usr/bin/compass:23:in `load'
  /usr/bin/compass:23

No idea what's going on and why the sudden errors.  Any help is appreciated!!


--
Diese Nachricht wurde von meinem Mobiltelefon mit Kaiten Mail gesendet.

Emily Brick

unread,
Apr 7, 2014, 1:51:31 PM4/7/14
to compas...@googlegroups.com
I'm also having this same exact problem! Did you ever figure it out? 

Chris Eppstein

unread,
Apr 7, 2014, 7:05:55 PM4/7/14
to compas...@googlegroups.com
In rare cases, regular expressions can consume large sums of memory for specific inputs. This should never happen and is considered a bug in how the regex is constructed. We need to fix this issue in Sass itself. Please file a bug at https://github.com/nex3/sass/issues with the smallest input file you can find that reproduces this issue.

Thanks,
Chris
Reply all
Reply to author
Forward
0 new messages