PDA

View Full Version : Attn: David Kanada - Version 1.1.0 Cant compile custom application.scss



SimonFlack
25 Mar 2011, 12:28 AM
I am getting the following error.


NoMethodError on line 9 of /Users/simonflack/Documents/WhiteFox/Server/web-docs/UiN2/resources/scss/../themes/lib/theme_images.rb: undefined method `inline_image_string' for #<Sass::Script::Functions::EvaluationContext:0x1017b7eb8>


inline_image_string(data(real_path), compute_mime_type(path, mime_type))

I tried swapping the theme_images.rb file out with the old one but then I just got other errors :(


Fixed the theme_image ruby method. Fixed all linear and radial gradients to comply with compass 0.11

Is the new styling based on Compass 0.11 Beta? Because I am still using the current release (0.10.6). Could that be the problem?

cassebn
25 Mar 2011, 4:43 AM
I had the same issue but after I updated to compass 0.11.beta.4 the issue went away and I was able to successfully compile. To update compass I did the following:
$ gem install chunky_png
$ gem install compass --pre

Hope this works out for you as well.

SimonFlack
25 Mar 2011, 4:44 AM
Thanks. I'll try that

portlandwebworks
25 Mar 2011, 5:25 AM
I had the same issue but after I updated to compass 0.11.beta.4 the issue went away and I was able to successfully compile. To update compass I did the following:
$ gem install chunky_png
$ gem install compass --pre

Hope this works out for you as well.

I put sudo in front of the gem command line calls and it worked fine for me. Thanks, cassebn. Sencha, you _are_ going to put a sticky post on this forum to document this, yes? ;-)

anselmtmcclain
25 Mar 2011, 9:02 AM
Thank you so much for posting this - worked for me as well. I would not have figured this out otherwise.

Sencha, please get some real docs up soon on SASS and custom styling! If I'm missing something (other than the blog post where I first heard of it all), let me know.

Thanks - ATM

davidkaneda
26 Mar 2011, 12:15 PM
Yep, sorry, we should have put the upgrade to beta in the release notes. Real docs are coming soon-

sanvi1020
27 Mar 2011, 7:11 PM
i tried to update compass ,but my app did not works .

it throws other error,

error sass/android.scss (Line 40: Invalid GBK character "\xE2")
Sass::SyntaxError on line ["40"] of C: Invalid GBK character "\xE2"
Run with --trace to see the full backtrace

SimonFlack
27 Mar 2011, 11:22 PM
Is the new version of compass (and sass etc) backwards compatible? If I upgrade can I use it to compile 1.0.1a projects, or do I have to upgrade all projects?

Can I use new version of compass to compile the 1.0.1a sass?

I cant afford downtime at the moment and cant risk upgrading if it is going to cause me problems with current projects.

SimonFlack
29 Mar 2011, 2:04 AM
Update... For those thinking of upgrading to 1.1.0 and compass beta 5 you can still use the older version by typing

compass _0.10.6_ compile

So you can use both 1.0.1a and 1.1.0.

venumobile
29 Mar 2011, 11:41 AM
I've just upgraded both compass and ST and am getting errors on compiling, also.


error sass/android.scss (Line 70: Invalid CSS after "...53 !default; *": expected "{", was "/")

davidkaneda
31 Mar 2011, 2:47 PM
@SimonFlack Great, great tip, didn't realize that!

@venumobile That looks like a regular syntax error is there any chance you edited android.scss?

venumobile
31 Mar 2011, 2:52 PM
David, no, I didn't edit it. I only edited _variables.scss.

davidkaneda
31 Mar 2011, 2:54 PM
Could you post a screenshot of Android.scss? You should be able to see the error in the line number it lists-

venumobile
31 Mar 2011, 3:35 PM
Well that's odd, android.scss doesn't even HAVE 70 lines... I guess it's in one of the included files, but I'm completely unfamiliar with Compass, or Ruby in general for that matter. Anyway here is the screen shot of android.css in its entirety.

http://www.what-the.com/misc/scss-screen.pnghttp://www.what-the.com/misc/scss_screen.png