requiring 'jruby/profiler' on a Rakefile causes exception
---------------------------------------------------------

                 Key: JRUBY-5649
                 URL: http://jira.codehaus.org/browse/JRUBY-5649
             Project: JRuby
          Issue Type: Bug
          Components: Application Error
    Affects Versions: JRuby 1.6
         Environment: Ubuntu Linux, running jRuby under RVM
            Reporter: Gonçalo Silva
            Priority: Minor


The following code fails when running "rake wtv":

  require 'jruby/profiler'

  task :wtv do
  end

The error:

  Profiling enabled; ^C shutdown will now dump profile info
  (in /home/goncalossilva/Desktop)
  rake aborted!
  can't convert Class into String
  org/jruby/RubyFile.java:865:in `basename'
  org/jruby/RubyFile.java:1062:in `extname'
  /home/goncalossilva/.rvm/gems/jruby-1.6.0/gems/rake-0.8.7/lib/rake.rb:2449:in 
`load_imports'
  /home/goncalossilva/.rvm/gems/jruby-1.6.0/gems/rake-0.8.7/lib/rake.rb:2390:in 
`raw_load_rakefile'
  /home/goncalossilva/.rvm/gems/jruby-1.6.0/gems/rake-0.8.7/lib/rake.rb:2017:in 
`load_rakefile'
  /home/goncalossilva/.rvm/gems/jruby-1.6.0/gems/rake-0.8.7/lib/rake.rb:2068:in 
`standard_exception_handling'
  /home/goncalossilva/.rvm/gems/jruby-1.6.0/gems/rake-0.8.7/lib/rake.rb:2016:in 
`load_rakefile'
  /home/goncalossilva/.rvm/gems/jruby-1.6.0/gems/rake-0.8.7/lib/rake.rb:2000:in 
`run'
  /home/goncalossilva/.rvm/gems/jruby-1.6.0/gems/rake-0.8.7/lib/rake.rb:2068:in 
`standard_exception_handling'
  /home/goncalossilva/.rvm/gems/jruby-1.6.0/gems/rake-0.8.7/lib/rake.rb:1998:in 
`run'
  /home/goncalossilva/.rvm/gems/jruby-1.6.0/gems/rake-0.8.7/bin/rake:31:in 
`(root)'
  org/jruby/RubyKernel.java:1062:in `load'
  /home/goncalossilva/.rvm/gems/jruby-1.6.0/bin/rake:19:in `(root)'

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to