New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

still some issues with reloader and jruby #850

Merged
merged 1 commit into from Jun 11, 2012

Conversation

Projects
None yet
2 participants
@erubboli
Contributor

erubboli commented May 24, 2012

if you create a new project with jruby and sequel using sqlite you'll get the following error:

ArgumentError: Java package `java.name.name.name.name.name.name.name.name' does not have a method `index'
        method_missing at /home/erubboli/.rvm/rubies/jruby-1.6.7/lib/ruby/site_ruby/shared/builtin/javasupport/java.rb:50
       remove_constant at /home/erubboli/.rvm/gems/jruby-1.6.7@vfdb-api/bundler/gems/padrino-framework-78329337e6bc/padrino-core/lib/padrino-core/reloader.rb:186
                  any? at org/jruby/RubyEnumerable.java:1355
       remove_constant at /home/erubboli/.rvm/gems/jruby-1.6.7@vfdb-api/bundler/gems/padrino-framework-78329337e6bc/padrino-core/lib/padrino-core/reloader.rb:186
             safe_load at /home/erubboli/.rvm/gems/jruby-1.6.7@vfdb-api/bundler/gems/padrino-framework-78329337e6bc/padrino-core/lib/padrino-core/reloader.rb:164
                  each at org/jruby/RubyArray.java:1615
             safe_load at /home/erubboli/.rvm/gems/jruby-1.6.7@vfdb-api/bundler/gems/padrino-framework-78329337e6bc/padrino-core/lib/padrino-core/reloader.rb:164
  require_dependencies at /home/erubboli/.rvm/gems/jruby-1.6.7@vfdb-api/bundler/gems/padrino-framework-78329337e6bc/padrino-core/lib/padrino-core/loader.rb:163
                  each at org/jruby/RubyArray.java:1615
  require_dependencies at /home/erubboli/.rvm/gems/jruby-1.6.7@vfdb-api/bundler/gems/padrino-framework-78329337e6bc/padrino-core/lib/padrino-core/loader.rb:161
                 load! at /home/erubboli/.rvm/gems/jruby-1.6.7@vfdb-api/bundler/gems/padrino-framework-78329337e6bc/padrino-core/lib/padrino-core/loader.rb:70
                  each at org/jruby/RubyArray.java:1615
                 load! at /home/erubboli/.rvm/gems/jruby-1.6.7@vfdb-api/bundler/gems/padrino-framework-78329337e6bc/padrino-core/lib/padrino-core/loader.rb:70
                (root) at /home/erubboli/projects/elc/vfdb-api/config/boot.rb:29
               require at org/jruby/RubyKernel.java:1042
                  rake at /home/erubboli/projects/elc/vfdb-api/config/boot.rb:54
              __send__ at org/jruby/RubyBasicObject.java:1698
                  send at org/jruby/RubyKernel.java:2097
                   run at /home/erubboli/.rvm/gems/jruby-1.6.7@vfdb-api/gems/thor-0.14.6/lib/thor/task.rb:21
           invoke_task at /home/erubboli/.rvm/gems/jruby-1.6.7@vfdb-api/gems/thor-0.14.6/lib/thor/invocation.rb:118
              dispatch at /home/erubboli/.rvm/gems/jruby-1.6.7@vfdb-api/gems/thor-0.14.6/lib/thor.rb:263
                 start at /home/erubboli/.rvm/gems/jruby-1.6.7@vfdb-api/gems/thor-0.14.6/lib/thor/base.rb:389
                (root) at /home/erubboli/.rvm/gems/jruby-1.6.7@vfdb-api/bundler/gems/padrino-framework-78329337e6bc/padrino-core/bin/padrino:9
                  load at org/jruby/RubyKernel.java:1068
                (root) at /home/erubboli/.rvm/gems/jruby-1.6.7@vfdb-api/bin/padrino:19

this fixes the issue using the same logic used in 865d67c

DAddYE added a commit that referenced this pull request Jun 11, 2012

Merge pull request #850 from dn2k/master
still some issues with reloader and jruby

@DAddYE DAddYE merged commit aa92458 into padrino:master Jun 11, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment