Closed Melindrea closed 11 years ago
undefined method
add_import_path' for main:Object`
This makes it sound like possibly a compass version issue? I'm not sure, but that's my gut. Especially considering it is fine with all the other directives.
I'm assuming you're running this as csscss --compass
or csscss -compass-with-config
?
I'm going to close this as not-a-csscss-issue.
How do you mean by compass version issue? I can use that file and compile using compass fine.
I'm using the command csscss --compass --require config.rb app/styles/style.scss
(Might still be a compass issue, and I have the way to do it, I just like to be thorough.)
Does this fail with the add_import_path
config?
csscss --compass-with-config config.rb app/styles/style.scss
(Ignore deprecation warning)
Oh. One other test please. csscss --compass app/styles/style.scss
It succeeds with both of those, it appears.
Doh. Then it is a legitimate csscss bug. Thanks.
I went ahead and removed the deprecation for --with-compass-config
. It's not a great fix, but at least the deprecation warnings won't be contradictory. This will go out in the version following v1.3.1.
When trying to use CSSCSS on a .scss file that has an additional import path, it exits with a NoMethodError:
My config.rb looks like the following:
These are part of the Compass Configuration. In particular, I'm using it to import files from the folder bower installs in.
One work-around I just found is that if I instead of add_import_path use
additional_import_paths = ["app/components"]
it works, or at least appears to.