Comments (5)
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.
Great, I'm glad you've found a fix for it. I will look into the cause when I get time.
from guard-sass.
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.
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.
Fixed! Thanks for the help. Guard-sass is awesome!
from guard-sass.
Related Issues (20)
- Unable to @import files on relative path HOT 7
- Including Bourbon in a project with guard-sass causes an exception HOT 1
- Invalid Permissions for guard-sass 1.0.2 HOT 2
- Watcher doesn't seem to work Guard 1.6.x HOT 2
- sass exceptions break guard-sass until guard is restarted HOT 2
- Compass config.rb options within Guardfile HOT 6
- Guard::Sass run_on_changes exception: undefined method `run_on_changes' for Guard::Refresher HOT 1
- Sprites in wrong folder HOT 3
- Can't specify a file for input and output options HOT 1
- Support for :cache_path setting HOT 7
- Support for sourcemap HOT 2
- flag to include external Ruby libraries (sass-globbing)
- Consider adding Guard callbacks for easier integration with other tools HOT 3
- Output file relative to the input file location HOT 5
- Possibility to use files for `:input` and `:output` HOT 3
- Double compiling HOT 1
- Specs failing HOT 1
- Integration with Travis CI
- Sourcemap generation? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from guard-sass.