Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
stylesheets not automatically recompiling on page refresh
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Bill Burcham  
View profile  
 More options Aug 18 2009, 9:48 pm
From: Bill Burcham <bill.burc...@gmail.com>
Date: Tue, 18 Aug 2009 18:48:44 -0700 (PDT)
Local: Tues, Aug 18 2009 9:48 pm
Subject: stylesheets not automatically recompiling on page refresh
Just added Compass CSS and 960gs to a Rails 2.3.2 project and almost
everything is perfect except that compass isn't automatically
recompiling (.sass) files when a page is refreshed.

These say it should be automatic (on a page refresh):

http://wiki.github.com/chriseppstein/compass-960-plugin
http://github.com/chriseppstein/compass-rails-sample-application/tree...

I have to run compass whenever I change .sass source. I don't mind but
the other folks on my project do. How should I debug this issue?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Eppstein  
View profile  
 More options Aug 18 2009, 10:52 pm
From: Chris Eppstein <ch...@eppsteins.net>
Date: Tue, 18 Aug 2009 19:52:54 -0700
Local: Tues, Aug 18 2009 10:52 pm
Subject: Re: [compass] stylesheets not automatically recompiling on page refresh
That's very strange. Are you sure you specified --rails when  
installing? If you did, you would have a config/compass.config instead  
of a config.rb file at the top of your project.

Hunt & pecked on my iPhone... Sorry if it's brief!

On Aug 18, 2009, at 6:48 PM, Bill Burcham <bill.burc...@gmail.com>  
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bill Burcham  
View profile  
 More options Aug 19 2009, 12:35 pm
From: Bill Burcham <bill.burc...@gmail.com>
Date: Wed, 19 Aug 2009 09:35:38 -0700 (PDT)
Local: Wed, Aug 19 2009 12:35 pm
Subject: Re: stylesheets not automatically recompiling on page refresh
I have a /config/compass.config (and no config.rb)

I have /vendor/plugins/haml

I have these gems added to the environment: chriseppstein-compass and
chriseppstein-compass-960-plugin

Is there a breakpoint I can set in a gem to see if the hook is
getting, well, hooked?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bill Burcham  
View profile  
 More options Aug 19 2009, 12:48 pm
From: Bill Burcham <bill.burc...@gmail.com>
Date: Wed, 19 Aug 2009 09:48:49 -0700 (PDT)
Local: Wed, Aug 19 2009 12:48 pm
Subject: Re: stylesheets not automatically recompiling on page refresh
I verified that process_with_compass(*args) is called (in the Compass
Rails integration) when I refresh a page.

But changes to .sass files are still not automatically cause compass
to compile. (running compass manually works still)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Eppstein  
View profile  
 More options Aug 19 2009, 1:42 pm
From: Chris Eppstein <ch...@eppsteins.net>
Date: Wed, 19 Aug 2009 10:42:51 -0700
Local: Wed, Aug 19 2009 1:42 pm
Subject: Re: [compass] Re: stylesheets not automatically recompiling on page refresh

Bizarre. The only thing that comes to mind is that Sass is configured to not
recompile. Can you inspect the runtime value of Sass::Plugin.options and
send me that?
Chris

On Wed, Aug 19, 2009 at 9:48 AM, Bill Burcham <bill.burc...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bill Burcham  
View profile  
 More options Aug 19 2009, 7:11 pm
From: Bill Burcham <bill.burc...@gmail.com>
Date: Wed, 19 Aug 2009 16:11:30 -0700 (PDT)
Local: Wed, Aug 19 2009 7:11 pm
Subject: Re: stylesheets not automatically recompiling on page refresh
inside monkey-patched ActionController::Base::process (in /vendor/gems/
haml-2.3.0/lib/sass/plugin/rails.rb)

{:template_location=>"/Users/Bill/Projects/Rails/ypm/public/
stylesheets/sass", :css_location=>"/Users/Bill/Projects/Rails/ypm/
public/stylesheets", :cache_location=>"/Users/Bill/Projects/Rails/ypm/
tmp/sass-
cache", :always_update=>false, :always_check=>true, :full_exception=>true}

Um and those are wrong.

So the HAML plugin isn't getting my configuration (at least not at
that point in the execution). Here's the contents of /Users/Bill/
Projects/Rails/ypm/config/compass.config:

# Require any additional compass plugins here.
project_type = :rails
project_path = RAILS_ROOT if defined?(RAILS_ROOT)
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "public/stylesheets/compiled"
sass_dir = "app/stylesheets"
images_dir = "public/images"
javascripts_dir = "public/javascripts"
# To enable relative paths to assets via compass helper functions.
Uncomment:
# relative_assets = true
http_images_path = "/images"
http_stylesheets_path = "/stylesheets"
http_javascripts_path = "/javascripts"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Eppstein  
View profile  
 More options Aug 19 2009, 7:31 pm
From: Chris Eppstein <ch...@eppsteins.net>
Date: Wed, 19 Aug 2009 16:31:46 -0700
Local: Wed, Aug 19 2009 7:31 pm
Subject: Re: [compass] Re: stylesheets not automatically recompiling on page refresh

Now we're getting somewhere.
Is your compass initializer being ran?

Did you run "haml --rails ." on your project?

chris

On Wed, Aug 19, 2009 at 4:11 PM, Bill Burcham <bill.burc...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bill Burcham  
View profile  
 More options Aug 19 2009, 7:41 pm
From: Bill Burcham <bill.burc...@gmail.com>
Date: Wed, 19 Aug 2009 16:41:51 -0700 (PDT)
Local: Wed, Aug 19 2009 7:41 pm
Subject: Re: stylesheets not automatically recompiling on page refresh
I think I did. I ran it again just now and got:

BillBurcham:ypm Bill$ haml --rails .
Directory ./vendor/plugins/haml already exists, overwrite [y/N]? n

Also just before that I ran this:

Bill$ compass -r ninesixty -f 960 .
   exists .
   exists ./app/stylesheets
   exists ./public/stylesheets/compiled
   create ./config.rb
identical ./app/stylesheets/grid.sass
identical ./app/stylesheets/text.sass
   exists ./public/stylesheets/compiled
  compile ./app/stylesheets/base_yp.sass
identical ./public/stylesheets/compiled/base_yp.css
  compile ./app/stylesheets/grid.sass
identical ./public/stylesheets/compiled/grid.css
  compile ./app/stylesheets/text.sass
identical ./public/stylesheets/compiled/text.css

Lookie, it created a config.rb (in the root of my rails project). But
isn't the Compass config supposed to be in /config/compass.config? I
have the latter, but who/what reads that thing?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Eppstein  
View profile  
 More options Aug 19 2009, 7:48 pm
From: Chris Eppstein <ch...@eppsteins.net>
Date: Wed, 19 Aug 2009 16:48:32 -0700
Local: Wed, Aug 19 2009 7:48 pm
Subject: Re: [compass] Re: stylesheets not automatically recompiling on page refresh

compass requires --rails when install into a rails project.

On Wed, Aug 19, 2009 at 4:41 PM, Bill Burcham <bill.burc...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bill Burcham  
View profile  
 More options Aug 19 2009, 8:31 pm
From: Bill Burcham <bill.burc...@gmail.com>
Date: Wed, 19 Aug 2009 17:31:47 -0700 (PDT)
Local: Wed, Aug 19 2009 8:31 pm
Subject: Re: stylesheets not automatically recompiling on page refresh
ah so!

BillBurcham:ypm Bill$ compass --force --rails -r ninesixty -f 960 .
   exists ./app/stylesheets
   exists ./public/stylesheets/compiled
overwrite ./config/compass.config
   create ./config/initializers/compass.rb
identical ./app/stylesheets/grid.sass
identical ./app/stylesheets/text.sass

Looks like everything works now. Um I do notice one small issue at the
top of the generated compass.config:

require 'ninesixty'
require 'ninesixty'
# Require any additional compass plugins here.
...

Require is duplicated.

Anyhow, thanks a million for all your help Chris!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »