Error during precompiling #10

Closed
andoriyu opened this Issue Jul 30, 2012 · 22 comments

Comments

Projects
None yet

bundle exec rake assets:precompile 15:12:04
/Users/andoriyu/.rvm/rubies/ruby-1.9.3-p194/bin/ruby /Users/andoriyu/.rvm/gems/ruby-1.9.3-p194/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
rake aborted!
Invalid CSS after "*": expected "{", was "html .fileinput..."

"html" may only be used at the beginning of a selector.
(in /Users/andoriyu/Git/Ruby/sarp/app/assets/stylesheets/application.scss)

Tasks: TOP => assets:precompile:primary
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [/Users/andoriyu/.rvm/rubies/ruby-1.9.3-p19...]

Tasks: TOP => assets:precompile
(See full trace by running task with --trace)

Owner

tors commented Jul 31, 2012

@andoriyu hi Andrey! Have you tried renaming your application.css to application.css.scss ? Seemed to work before if I can remember correctly. I just recently made an example app for this gem. You may want to check this out https://github.com/tors/jquery-fileupload-rails-paperclip-example

@tors yes, it is already application.css.scss. Just removing fixes of IE worked for me.

veloper commented Aug 13, 2012

+1 - This seems to be happening to my app as well -- exact same error.

Also changed to application.css.scss with no luck.

guigs commented Aug 13, 2012

I had the same problem. It seems that it is something with sass gem version 3.2.0.
To force using sass 3.1.x put in your Gemfile:

gem 'sass', '~> 3.1.0'

rlanvin commented Aug 20, 2012

+1 The same error appeared after upgrading sass, and I can confirm @guigs fix worked.

Yes, this is an issue for me, SASS 3.2 seems to be to blame

ep-wac commented Aug 23, 2012

+1 SASS 3.2 either has tightened the DSL or something turned sour on them :)

@guigs is right - forcing 'sass' down works for me too

ethul commented Aug 23, 2012

Updating lines 55 to 64 in the jquery.fileupload-ui.css.erb to the following seems to work on Sass 3.2.

/* Fix for IE 6: */
* html .fileinput-button {
  line-height: 22px;
  margin: 1px -3px 0 0;
}

/* Fix for IE 7: */
* + html .fileinput-button {
  margin: 1px 0 0 0;
}

any chance we can see if that fix still works for IE 7?

I had the same problem with sass 3.2.1. Reverting back to 3.1.21 worked for me.

poori commented Sep 1, 2012

thanks. replacing the lines as mentioned by @ethul worked for me.

richkuo commented Sep 6, 2012

hey @ethul, where is the jquery.fileupload-ui.css.erb file located?

ethul commented Sep 6, 2012

hi @richkuo, this depends on how you have ruby install. The file will end up where you have your gems installed:

/path/to/your/ruby/gems/jquery-fileupload-rails-0.3.2/vendor/assets/stylesheets/jquery.fileupload-ui.css.erb

richkuo commented Sep 7, 2012

@ethul thanks
i forked over my own repo, made the changes, and explicitly called it in my Gemfile with
gem 'jquery-fileupload-rails', :git => "git://github.com/richkuo/jquery-fileupload-rails"

zzet commented Sep 7, 2012

hi @richkuo ! I also do this....

teddis commented Sep 12, 2012

Thanks @ethul, worked great!

+1 for this issue

svasva commented Sep 22, 2012

+1

+1

tmtysk commented Nov 19, 2012

+1

zolzaya commented Dec 24, 2012

+1

Collaborator

felixbuenemann commented Jan 10, 2015

As written above: upgrade sass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment