Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

rails 3.2.13.rc1 #249

Closed
courtland opened this Issue · 4 comments

2 participants

@courtland

I am trying to get rails 3.2.13.rc1 working with the latest active_scaffold master.

When I rake assets:precompile I now get the following exception coming from an active_scaffold file. I cannot tell if this is a new rails bug or something that active_scaffold needs to fix.

~/rxg2/console: rake assets:precompile
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.8
/Users/nick/.rvm/rubies/ruby-1.9.3-p327/bin/ruby /Users/nick/.rvm/gems/ruby-1.9.3-p327/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.8
rake aborted!
invalid byte sequence in US-ASCII
  (in /Users/nick/rxg2/console/vendor/cache/active_scaffold-05a44c203be0/app/assets/javascripts/jquery/date_picker_bridge.js.erb)
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/safety_colons.rb:20:in `evaluate'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/tilt-1.3.4/lib/tilt/template.rb:77:in `render'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/context.rb:193:in `block in evaluate'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/context.rb:190:in `each'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/context.rb:190:in `evaluate'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/processed_asset.rb:12:in `initialize'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:249:in `new'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:249:in `block in build_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:270:in `circular_call_protection'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:248:in `build_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/index.rb:93:in `block in build_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/caching.rb:19:in `cache_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/index.rb:92:in `build_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:169:in `find_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/index.rb:60:in `find_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/processed_asset.rb:111:in `block in resolve_dependencies'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/processed_asset.rb:105:in `each'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/processed_asset.rb:105:in `resolve_dependencies'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/processed_asset.rb:97:in `build_required_assets'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/processed_asset.rb:16:in `initialize'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:249:in `new'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:249:in `block in build_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:270:in `circular_call_protection'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:248:in `build_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/index.rb:93:in `block in build_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/caching.rb:19:in `cache_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/index.rb:92:in `build_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:169:in `find_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/index.rb:60:in `find_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/processed_asset.rb:111:in `block in resolve_dependencies'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/processed_asset.rb:105:in `each'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/processed_asset.rb:105:in `resolve_dependencies'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/processed_asset.rb:97:in `build_required_assets'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/processed_asset.rb:16:in `initialize'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:249:in `new'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:249:in `block in build_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:270:in `circular_call_protection'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:248:in `build_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/index.rb:93:in `block in build_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/caching.rb:19:in `cache_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/index.rb:92:in `build_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:169:in `find_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/index.rb:60:in `find_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/processed_asset.rb:111:in `block in resolve_dependencies'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/processed_asset.rb:105:in `each'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/processed_asset.rb:105:in `resolve_dependencies'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/processed_asset.rb:97:in `build_required_assets'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/processed_asset.rb:16:in `initialize'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:249:in `new'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:249:in `block in build_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:270:in `circular_call_protection'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:248:in `build_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/index.rb:93:in `block in build_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/caching.rb:19:in `cache_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/index.rb:92:in `build_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:169:in `find_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/index.rb:60:in `find_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/bundled_asset.rb:16:in `initialize'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:252:in `new'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:252:in `build_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/index.rb:93:in `block in build_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/caching.rb:19:in `cache_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/index.rb:92:in `build_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:169:in `find_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/index.rb:60:in `find_asset'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/actionpack-3.2.13.rc1/lib/sprockets/static_compiler.rb:19:in `block in compile'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:219:in `block in each_logical_path'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:206:in `block (2 levels) in each_file'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:196:in `each'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:196:in `each_entry'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:204:in `block in each_file'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:203:in `each'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:203:in `each_file'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/sprockets-2.2.2/lib/sprockets/base.rb:217:in `each_logical_path'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/actionpack-3.2.13.rc1/lib/sprockets/static_compiler.rb:18:in `compile'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/actionpack-3.2.13.rc1/lib/sprockets/assets.rake:56:in `internal_precompile'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/actionpack-3.2.13.rc1/lib/sprockets/assets.rake:70:in `block (3 levels) in <top (required)>'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/actionpack-3.2.13.rc1/lib/sprockets/assets.rake:60:in `block (3 levels) in <top (required)>'
Tasks: TOP => assets:precompile:primary
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [/Users/nick/.rvm/rubies/ruby-1.9.3-p327/bi...]
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/actionpack-3.2.13.rc1/lib/sprockets/assets.rake:12:in `ruby_rake_task'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/actionpack-3.2.13.rc1/lib/sprockets/assets.rake:21:in `invoke_or_reboot_rake_task'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/gems/actionpack-3.2.13.rc1/lib/sprockets/assets.rake:29:in `block (2 levels) in <top (required)>'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in `eval'
/Users/nick/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)

I have

    config.encoding = "utf-8"

In my application.rb file.

Do we simply need to add a utf-8 tag at the top of date_picker_bridge.js.erb? Or is there some config change I can make that forces this to UTF-8?

Any help is greatly appreciated.

@courtland

Adding this at the top of the file seems to fix the problem for me, but I do not understand why this is happening now.

<%# encoding: utf-8 %>
@scambra scambra closed this in 2536a29
@courtland

Thanks. Can you release a new 3.3.0 RC gem with this fix in it?

@scambra
Owner

Done

@courtland
@ajacksified ajacksified referenced this issue from a commit in ajacksified/active_scaffold
@scambra scambra encoding for date_picker_bridge, fixes #249 1a1332f
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.