Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Error during precompiling #10

Closed
andoriyu opened this Issue · 22 comments
@andoriyu

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)

@tors
Owner

@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

@andoriyu

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

@veloper

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

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

@guigs

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

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

@virtualfunction

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

@ep-wac

+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

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;
}
@ctwiz

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

@tylercollier

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

@poori

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

@richkuo

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

@ethul

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

@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

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

@teddis

Thanks @ethul, worked great!

@kevzettler

+1 for this issue

@svasva

+1

@tmtysk

+1

@zolzaya

+1

@ethul ethul referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@felixbuenemann
Collaborator

As written above: upgrade sass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.