rhomobile / rhodes

The Rhodes framework is a platform for building locally executing, device-optimized mobile applications for all major smartphone devices.
http://tau-platform.com/
MIT License
1.05k stars 237 forks source link

Cannot build android app with ruby 2.1.8 #954

Closed louisatome closed 6 years ago

louisatome commented 6 years ago

When I try to build my application for android with a ruby 2.1.8, I've got the following error :

[INFO]  start running rhogen with api key for + [/Users/dev/.rvm/gems/ruby-2.1.8/gems/rhodes-6.0.31.2/lib/commonAPI/coreapi/ext/Application.xml]
/Users/dev/.rvm/gems/ruby-2.1.8/gems/rhodes-6.0.31.2/bin/rhogen:24:in `encoding': undefined method `responds_to?' for Encoding:Class (NoMethodError)
    from /Users/dev/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/rexml/source.rb:125:in `detect_encoding'
    from /Users/dev/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/rexml/source.rb:47:in `initialize'
    from /Users/dev/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/rexml/source.rb:170:in `initialize'
    from /Users/dev/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/rexml/source.rb:15:in `new'
    from /Users/dev/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/rexml/source.rb:15:in `create_from'
    from /Users/dev/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/rexml/parsers/baseparser.rb:128:in `stream='
    from /Users/dev/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/rexml/parsers/baseparser.rb:117:in `initialize'
    from /Users/dev/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/rexml/parsers/treeparser.rb:9:in `new'
    from /Users/dev/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/rexml/parsers/treeparser.rb:9:in `initialize'
    from /Users/dev/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/rexml/document.rb:287:in `new'
    from /Users/dev/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/rexml/document.rb:287:in `build'
    from /Users/dev/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/rexml/document.rb:44:in `initialize'
    from /Users/dev/.rvm/gems/ruby-2.1.8/gems/rhodes-6.0.31.2/res/generators/rhogen_core.rb:2281:in `new'
    from /Users/dev/.rvm/gems/ruby-2.1.8/gems/rhodes-6.0.31.2/res/generators/rhogen_core.rb:2281:in `setup_xml'
    from /Users/dev/.rvm/gems/ruby-2.1.8/gems/rhodes-6.0.31.2/res/generators/rhogen.rb:1278:in `step_through_templates'
    from /Users/dev/.rvm/gems/ruby-2.1.8/gems/templater-1.0.0/lib/templater/cli/generator.rb:75:in `run'
    from /Users/dev/.rvm/gems/ruby-2.1.8/gems/templater-1.0.0/lib/templater/cli/manifold.rb:24:in `run'
    from /Users/dev/.rvm/gems/ruby-2.1.8/gems/templater-1.0.0/lib/templater/manifold.rb:80:in `run_cli'
    from /Users/dev/.rvm/gems/ruby-2.1.8/gems/rhodes-6.0.31.2/bin/rhogen:33:in `<main>'

I think the problem is the regexp RUBY_VERSION =~ /1\.8/ which should be RUBY_VERSION =~ /^1\.8/ if the purpose is to verify that the ruby version is 1.8.x