Active
Project:
Omega
Version:
7.x-4.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Nov 2014 at 19:08 UTC
Updated:
22 Jul 2015 at 18:19 UTC
Jump to comment: Most recent
Comments
Comment #1
nept commentedComment #2
nept commentedComment #3
osopolarThe same happens to me calling
bundle exec guard. Would be nice to get this fixed as waiting until everything is compiled it is very time consuming. After a change to a sass file I have to wait more than 8 seconds to compile everything (I already commented out no-query stuff to speed it up otherwise it's the double time to wait).Comment #4
pkiff commentedThis works as designed for me using 7.x-4.3, so there must be something else at play aside from just running bundle exec guard and an out-of-the-box 7.x-4.3. Omega guard is compiling your normalize.css every time?
I don't know why this would be happening.
I would note that by far the largest culprit for compile time is the main styles.css file, which will necessarily need to compile fully with each and every SASS edit. I commonly experience 10-20 second compile times - or even longer when working on a slower machine (2GHz DualCore Intel Merom processor).
Comment #5
osopolarMy site runs in a virtual machine the files are exported by the host as nfs share, but I am developing on the host and have
bundle exec guardrunning on the host (mac os). This should be no problem as guard don't need to know anything about drupal, everything is there, in the file system.So what else could it be? the only thing guard does is "Compile on start" and call "compass watch". So I guess it depends on compass. My compass version is 1.0.3 (using omega 7.x-4.3+8-dev).
This wouldn't be acceptable for me. To see changes I compile every couple of minutes, I couldn't wait so long.
Comment #6
pkiff commentedHeh, yeah, I agree that is a long time, and unacceptable for some. There are strategies to reduce this time, but lots of folks suffer through similarly long compile times with SASS/Compass projects that have nothing to do with Omega. Ruby is commonly cited as the core culprit that drags SASS/Compass compile times down...
To track down why compass is compiling all the files instead of only changed ones, you might try just running
compass watch(instead ofdrush omega-guardordrush ogrdor whatever). Also, you might try running it in your VM and seeing if your file system is somehow tricking compass into thinking that files have changed when they have not.Comment #7
osopolarAs I change files on host and compass is running on host the vm shouldn't be the problem. Anyway I tested there to, but
compass watchdoes not work there, as it don't get the file changes. On the host this seems to work fine compass watch detects the changes (see below), but it still builds everything:Anyway, I don't think that it is worth to spend much time in this. I am thinking about replacing ruby with libsass, which should be at least 10 times faster (there are some tutorials on this i.e. here and here). There is also some Information in this omega issue: #2240137: Recommendation for Sourcemap Supported Susy/Compass Config.
Comment #8
fubhy commentedI added a very lightweigt LibSass based starterkit to Omega today and named it "Default". The Ruby based Starterkit previously named Default is now called "Dusty".
Was about time.
Comment #9
pkiff commentedGreat! I haven't built something with Omega in a while, and like osopolar, I was thinking that for my next project I might try replacing ruby with libsass on my own, but it will be a lot easier to try out a new starterkit and then tweak as necessary.
Thanks for the update.