Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.7.0.pre1
    • Fix Version/s: JRuby 1.7.0.pre2
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows XP-x86
      Java HotSpot(TM) Client VM 1.7.0_03
    • Number of attachments :
      0

      Description

      When I try to run the following simplistic script I am getting a
      "NameError: uninitialized constant RubyVM" .

      D:\Workspace\Ruby\rubytester>more profile.rb
      require 'profile'

      puts "Hello"

      D:\Workspace\Ruby\rubytester>jruby profile.rb
      NameError: uninitialized constant RubyVM
      const_missing at org/jruby/RubyModule.java:2715
      (root) at C:/Programme/JRuby/1.7.0.preview1/lib/ruby/1.9/profile.rb:3
      require at org/jruby/RubyKernel.java:991
      (root) at
      C:/Programme/JRuby/1.7.0.preview1/lib/ruby/shared/rubygems/custom_require.rb:1
      (root) at profile.rb:1

      D:\Workspace\Ruby\rubytester>jruby -v
      jruby 1.7.0.preview1 (ruby-1.9.3-p203) (2012-05-19 00c8c98) (Java
      HotSpot(TM) Client VM 1.7.0_03) [Windows XP-x86-java]

        Activity

        Hide
        Charles Oliver Nutter added a comment -

        The new profile.rb depends on RubyVM namespace from YARV, which we do not support. We will probably need to use the 1.8 version or come up with our own. I'll do a brief investigation.

        Show
        Charles Oliver Nutter added a comment - The new profile.rb depends on RubyVM namespace from YARV, which we do not support. We will probably need to use the 1.8 version or come up with our own. I'll do a brief investigation.
        Hide
        Charles Oliver Nutter added a comment -

        Fixed. Following commit is from our jruby/ruby fork repository, jruby-ruby_1_9_3 branch.

        commit 429d56598255bb6d34289f2dc68535240265206e
        Author: Charles Oliver Nutter <headius@headius.com>
        Date:   Thu Jun 28 21:34:05 2012 -0500
        
            Fix JRUBY-6725
            
            NameError: uninitialized constant RubyVM
            
            The RubyVM use in this file is only to turn on tracing
            instructions. We use the --debug flag for that purpose, so I just
            commented out the RubyVM-related lines and things work now.
        
        Show
        Charles Oliver Nutter added a comment - Fixed. Following commit is from our jruby/ruby fork repository, jruby-ruby_1_9_3 branch. commit 429d56598255bb6d34289f2dc68535240265206e Author: Charles Oliver Nutter <headius@headius.com> Date: Thu Jun 28 21:34:05 2012 -0500 Fix JRUBY-6725 NameError: uninitialized constant RubyVM The RubyVM use in this file is only to turn on tracing instructions. We use the --debug flag for that purpose, so I just commented out the RubyVM-related lines and things work now.

          People

          • Assignee:
            Charles Oliver Nutter
            Reporter:
            Martin Gross
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: