Allen Rohner created JRUBY-6417:
-----------------------------------
Summary: exception in rake assets:precompile in jruby-1.6.6
Key: JRUBY-6417
URL: https://jira.codehaus.org/browse/JRUBY-6417
Project: JRuby
Issue Type: Bug
Components: Application Error
Affects Versions: JRuby 1.6.6
Environment: jruby 1.6.6, rails-3.1.1, execjs 1.2.9
Reporter: Allen Rohner
I'm seeing behavior extremely similar to JRUBY-5942 in jruby-1.6.6. Running
rake assets:precompile works fine in jruby-1.6.5, but in 1.6.6 I get:
rake aborted!
can't convert Encoding into String
(in
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/haml_coffee_assets-0.6.0/vendor/assets/javascripts/hamlcoffee.js.coffee.erb)
org/jruby/RubyIO.java:3722:in `popen'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/execjs-1.2.9/lib/execjs/external_runtime.rb:165:in
`sh'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/execjs-1.2.9/lib/execjs/external_runtime.rb:125:in
`exec_runtime'
org/jruby/RubyBasicObject.java:1700:in `__send__'
org/jruby/RubyKernel.java:2099:in `send'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/execjs-1.2.9/lib/execjs/external_runtime.rb:27:in
`exec'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/execjs-1.2.9/lib/execjs/external_runtime.rb:40:in
`compile_to_tempfile'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/execjs-1.2.9/lib/execjs/external_runtime.rb:26:in
`exec'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/execjs-1.2.9/lib/execjs/external_runtime.rb:18:in
`eval'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/execjs-1.2.9/lib/execjs/external_runtime.rb:32:in
`call'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/coffee-script-2.2.0/lib/coffee_script.rb:57:in
`compile'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/tilt-1.3.3/lib/tilt/coffee.rb:46:in
`evaluate'
the code in question is
{code}
def sh(command)
output, options = nil, {}
options[:external_encoding] = @encoding if @encoding
options[:internal_encoding] = Encoding.default_internal || 'UTF-8'
IO.popen(command, options) { |f| output = f.read }
output
end
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email