Skip to content
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 compile error with CodeKit #4

Open
cucocreative opened this issue Apr 1, 2014 · 13 comments
Open

sass compile error with CodeKit #4

cucocreative opened this issue Apr 1, 2014 · 13 comments

Comments

@cucocreative
Copy link

Hi, thanks for the great WP theme.

I've been coding in css and thought it's about time to look into sass. I use CodeKit to autorefresh my browsers when I save any files I'm working on – it will also compile the scss files when you save them, but it currently errors. It will compile Gumby without issue (now anyway, after a lot of googlefoo), but doesn't like GumbyPress. I'm using your latest version using Gumby2.6.

Have you come across CodeKit? Could you shed any light onto this problem?

The error in the log is:
Syntax error: File to import not found or unreadable: modular-scale.
Load paths:
/Applications/MAMP/htdocs/wordpress/wp-content/themes/12_16_grid/sass
/Applications/CodeKit.app/Contents/Resources/engines/bourbon/bourbon/app/assets/stylesheets
/Applications/CodeKit.app/Contents/Resources/engines/neat
/Applications/MAMP/htdocs/wordpress/wp-content/themes/12_16_grid/bower_components/foundation/scss
on line 21 of /Applications/MAMP/htdocs/wordpress/wp-content/themes/12_16_grid/sass/gumby.scss
Use --trace for backtrace.

Line 21 of gumby.scss is @import "modular-scale";

Thanks for any advice you could give me.

@tubiz
Copy link
Owner

tubiz commented Apr 2, 2014

@cucocreative thanks for making use of my starter theme. WIll release an update that am sure will fix the issue you are experiencing in the next 24 HRS.
Thanks

@cucocreative
Copy link
Author

okay, brilliant. Thanks for the help – I'll keep an eye out for the update.

@tubiz
Copy link
Owner

tubiz commented Apr 2, 2014

@cucocreative I just pushed an update to the theme.
Hopes it fix the issue you are having.

If it doesn't then you have to install modular-scale gem

@cucocreative
Copy link
Author

Thanks for the update, although I'm still getting the "Syntax error: File to import not found or unreadable: modular-scale" error, even after installing modular-scale 2.0.4 & 1.0.6. The dev of CodeKit told me that he will bundle modular-scale – so I'll have to wait for the next release to see if that will help.

@ghost
Copy link

ghost commented Apr 29, 2014

I'm getting a similar error, but I don't get it when I compile the SASS from the regular Gumby Framework.

Syntax error: File to import not found or unreadable: modular-scale.
              Load path: /
        on line 20 of /Applications/AMPPS/www/ryonet/14RYO007-wordpress/sass/gumby.scss
  Use --trace for backtrace.

@tubiz
Copy link
Owner

tubiz commented Apr 30, 2014

@indadam you have to install modular-scale gem to fix this error.

@ghost
Copy link

ghost commented Apr 30, 2014

@tubiz I do have it installed, like I said, it works with the regular Gumby Framework, it's just not working with the GumbyPress. I've dug through the SASS and I can't see why it's not linking.

@tubiz
Copy link
Owner

tubiz commented Apr 30, 2014

@indadam so sorry about this will have to troubleshoot this further.
Will give you an update in the next 48 HRS max.

@samotta93
Copy link

Hello @tubiz, it's really amazing your job.

With me, the same problem. I'm using Scout to compile SASS and show the error bellow:

error gumby.scss (Line 20: File to import not found or unreadable: modular-scale.
Load paths: C:/wamp/www/wordpress/wp-content/themes/_siga/sass C:/Program Files (x86)/Scout/vendor/gems/gems/compass-0.12.2/frameworks/blueprint/stylesheets C:/Program Files (x86)/Scout/vendor/gems/gems/compass-0.12.2/frameworks/compass/stylesheets C:/Program Files (x86)/Scout/vendor/gems/gems/compass-960-plugin-0.10.4/stylesheets C:/Program Files (x86)/Scout/vendor/gems/gems/yui-compass-plugin-0.3/stylesheets C:/Program Files (x86)/Scout/vendor/gems/gems/compass-h5bp-0.0.5/stylesheets C:/Program Files (x86)/Scout/vendor/gems/gems/zen-grids-1.2/stylesheets Compass::SpriteImporter) identical gumby.css

Some news about that? Thank you.

@tubiz
Copy link
Owner

tubiz commented May 4, 2014

@samotta93 so sorry for replying late. I will troubleshoot this further and make sure it is fixed once and for all.
Thanks for making use of my starter theme.

@dennisSmidswater
Copy link

I found a (sort of) solution to this. For me (i'm not an expert) it worked to create a config.rb in the root of you project with this code:

extensions_dir = "wp-content/themes/YOURTHEMENAME/sass/extensions"
Compass::Frameworks.register('modular-scale', :path => File.expand_path("#{extensions_dir}/modular-scale"))

http_path = "/"
css_dir = "wp-content/themes/YOURTHEMENAME/css"
sass_dir = "wp-content/themes/YOURTHEMENAME/sass"
images_dir = "wp-content/themes/YOURTHEMENAME/imgs"
javascripts_dir = "wp-content/themes/YOURTHEMENAME/js"
fonts_dir = "wp-content/themes/YOURTHEMENAME/assets/fonts"

output_style = :compressed
environment = :production
color_output = false

That worked for me!

@ghost
Copy link

ghost commented Jun 5, 2014

Thank you @dennisSmidswater, I'll give that a shot.

@cucocreative
Copy link
Author

Thanks @dennisSmidswater, that did the trick.
Although if your project root is a theme's actual folder, you just need the following - which I'm sure you know.

extensions_dir = "sass/extensions"
Compass::Frameworks.register('modular-scale', :path => File.expand_path("#{extensions_dir}/modular-scale"))

http_path = "/"
css_dir = "css"
sass_dir = "sass"
images_dir = "imgs"
javascripts_dir = "js"
fonts_dir = "assets/fonts"

output_style = :compressed
environment = :production
color_output = false 

NB CodeKit was latest version 2.0.6 - which still errored without the above included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants