Converting SASS2 files to SASS3

157 views
Skip to first unread message

Kandada Boggu

unread,
Jun 15, 2011, 2:21:25 PM6/15/11
to Compass
I am trying to convert the sass2 files to sass3. I followed the
instructions in this blog post(http://nex-3.com/posts/95-awesome-
syntax-changes-in-sass-3), i.e.

sass-convert --from sass2 --to sass --in-place --recursive .

I get the following error:

Unknown format for sass-convert --from: sass2
Use --trace for backtrace.

I changed the value of "--from" option to "sass" and the error went
away but the conversion didn't happen:

sass-convert --from sass --to sass --in-place --recursive .


I am on Windows 7(64bit), Rails 2.3.9, Ruby 1.8.7 and I use following
gems:

compass (0.11.3)
sass (3.1.2)
haml (3.1.2)

Chris Eppstein

unread,
Jun 15, 2011, 2:42:45 PM6/15/11
to compas...@googlegroups.com
The sass2 format was transient for upgrading from 2 to 3 and was removed in 3.1 because it depended on deprecated features. You'll need to downgrade to 3.0 to use that mode of the script.

gem uninstall haml sass
gem install sass --version "~> 3.0"

chris


--
You received this message because you are subscribed to the Google Groups "Compass" group.
To post to this group, send email to compas...@googlegroups.com.
To unsubscribe from this group, send email to compass-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/compass-users?hl=en.


Andrew Vit

unread,
Jul 28, 2011, 1:55:33 PM7/28/11
to compas...@googlegroups.com
Ran into this same question myself just now. (Damn my old projects!)

Unfortunately it looks like sass 3.0 isn't available in rubygems sources anymore:

$ gem list -r -a sass
sass (3.1.5, 3.1.4, 3.1.3, 3.1.2, 3.1.1, 3.1.0)

This looks like the latest 3.0 tag:

Any chance of putting a 3.0 version back up there or do I need to build from git? 

Andrew Vit

Andrew Vit

unread,
Jul 28, 2011, 1:58:35 PM7/28/11
to compas...@googlegroups.com
Never mind, I just remembered... it was the haml 3.0 gem I need, not sass.

Cheers,
Andrew Vit
Reply all
Reply to author
Forward
0 new messages