New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sprites cache store #98
Comments
Found how to set assets.cache-store with Sprockets::Cache::FileStore from here rails/sprockets-rails#78 but this is not best solution |
the entirety of compass-rails is based on "not the best solution" sprockets doesn't account for plugin libraries that need to be able to attach and create assets so we have to hack in with a good ole duck punch and make it work with a large hammer. If this will work by over riding that method i say we go with it. |
Do you have the code you modified someplace so i can look at it? |
Hmm.. while playing with code made changes in my local gems, and now for some reasons reinstalled all ruby and gems pack. |
Closing this issue for inactivity. Please reopen if there is action to be taken. |
Got the same issue on Rails 4, Sass-rails 1.1.2 on Ubuntu 12.04 LTS
{{APP_ROOT}} here is the application root path. @craigmcnamara plz reopen the issue. |
@umate I've got this same issue now using Rails 4.1 on a Ubuntu 12.04 Vagrant setup, very annoying to see it's still around. :( |
I've tried adding the following to my application.rb file in my rails app but the error is still being produced. config.assets.paths << Rails.root.join("app", "assets", "images", "sprites")
config.compass.generated_images_dir = 'app/assets/images/sprites' The error I'm getting is |
Anyone have any ideas how to fix this issue? The error is rather cryptic. |
same error here on vagrant machine, seems to only happen on windows |
This makes me think it's an issue regarding virtualbox, I'm going to try my
|
Looking into it some more, looks like is related to the share folder sync
|
@Balauru I had found a few other similar issues in other projects and there seems to be some kind of Vagrant config setting you can change that works for some people. I couldn't get it work for my setup though. |
Hi, I've managed to get it work by stopping the virtualbox sync and using
|
@Balauru I just did the same thing and now my errors changed to "couldn't find file '../images/affiliates-s8f538ad80b.png'" So I'm close. I'm just not sure how to reference the image files in my Rails projects. I have @import 'affiliates/*.png'; In my main.scss file which is in the app/assets/stylesheets folder. |
Well now I got the files loading, sort of. They're getting generated. My sass files are finding them and my vm is as well but none of the generated images appear in my host folders. |
From what I understand from the vagrant documentation rsync will sync from
|
Thanks a lot for the help guys! @wldcordeiro and @Balauru, what I did was setup the assets on an external tmp dir.
and then on
This was quite a cryptic issue to deal with, since it seems like a VirtualBox issue, not rails related. I hope this helps people with the same issue. |
Firstly got Protocol error here http://stackoverflow.com/questions/18688887/compass-protocol-error-with-import
and founded that there were some errors on windows machines with sass, so sass filesystem cache store has function [1] that fixes cache names that contain "*"
[1] ->
but in compass-rails sass_importer you pass sprockets cache store [2], that do not know about this problem :)
[2] ->
After commenting this code, compass made sprite normally. So what is this cache for? and is there should be issue for sprockets too?
Temporary solution is to change cache dir for compass, sass and assets.
But at the moment I have not succeeded to set config.cache_store and config.assets.cache_store to any value :( rails don't want to change them.
The text was updated successfully, but these errors were encountered: