spohlenz / tinymce-rails

Integration of TinyMCE with the Rails asset pipeline
Other
814 stars 257 forks source link

assets:precompile bug :-( #114

Closed itkin closed 10 years ago

itkin commented 11 years ago

With ruby ruby-2.0.0-p195 rails 3.2.13 => precompile of tinymce.js fail after timeout, removing the gems make everything work

spohlenz commented 11 years ago

Are you running the latest version of tinymce-rails (4.0.2)? This issue existed in 4.0.0 and 4.0.1 but should be fixed in 4.0.2.

If you are running 4.0.2, could you please post the output of bundle list?

craigsheen commented 10 years ago

I have an issue with it too. Just upgraded to 4.0.2 and I get this error;

rake aborted!
undefined method `each_key' for false:FalseClass
/var/www/rec_cims/shared/bundle/ruby/2.0.0/gems/tinymce-rails-4.0.2/lib/tinymce/rails/asset_manifest.rb:41:in `each'
/var/www/rec_cims/shared/bundle/ruby/2.0.0/gems/tinymce-rails-4.0.2/lib/tinymce/rails/asset_installer.rb:26:in `cleanup_assets'
/var/www/rec_cims/shared/bundle/ruby/2.0.0/gems/tinymce-rails-4.0.2/lib/tinymce/rails/asset_installer.rb:13:in `install'
/var/www/rec_cims/shared/bundle/ruby/2.0.0/gems/tinymce-rails-4.0.2/lib/tasks/tinymce-assets.rake:12:in `block in <top (required)>'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
spohlenz commented 10 years ago

@craigsheen What's in your public/assets/manifest.yml file after running rake assets:precompile (ignoring the errors)? Do you have any other asset-related gems installed?

craigsheen commented 10 years ago

It's empty after running it. For the record im running on rails 4. Should have probably mentioned that.

No others no.

Maybe its just something im doing.

spohlenz commented 10 years ago

Is that manifest.yml possibly a remnant from a previous Rails version? In Rails 4, it should generate a manifest-<random-hash>.json file instead. However tinymce-rails will attempt to update the YAML manifest if it finds it.

Try simply deleting the manifest.yml file (or your whole assets folder). If that doesn't work, it seems like something else may be incorrectly generating it.

craigsheen commented 10 years ago

Ah that does fix the issue. It does then create an issue with Capistrano, as that then looks for a manifest.yml file (which is why I had a blank one there) but that is more an issue with that.

Thanks for your help.