You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Charles Oliver Nutter (JIRA)" <ji...@apache.org> on 2010/05/21 04:40:15 UTC

[jira] Commented: (BUILDR-442) Errors while running the specs with jruby 1.5

    [ https://issues.apache.org/jira/browse/BUILDR-442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869841#action_12869841 ] 

Charles Oliver Nutter commented on BUILDR-442:
----------------------------------------------

A better trace:

{noformat}
NoMethodError : undefined method `from' for <Rake::Task buildr:compile => []>:Rake::Task
/Users/headius/projects/buildr/lib/buildr/core/compile.rb:553:in `compile'
/Users/headius/projects/buildr/lib/buildr/core/test.rb:645
/Users/headius/projects/buildr/lib/buildr/core/project.rb:664:in `call'
/Users/headius/projects/buildr/lib/buildr/core/project.rb:664:in `call_callbacks'
/Users/headius/projects/buildr/lib/buildr/core/project.rb:664:in `each'
/Users/headius/projects/buildr/lib/buildr/core/project.rb:664:in `call_callbacks'
/Users/headius/projects/buildr/lib/buildr/core/project.rb:216:in `define'
/Users/headius/projects/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:634:in `call'
/Users/headius/projects/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:634:in `execute'
/Users/headius/projects/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Users/headius/projects/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Users/headius/projects/buildr/lib/buildr/core/project.rb:636:in `execute'
/Users/headius/projects/buildr/lib/buildr/core/application.rb:146:in `switch_to_namespace'
/Users/headius/projects/buildr/lib/buildr/core/project.rb:635:in `execute'
/Users/headius/projects/buildr/lib/buildr/core/application.rb:636:in `invoke_with_call_chain'
/Users/headius/projects/jruby/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
/Users/headius/projects/buildr/lib/buildr/core/application.rb:622:in `invoke_with_call_chain'
/Users/headius/projects/buildr/lib/buildr/core/application.rb:617:in `invoke'
/Users/headius/projects/buildr/lib/buildr/core/util.rb:204:in `to_proc'
/Users/headius/projects/buildr/lib/buildr/core/project.rb:281:in `each'
/Users/headius/projects/buildr/lib/buildr/core/project.rb:281:in `projects'
/Users/headius/projects/buildr/lib/buildr/core/project.rb:968:in `projects'
/Users/headius/projects/buildr/lib/buildr/core/application.rb:400:in `raw_load_buildfile'
/Users/headius/projects/buildr/lib/buildr/core/application.rb:218:in `load_builfile'
/Users/headius/projects/buildr/lib/buildr/core/application.rb:502:in `standard_exception_handling'
/Users/headius/projects/buildr/lib/buildr/core/application.rb:213:in `load_buildfile'
/Users/headius/projects/buildr/lib/buildr/core/application.rb:137:in `run'
/Users/headius/projects/buildr/lib/buildr/core/application.rb:502:in `standard_exception_handling'
/Users/headius/projects/buildr/lib/buildr/core/application.rb:135:in `run'
/Users/headius/projects/buildr/_jbuildr:29
{noformat}

> Errors while running the specs with jruby 1.5
> ---------------------------------------------
>
>                 Key: BUILDR-442
>                 URL: https://issues.apache.org/jira/browse/BUILDR-442
>             Project: Buildr
>          Issue Type: Bug
>          Components: Core features
>            Reporter: Antoine Toulme
>            Priority: Critical
>             Fix For: 1.4
>
>
> It looks like the before_define blocks are not passed correctly, and tasks are not created correctly. For example, the compile task doesn't become an instance of CompileTask. The from method is thus not defined on it. That gives a weird error message:
> 2)
> NoMethodError in 'javac compiler should identify from source directories using custom layout'
> undefined method `from' for <Rake::Task foo:compile => []>:Rake::Task
> ./spec/java/../spec_helpers.rb:144:in `execute'
> ./spec/java/../spec_helpers.rb:338:in `define'
> ./spec/java/../spec_helpers.rb:338:in `tap'
> ./spec/java/../spec_helpers.rb:338:in `define'
> ./spec/java/compiler_spec.rb:32:
> The very same code, without changes, passes on JRuby 1.4.
> I lean towards something fishy in the JRuby 1.5 codebase. Since they worked towards getting better integration with Rake, I wonder if they did some monkey-patching that causes us issues. I will discuss this with the JRuby maintainers over IRC (I was hinted to discuss with enebo).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.