Code Monkey home page Code Monkey logo

Comments (5)

tobinbradley avatar tobinbradley commented on September 14, 2024

Did some more debugging (if you can call it that with my Ruby skills), and I have it fixed good enough for me. I'll leave it open here because it isn't quite working like it was in case anybody wants to dig into it more.

The :all_on_start option was causing the error. Here was the original line, which causes the error:

guard 'sass', :input => 'assets/sass', :output => 'public/css', :line_numbers => true, :all_on_start => true

And taking out :all_on_start => true made the error go away and everything seems to work again:

guard 'sass', :input => 'assets/sass', :output => 'public/css', :line_numbers => true

Here's the whole original Guardfile (with all_on_start still there):

# sass to css
guard 'sass', :input => 'assets/sass', :output => 'public/css', :line_numbers => true, :all_on_start => true

# This will concatenate the javascript files specified in :files to js/main.js
guard :concat, type: "js", files: %w(vendor/bootstrap/bootstrap-tooltip vendor/bootstrap/bootstrap-modal vendor/bootstrap/bootstrap-transition vendor/bootstrap/bootstrap-button vendor/bootstrap/bootstrap-popover vendor/bootstrap/bootstrap-alert vendor/jquery-ui-1.10.0.custom.min plugins map page), input_dir: "assets/scripts", output: "public/js/main"

# live reload
guard 'livereload' do
  watch(%r{public/js/.+\.(js)$})
  watch(%r{public/css/.+\.(css)})
  watch(%r{public/.+\.(html)$})
end

It doesn't preprocess SASS on start now of course, but I can live with that. It worked fine on 12.10, so there was probably a library change in 13.04 somewhere.

Thanks so much for guard-sass, it's awesome!

from guard-sass.

hawx avatar hawx commented on September 14, 2024

Great, I'm glad you've found a fix for it. I will look into the cause when I get time.

from guard-sass.

tobinbradley avatar tobinbradley commented on September 14, 2024

Bit more for debugging purposes.

# sass to css
guard 'sass', :input => 'assets/sass', :output => 'public/css', :line_numbers => true, :all_on_start => true

# live reload
guard 'livereload' do
  watch(%r{public/js/.+\.(js)$})
  watch(%r{public/css/.+\.(css)})
  watch(%r{public/.+\.(html)$})
end

Kaboom.

# sass to css
guard 'sass', :input => 'assets/sass', :output => 'public/css', :line_numbers => true, :all_on_start => true

# live reload
guard 'livereload' do
  watch(%r{public/js/.+\.(js)$})
  #watch(%r{public/css/.+\.(css)})
  watch(%r{public/.+\.(html)$})
end

No errors (but Livereload isn't watching CSS).

# sass to css
guard 'sass', :input => 'assets/sass', :output => 'public/css', :line_numbers => true

# live reload
guard 'livereload' do
  watch(%r{public/js/.+\.(js)$})
  watch(%r{public/css/.+\.(css)})
  watch(%r{public/.+\.(html)$})
end

No errors, but doesn't preprocess SASS on start (I can live with that).

It looks like guard-livereload and guard-sass are head-butting there somehow. Beats me though - I haven't even done a Ruby hello world :).

from guard-sass.

hawx avatar hawx commented on September 14, 2024

Hi, I think I may have fixed the issue in the course of fixing #45. If you have time could you test out guard-sass version 1.1.0 (it's on rubygems) with :all_on_start => true and report back. Thanks.

from guard-sass.

tobinbradley avatar tobinbradley commented on September 14, 2024

Fixed! Thanks for the help. Guard-sass is awesome!

from guard-sass.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.