« Return to Thread: gem eval error when trying to run existing project

gem eval error when trying to run existing project

by anton ivanov :: Rate this Message:

Reply to Author | View in Thread

Hi,

I'm trying out Netbeans ruby development.  I just downloaded 6.1 with ruby bundled.  I imported an existing project, but when I run the file that I normally run from the command line, I get an error that I haven't seen before (nor has anyone else according to Google):

/usr/lib/ruby/1.8/rubygems/source_index.rb:92:in `load_specification': undefined method `parse' for Time:Class (NoMethodError)
        from /usr/lib/ruby/1.8/rubygems/specification.rb:314:in `date='
        from /usr/lib/ruby/1.8/rubygems/specification.rb:416:in `send'
        from /usr/lib/ruby/1.8/rubygems/specification.rb:416:in `initialize'
        from /usr/lib/ruby/1.8/rubygems/specification.rb:412:in `each'
        from /usr/lib/ruby/1.8/rubygems/specification.rb:412:in `initialize'
        from (eval):1:in `new'
        from (eval):1:in `load_specification'
        from /usr/lib/ruby/1.8/rubygems/source_index.rb:128:in `eval'
         ... 22 levels...
        from /home/aivanov/voxify/src/ruby/analytics/console.rb:1
        from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
        from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from /home/aivanov/voxify/src/ruby/bin/anaconsole.rb:7

The error is actually inside eval.  I tried to set a breakpoint on /usr/lib/ruby/1.8/rubygems/source_index.rb:92 to inspect what is being eval'ed, but the debugger doesn't break on that line...

Am I doing something wrong?

Thanks!

 « Return to Thread: gem eval error when trying to run existing project

LightInTheBox - Buy quality products at wholesale price