im-richard / Scaffold

Extend, combine and compress CSS
http://github.com/IAMRichardT/Scaffold/wiki
161 stars 19 forks source link

Possible minor path error in Sass extension #38

Open 8ig8 opened 14 years ago

8ig8 commented 14 years ago

In https://github.com/anthonyshort/Scaffold/blob/master/extensions/Sass/Sass.php and https://github.com/anthonyshort/Scaffold/blob/develop/extensions/Sass/Sass.php

Line 60 is currently:

$temp = $scaffold->cache->find('/sass/'.$source->id.'.sass');

I think it should be:

$temp = $scaffold->cache->find('sass/'.$source->id.'.sass');

Thanks for all the hard work on this.

mralexgray commented 12 years ago

I'm getting a related error with EITHER the current, OR your proposed fix. Whats Up with this?

Your "fix" doesn't help, unfortunately..

Sass Error Errno::ENOENT: No such file or directory - /Web/global/phpincludes/scaffold/cache/sass/735f51f54f55439f7ae459b459d958b1.sass Use --trace for backtrace.``

vs original error..

Errno::ENOENT: No such file or directory - > /Web/global/phpincludes/scaffold/cache//sass/735f51f54f55439f7ae459b459d958b1.sass Use --trace for backtrace.

For the untrained eye, notice the number of backslashes between cache and sass.

Here is a more detailed trace, via changing 'command' => 'sass --trace' in the config.

Sass Error

/Library/Ruby/Gems/1.8/gems/haml-3.0.25/bin/../lib/haml/exec.rb:163:in initialize': No such file or directory - /Web/global/phpincludes/scaffold/cache/sass/735f51f54f55439f7ae459b459d958b1.sass > (Errno::ENOENT) from /Library/Ruby/Gems/1.8/gems/haml-3.0.25/bin/../lib/haml/exec.rb:163:in ?open' from /Library/Ruby/Gems/1.8/gems/haml-3.0.25/bin/../lib/haml/exec.rb:163:in open_file' from > /Library/Ruby/Gems/1.8/gems/haml-3.0.25/bin/../lib/haml/exec.rb:110:inprocess_result' from /Library/Ruby/Gems/1.8/gems/haml-3.0.25/bin/../lib/haml/exec.rb:267:in process_result' from /Library/Ruby/Gems/1.8/gems/haml-3.0.25/bin/../lib/haml/exec.rb:361:inprocess_result' from /Library/Ruby/Gems/1.8/gems/haml-3.0.25/bin/../lib/haml/exec.rb:41:in parse' from /Library/Ruby/Gems/1.8/gems/haml-3.0.25/bin/../lib/haml/exec.rb:21:inparse!' from /Library/Ruby/Gems/1.8/gems/haml-3.0.25/bin/sass:8 from /usr/bin/sass:19:in `load' from /usr/bin/sass:19