2 Replies Latest reply on Apr 11, 2012 3:27 PM by Robert Galvin

    undefined method `valid_encoding?' for "D/AndroidRuntime(  396): \r\n":String

      Thought I'd give everyone a heads up.. I've ran into the following error while setting up my tests / builds through Jenkins..

       

      "undefined method `valid_encoding?' for "D/AndroidRuntime(  396): \r\n":String"

       

      It looks like this method is not part of the String class for Ruby Version (1.8.7) that is included with Rhostudio beta, but is included in newer versions of Ruby. When will the Rhostudio installer include the later builds of Ruby?

       

      http://ruby-doc.org/core-1.8.7/String.html

      http://ruby-doc.org/core-1.8.7/String.htmlhttp://ruby-doc.org/core-1.9.3/String.html#method-i-valid_encoding-3F

       

       

      Entire stacktrace

      rake aborted!

      undefined method `valid_encoding?' for "D/AndroidRuntime(  396): \r\n":String

      C:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rhodes-3.3.3.beta.1.1/platform/android/build/android.rake:1745

      C:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rhodes-3.3.3.beta.1.1/platform/android/build/android.rake:1742:in `each'

      C:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rhodes-3.3.3.beta.1.1/platform/android/build/android.rake:1742

      c:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'

      c:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `execute'

      c:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'

      c:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'

      c:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `invoke_with_call_chain'

      c:/RhoStudio/ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize'

      c:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'

      c:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'

      c:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'

      c:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'

      c:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'

      c:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'

      c:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'

      c:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'

      c:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `run'

      c:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'

      c:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'

      c:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/bin/rake:33

      c:/RhoStudio/ruby/bin/rake:19:in `load'

      c:/RhoStudio/ruby/bin/rake:19

       

      By modifying Android.rake (C:\RhoStudio\ruby\lib\ruby\gems\1.8\gems\rhodes-3.3.3.beta.1.1\platform\android\build). I was able to get my builds running to completion in Jenkins

       

                  io.each do |line|

                      puts line

       

                      #end_spec = !Jake.process_spec_output(line) if line.valid_encoding?

                      break if end_spec

                  end