-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sass no longer working in Sinatra — maybe something to do with tilt #91
Comments
Can you try on tilt/master. Curious if this commit 0f37285 fixes the issue. |
Just looking at the code that certainly looks like it would fix it. I'm not quite sure how I'd tell my Sinatra to pull in the code from tilt/master to be truthful — sorry in many ways a ruby newbie still. |
One related Sass test is failing for me on master, am on it. |
Sweet. After midnight here and I have to hike up a mountain in the morning, so will check back tomorrow. thanks d |
Fixed the test with 9e9643e, but it shouldn't be related. |
I don't want people to have to require |
I think you don't have to, but one test, the one failing test, references |
Gotcha |
Will there be a new release with this fix soon? |
Does it fix the issue for you? If so, probably as soon as @rtomayko has time to push it to gemcutter. |
Being in many ways a ruby newbie still, I was just about to go read up on how I'd take your current master build, turn it into a gem and then (guessing here) would I put that gem in my project's lib directory and assume it overrides any other version, or is there a better way? |
You could use Bundler. Create a file called Gemfile in your project directory with the following content: gem 'sinatra'
gem 'tilt', :git => 'git://github.com/rtomayko/tilt.git'
gem 'sass'
# ... all your other dependencies ... And then run: gem install bundler
bundle install
bundle exec ruby app.rb # or whatever you use to start your app Or you could just build and install it globally: git clone git://github.com/rtomayko/tilt.git
cd tilt
gem build *.gemspec
gem install *.gem |
I use Bundler already but had no idea you could pull things right from a git repo. That's cool! Thanks. So using the fresh build of tilt's master I get the same error.
Guess that didn't fix it. |
In your code
but in https://github.com/nex3/sass/blob/master/lib/sass/plugin.rb there is an options method but no engine_options method. |
I have a hard time reproducing this. What Sass version do you use? In 3.1.1 (the current version) |
Using Sass 3.1.1 D On 26/05/2011, at 9:40 PM, rkhreply@reply.github.com wrote:
|
Goes like this: Sass::Plugin#method_missing triggers Sass::Plugin::Compiler#engine_options. Seems like for some reason you either have the wrong compiler object in there or |
Looking in https://github.com/nex3/sass/blob/master/lib/sass/plugin.rb I can't see any see line 21 of https://github.com/rtomayko/tilt/blob/master/lib/tilt.rb
|
@davesag yes, it is, through the |
I cannot reproduce this with your code, neither with Sinatra 1.2.6 nor with Sinatra 1.3.0, both tested with Sass 3.1.1 and master. |
It works fine with |
I kind of just want to revert all this plugin shit. |
@josh I think that would be fine We are not using the sass/plugin in rails. Configuration is done via config.sass in application config blocks. |
Reverted a4fb484 This restores the handler to how it was in |
hey guys - i just tested my code with 1.3.2 and voila - all working and happy. many thanks. d |
I have updated all the gems in my Sinatra project and now my loading of sass templates doesn't work.
I have a route
and when the code hits the sass line it throws
Konstantin asked me to raise it as an issue here.
Cheers
Dave
The text was updated successfully, but these errors were encountered: