Jruby 1.6.3 and Rails 3.1 coffeescript bug

I cannot get coffeescript working with rails 3.1 in jurby 1.6.3.

HTTP requests for /assets/application.js do not work with TypeError: can't convert Hash into String. It works fine under MRI 1.9.2. TypeError: can't convert Hash into String. It works fine under MRI 1.9.2.

After starting the debugging ruby-debug-ide (I look at you Exception in the DebugThread loop: undefined method `is_binary_data? '); I believe that I judge the following:

Line 141 of external_runtime.rb for ExecJS (coffee dependency script) appears where this TypeError occurs:

 IO.popen(command, options) { |f| output = f.read } 

Shaking jira.codehaus.org I came across JRUBY-5532, which is fixed, but Charles Nutter noted that other I / O calls ignore the encoding options, which makes me wonder if this is an I / O issue with JRubys 1.9 support.

Regardless, I was looking for a workaround, fix, or any other information available to try to get it working. In the end, no pain - no gain.

+4
source share

All Articles