Compass / compass-rails

compass rails integration
MIT License
592 stars 277 forks source link

After upgrading to compass-rails 1.0.3 getting error #55

Closed cw-moshe closed 10 years ago

cw-moshe commented 12 years ago

Sass:SyntaxError: Illegal Nesting, Only properties may be nested beneath properties (in _replacement.scss:19)

It comes from including:

@import "compass/utilities";

in application.scss

Removing the import does not show the error.

cw-moshe commented 12 years ago

(Perhaps I did not upgrade in a while, I upgraded from ~> 1.0.0.rc.2)

cw-moshe commented 12 years ago

I see the issue was different than what I thought. I imported the main and sub files in the scss so this is not a bug. You can delete the issue

cw-moshe commented 12 years ago

Actually, looking into the scss file, it seems

@import "typography/text";

exists in both _typography.scss and _utilities.scss.

And for some reason even:

@import 'compass' 

But not sure if this results in the error.

The only way I could get compass imports now are with these lines:

@import "compass/typography/links";
@import "compass/typography/lists";
@import "compass/typography/vertical_rhythm";

@import "compass/css3";

@import "compass/utilities/color";
@import "compass/utilities/general";
@import "compass/utilities/sprites";
@import "compass/utilities/tables";

Any ideas?

Crawleyprint commented 12 years ago

What is your sass version? I had similar issue after updating to compass 0.12.2 and it was manifesting because I didn't update sass to current version.

cw-moshe commented 12 years ago

I have: sass-rails (= 3.2.5) sass (3.1.20)

Crawleyprint commented 12 years ago

Try updating compass and sass to their latest versions. Worked for me.