Re: Guard and Susy

63 views
Skip to first unread message
Message has been deleted

Thibaud Guillaume-Gentil

unread,
May 8, 2013, 2:24:01 AM5/8/13
to guar...@googlegroups.com
Hi Mehmet, I don't know susy, but I think the best is to ask directly on the guard-sass/compass github issues.

On May 8, 2013, at 01:52 , Mehmet Arin <offm...@gmail.com> wrote:

> Hi,
>
> I am trying to use guard with susy. As my Gemfile I am using:
>
> gem "susy"
> gem "guard"
> gem "guard-sass"
> gem "guard-compass"
> gem "guard-livereload"
>
> -----------------
>
> as for config:
>
> require "susy"
> require "compass"
> require "guard-livereload"
> require "guard-compass"
> require "guard-sass"
>
> http_path = "/"
> css_dir = "stylesheets"
> sass_dir = "sass"
> images_dir = "images"
> javascripts_dir = "javascripts"
>
> relative_assets = true
> activate :livereload
>
> -----------------------
>
> and as for Guardfile:
>
> guard 'livereload' do
> watch(%r{.+\.(css|js|html)})
> end
>
> guard 'sass', :input => 'sass', :output => 'stylesheets'
>
> I am using the dependencies above. Guard runs without errors with "bundle exec guard". When I compile a .scss file guard it gives following error:
>
> ERROR - [Sass] Sass > Syntax error: File to import not found or unreadable: susy.
> > [#] Load paths:
> > [#] /var/www/foo/public/stylesheets/sass
> > [#] /var/www/foo/sass
> > [#] on line 4 of sass/_base.scss
> > [#] from line 4 of sass/screen.scss
>
>
> As far as I can see guard is not compiling relative assets like compass does. It is also same with other library relative assets(zurb-foundation etc). Is there a way to add these external library assets to guard compiler? Thanks.
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "guard-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to guard-dev+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Mehmet Arin

unread,
May 8, 2013, 12:19:28 PM5/8/13
to guar...@googlegroups.com
After digging thru for few hours found the problem!

I have added "/" for directories in the Guardfile line as below:

guard 'sass', :input => 'sass', :output => 'stylesheets'
to
guard 'sass', :input => '/sass', :output => '/stylesheets'

And problem resolved. Now guard-compass compiles without any problem.

8 Mayıs 2013 Çarşamba 02:52:09 UTC+3 tarihinde Mehmet Arin yazdı:

Mehmet Arin

unread,
May 8, 2013, 12:53:00 PM5/8/13
to guar...@googlegroups.com
And you are right, I should have posted this to guard-sass github issues. You might as well delete this thread now, thanks.

8 Mayıs 2013 Çarşamba 19:19:28 UTC+3 tarihinde Mehmet Arin yazdı:

Thibaud Guillaume-Gentil

unread,
May 8, 2013, 3:46:02 PM5/8/13
to guar...@googlegroups.com
Great, I'm glad you solved it.
Reply all
Reply to author
Forward
0 new messages