Skip to content
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

NameError: uninitialized constant JSON::Ext::Parser using jruby-complete #2496

Closed
rtyler opened this issue Jan 22, 2015 · 3 comments
Closed

NameError: uninitialized constant JSON::Ext::Parser using jruby-complete #2496

rtyler opened this issue Jan 22, 2015 · 3 comments
Assignees

Comments

@rtyler
Copy link

@rtyler rtyler commented Jan 22, 2015

The full repro case is in this repository

Sttacktrace here:

NameError: uninitialized constant JSON::Ext::Parser
    const_missing at org/jruby/RubyModule.java:2935
           (root) at /home/tyler/source/github/json-9kp1-bug/build/tmp/jrubyExec/gems/json-1.8.2-java/lib/json/ext.rb:16
           (root) at /home/tyler/source/github/json-9kp1-bug/build/tmp/jrubyExec/gems/json-1.8.2-java/lib/json.rb:1
           (root) at /home/tyler/source/github/json-9kp1-bug/build/tmp/jrubyExec/gems/json-1.8.2-java/lib/json.rb:58
          require at org/jruby/RubyKernel.java:954
       __script__ at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:69
           (root) at /home/tyler/source/github/json-9kp1-bug/build/tmp/jrubyExec/gems/activesupport-4.2.0/lib/active_support/json/decoding.rb:1
           (root) at /home/tyler/source/github/json-9kp1-bug/build/tmp/jrubyExec/gems/activesupport-4.2.0/lib/active_support/json/decoding.rb:3
          require at org/jruby/RubyKernel.java:954
       __script__ at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:69
           (root) at /home/tyler/source/github/json-9kp1-bug/build/tmp/jrubyExec/gems/activesupport-4.2.0/lib/active_support/json.rb:1
          require at org/jruby/RubyKernel.java:954
       __script__ at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:69
           (root) at /home/tyler/source/github/json-9kp1-bug/build/tmp/jrubyExec/gems/activesupport-4.2.0/lib/active_support/json.rb:1
          require at org/jruby/RubyKernel.java:954
       __script__ at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:128
           (root) at /home/tyler/source/github/json-9kp1-bug/spec/some_spec.rb:1
             load at org/jruby/RubyKernel.java:969
           (root) at /home/tyler/source/github/json-9kp1-bug/spec/some_spec.rb:2
             each at org/jruby/RubyArray.java:1569
           (root) at /home/tyler/source/github/json-9kp1-bug/build/tmp/jrubyExec/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1
  load_spec_files at /home/tyler/source/github/json-9kp1-bug/build/tmp/jrubyExec/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1105
  load_spec_files at /home/tyler/source/github/json-9kp1-bug/build/tmp/jrubyExec/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1105
            setup at /home/tyler/source/github/json-9kp1-bug/build/tmp/jrubyExec/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:96
              run at /home/tyler/source/github/json-9kp1-bug/build/tmp/jrubyExec/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:84
              run at /home/tyler/source/github/json-9kp1-bug/build/tmp/jrubyExec/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:69
             load at org/jruby/RubyKernel.java:969
       __script__ at /home/tyler/source/github/json-9kp1-bug/build/tmp/jrubyExec/bin/rspec:23
:spec FAILED
ai referenced this issue in ai/autoprefixer-rails Feb 1, 2015
Fix for issue #47
@rtyler
Copy link
Author

@rtyler rtyler commented Jun 5, 2015

Note to self: I've seen this with JRuby 1.7.x jruby-complete when I had some MRI Ruby as my default Ruby exposed via RVM.

Unsetting GEM_HOME and GEM_PATH resulted in that being fixed.

@mkristian
Copy link
Member

@mkristian mkristian commented Jun 5, 2015

with 86887d3 which is now also applied on jruby-1_7 this issue should be fixed.

will have a look at the supplied repo.

@mkristian mkristian self-assigned this Jun 5, 2015
@mkristian mkristian added this to the JRuby 9.0.0.0.rc1 milestone Jun 5, 2015
@headius
Copy link
Member

@headius headius commented Jul 2, 2015

If @mkristian says it's fixed, I'll accept that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants