sass-rails: Error encountered while saving cache ... can't dump hash with default proc
When deploying to heroku:
Error encountered while saving cache 59577ac82f2c1623e01184f55995a44284ee07e8/main.sassc: can't dump hash with default proc
Not really reproduceable but I read about this issue but with older versions of sass-rails.
gemfile.lock
sass (3.4.13) sass-rails (5.0.3) …railties (>= 4.0.0, < 5.0) …sass (~> 3.1) …sprockets (>= 2.8, < 4.0) …sprockets-rails (>= 2.0, < 4.0) …tilt (~> 1.1)
Need more info?
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Reactions: 6
- Comments: 16 (1 by maintainers)
Commits related to this issue
- Workaround for bug rails/sass-rails/issues/331#issuecomment-174293921. TODO: Create a Way to extend the ActiveAdmin configure file. — committed to isacaraujo/active_skin by deleted user 8 years ago
- Remove active_skin It's causing an error with latest sass-rails: rails/sass-rails#331. — committed to nolotiro/nolotiro.org by deleted user 8 years ago
- Remove active_skin It's causing an error with latest sass-rails: rails/sass-rails#331. — committed to nolotiro/nolotiro.org by deleted user 8 years ago
- Remove active_skin It's causing an error with latest sass-rails: rails/sass-rails#331. — committed to nolotiro/nolotiro.org by deleted user 8 years ago
- Fix problem with sass dumping IO. See https://github.com/rails/sass-rails/issues/331#issuecomment-236197921 — committed to jmuheim/base by jmuheim 7 years ago
Martin, I’ve checked your test project with mine. The issue is related to the import of the google font:
If you remove that import you stop receiving the warning. I’ll be checking the documentation to see if we are doing something wrong or if there is a reported bug related to it. I’ll let you know if I have any luck.
The fonts still render in the browser but are excluded from the cache. It’s not a huge performance hit per request, but it adds up.
We are not using
active_skin
ormiddleman
, just plain old sass with google fonts:We’ve tried the following variations with no joy:
Commenting the
@import
line out stops the error but of course does not use the desired fonts.UPDATE: downloading the
.css
file directly forhttps://fonts.googleapis.com/css?family=Montserrat:400,600,700|Open+Sans:400,600,700
, saving it in a.css
file and importing that instead does work around this error.