buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Richt <ryan.jerry.ri...@monsanto.com>
Subject Re: Three (3) Language Compilation
Date Thu, 28 Apr 2011 18:41:32 GMT
Thank you Alex,

He was my solution to split scala into a separate sub-project but still have everything come
from and compile to the same set of dirs:

I split out Scala into a separate sub-project and redirected the in/out using ".parent.path_to"
and "from / into" to have all 3 langs compile to the same location:

...
       define 'core' do

       	      compile.with GROOVY, libs

       	      pkg = package(:jar, :file=>_('target/seqosystem.jar')) \
	      		    .with(:manifest => {
					        'MAIN-CLASS' => 'com.monsanto.seqosystem.core.config.Configurator',
					        'VERSION' => project.version
					       })

       end

       define 'core_scala' do
       	      compile.with libs
       	      compile.using(:scalac).from( self.parent.path_to(:core, :src, :main, :scala)
).into( self.parent.path_to(:core, :target, :classes ) )
       end
...


And that yields and incredibly verbose error from JRuby, below. Also of note, the code compiles
fine in IntelliJ, I don't know its from internal or my code, the error message has nothing
to say about which file is being compiled...

Any ideas?

Thank you!

ryan richt

jruby -S buildr sos:core_scala:build

Compiling sos:core into /Users/ry/sos3/src/core/target/classes
  [groovyc] Compiling 1 source file to /Users/ry/sos3/src/core/target/classes
  [groovyc] The option optimize cannot be set on the contained <javac> element. The
option will be ignored
Compiling sos:core_scala into /Users/ry/sos3/src/core/target/classes
No known dependencies. Compiling everything
scala.tools.nsc.FatalError: class Array does not have a member apply
	at scala.tools.nsc.symtab.Definitions$definitions$.getMember(Definitions.scala:496)
	at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:3387)
	at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4049)
	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4203)
	at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:2128)
	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$20.apply(Typers.scala:2196)
	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$20.apply(Typers.scala:2196)
	at scala.collection.immutable.List.loop$1(List.scala:115)
	at scala.collection.immutable.List.mapConserve(List.scala:132)
	at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:2196)
	at scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:1948)
	at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3894)
	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4203)
	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4252)
	at scala.tools.nsc.typechecker.Typers$Typer.typedDefDef(Typers.scala:1787)
	at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3862)
	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4203)
	at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:2128)
	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$20.apply(Typers.scala:2196)
	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$20.apply(Typers.scala:2196)
	at scala.collection.immutable.List.loop$1(List.scala:115)
	at scala.collection.immutable.List.mapConserve(List.scala:132)
	at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:2196)
	at scala.tools.nsc.typechecker.Typers$Typer.typedTemplate(Typers.scala:1549)
	at scala.tools.nsc.typechecker.Typers$Typer.typedModuleDef(Typers.scala:1348)
	at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3856)
	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4203)
	at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:2128)
	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$20.apply(Typers.scala:2196)
	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$20.apply(Typers.scala:2196)
	at scala.collection.immutable.List.loop$1(List.scala:115)
	at scala.collection.immutable.List.mapConserve(List.scala:132)
	at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:2196)
	at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3849)
	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4203)
	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4252)
	at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.apply(Analyzer.scala:85)
	at scala.tools.nsc.Global$GlobalPhase$$anonfun$applyPhase$1.apply(Global.scala:282)
	at scala.tools.nsc.Global$GlobalPhase$$anonfun$applyPhase$1.apply(Global.scala:282)
	at scala.tools.nsc.reporters.Reporter.withSource(Reporter.scala:48)
	at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:282)
	at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:80)
	at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:80)
	at scala.collection.Iterator$class.foreach(Iterator.scala:631)
	at scala.collection.mutable.ListBuffer$$anon$1.foreach(ListBuffer.scala:304)
	at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.run(Analyzer.scala:80)
	at scala.tools.nsc.Global$Run.compileSources(Global.scala:741)
	at scala.tools.nsc.Global$Run.compile(Global.scala:822)
	at scala.tools.nsc.Main$.process(Main.scala:106)
	at scala.tools.nsc.Main.process(Main.scala)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:525)
	at org.jruby.javasupport.JavaMethod.invokeStaticDirect(JavaMethod.java:431)
	at org.jruby.java.invokers.StaticMethodInvoker.call(StaticMethodInvoker.java:57)
	at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:282)
	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:139)
	at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.ast.RescueNode.executeBody(RescueNode.java:216)
	at org.jruby.ast.RescueNode.interpretWithJavaExceptions(RescueNode.java:120)
	at org.jruby.ast.RescueNode.interpret(RescueNode.java:110)
	at org.jruby.ast.BeginNode.interpret(BeginNode.java:83)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
	at org.jruby.ast.IfNode.interpret(IfNode.java:119)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
	at org.jruby.ast.IfNode.interpret(IfNode.java:119)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
	at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
	at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:276)
	at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:211)
	at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:322)
	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:207)
	at org.jruby.ast.CallThreeArgNode.interpret(CallThreeArgNode.java:61)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
	at org.jruby.ast.IfNode.interpret(IfNode.java:119)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:111)
	at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:374)
	at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:328)
	at org.jruby.runtime.BlockBody.call(BlockBody.java:73)
	at org.jruby.runtime.Block.call(Block.java:89)
	at org.jruby.RubyProc.call(RubyProc.java:268)
	at org.jruby.RubyProc.call(RubyProc.java:228)
	at org.jruby.RubyProc$i$0$0$call.call(RubyProc$i$0$0$call.gen:65535)
	at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:209)
	at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:205)
	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:137)
	at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.ast.WhenOneArgNode.when(WhenOneArgNode.java:49)
	at org.jruby.ast.CaseNode.interpret(CaseNode.java:133)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:111)
	at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:374)
	at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:347)
	at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:304)
	at org.jruby.runtime.Block.yield(Block.java:130)
	at org.jruby.RubyArray.eachCommon(RubyArray.java:1565)
	at org.jruby.RubyArray.each(RubyArray.java:1572)
	at org.jruby.RubyArray$i$0$0$each.call(RubyArray$i$0$0$each.gen:65535)
	at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:112)
	at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:123)
	at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
	at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
	at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:190)
	at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:179)
	at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:282)
	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:139)
	at rubyjit.invoke_with_call_chain_8FCA85149A18DD1FACF97FF06FE543F9B985D34E.chained_2_ensure_1$RUBY$__ensure__(/Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/buildr-1.4.5-java/lib/buildr/core/application.rb:674)
	at rubyjit.invoke_with_call_chain_8FCA85149A18DD1FACF97FF06FE543F9B985D34E.block_0$RUBY$__file__(/Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/buildr-1.4.5-java/lib/buildr/core/application.rb:672)
	at rubyjit$invoke_with_call_chain_8FCA85149A18DD1FACF97FF06FE543F9B985D34E#block_0$RUBY$__file__.call(rubyjit$invoke_with_call_chain_8FCA85149A18DD1FACF97FF06FE543F9B985D34E#block_0$RUBY$__file__:65535)
	at org.jruby.runtime.CompiledBlock.yield(CompiledBlock.java:112)
	at org.jruby.runtime.CompiledBlock.yield(CompiledBlock.java:95)
	at org.jruby.runtime.CompiledBlock.yieldSpecific(CompiledBlock.java:75)
	at org.jruby.runtime.Block.yieldSpecific(Block.java:99)
	at rubyjit.mon_synchronize_2B8A390F8E255A12A7AE14EEAC36AF0930A6A72B.chained_0_ensure_1$RUBY$__ensure__(/Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/1.8/monitor.rb:191)
	at rubyjit.mon_synchronize_2B8A390F8E255A12A7AE14EEAC36AF0930A6A72B.__file__(/Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/1.8/monitor.rb:190)
	at rubyjit.mon_synchronize_2B8A390F8E255A12A7AE14EEAC36AF0930A6A72B.__file__(/Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/1.8/monitor.rb)
	at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:147)
	at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:174)
	at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:81)
	at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:112)
	at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:123)
	at rubyjit.invoke_with_call_chain_8FCA85149A18DD1FACF97FF06FE543F9B985D34E.__file__(/Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/buildr-1.4.5-java/lib/buildr/core/application.rb:660)
	at rubyjit.invoke_with_call_chain_8FCA85149A18DD1FACF97FF06FE543F9B985D34E.__file__(/Users/ry/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/buildr-1.4.5-java/lib/buildr/core/application.rb)
	at org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:207)
	at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:302)
	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:173)
	at org.jruby.ast.CallTwoArgNode.interpret(CallTwoArgNode.java:59)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
	at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:111)
	at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:374)
	at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:347)
	at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:304)
	at org.jruby.runtime.Block.yield(Block.java:130)
	at org.jruby.RubyArray.eachCommon(RubyArray.java:1565)
	at org.jruby.RubyArray.each(RubyArray.java:1572)
	at org.jruby.RubyArray$i$0$0$each.call(RubyArray$i$0$0$each.gen:65535)
	at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:112)
	at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:123)
	at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
	at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:233)
	at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:195)
	at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:302)
	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:173)
	at org.jruby.ast.FCallTwoArgNode.interpret(FCallTwoArgNode.java:38)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.ast.RescueNode.executeBody(RescueNode.java:216)
	at org.jruby.ast.RescueNode.interpretWithJavaExceptions(RescueNode.java:120)
	at org.jruby.ast.RescueNode.interpret(RescueNode.java:110)
	at org.jruby.ast.BeginNode.interpret(BeginNode.java:83)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
	at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:111)
	at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:374)
	at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:295)
	at org.jruby.runtime.InterpretedBlock.yieldSpecific(InterpretedBlock.java:229)
	at org.jruby.runtime.Block.yieldSpecific(Block.java:99)
	at org.jruby.ast.ZYieldNode.interpret(ZYieldNode.java:25)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.ast.EnsureNode.interpret(EnsureNode.java:96)
	at org.jruby.ast.BeginNode.interpret(BeginNode.java:83)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
	at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
	at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:169)
	at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:171)
	at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:81)
	at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:112)
	at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:123)
	at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
	at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
	at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:233)
	at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:195)
	at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:302)
	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:173)
	at org.jruby.ast.CallTwoArgNode.interpret(CallTwoArgNode.java:59)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
	at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:111)
	at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:374)
	at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:347)
	at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:304)
	at org.jruby.runtime.Block.yield(Block.java:130)
	at org.jruby.RubyArray.eachCommon(RubyArray.java:1565)
	at org.jruby.RubyArray.each(RubyArray.java:1572)
	at org.jruby.RubyArray$i$0$0$each.call(RubyArray$i$0$0$each.gen:65535)
	at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:272)
	at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:114)
	at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:123)
	at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
	at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:233)
	at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:195)
	at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:302)
	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:173)
	at org.jruby.ast.FCallTwoArgNode.interpret(FCallTwoArgNode.java:38)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.ast.RescueNode.executeBody(RescueNode.java:216)
	at org.jruby.ast.RescueNode.interpretWithJavaExceptions(RescueNode.java:120)
	at org.jruby.ast.RescueNode.interpret(RescueNode.java:110)
	at org.jruby.ast.BeginNode.interpret(BeginNode.java:83)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
	at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:111)
	at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:374)
	at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:295)
	at org.jruby.runtime.InterpretedBlock.yieldSpecific(InterpretedBlock.java:229)
	at org.jruby.runtime.Block.yieldSpecific(Block.java:99)
	at org.jruby.ast.ZYieldNode.interpret(ZYieldNode.java:25)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.ast.EnsureNode.interpret(EnsureNode.java:96)
	at org.jruby.ast.BeginNode.interpret(BeginNode.java:83)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
	at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
	at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:169)
	at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:171)
	at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:81)
	at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:112)
	at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:123)
	at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
	at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
	at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:233)
	at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:195)
	at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:302)
	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:173)
	at org.jruby.ast.FCallTwoArgNode.interpret(FCallTwoArgNode.java:38)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
	at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
	at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:147)
	at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:163)
	at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:262)
	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:105)
	at org.jruby.ast.CallSpecialArgNode.interpret(CallSpecialArgNode.java:65)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
	at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
	at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:190)
	at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:179)
	at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:282)
	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:139)
	at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:111)
	at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:374)
	at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:347)
	at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:304)
	at org.jruby.runtime.Block.yield(Block.java:130)
	at org.jruby.RubyArray.eachCommon(RubyArray.java:1565)
	at org.jruby.RubyArray.each(RubyArray.java:1572)
	at org.jruby.RubyArray$i$0$0$each.call(RubyArray$i$0$0$each.gen:65535)
	at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:272)
	at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:114)
	at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:123)
	at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
	at org.jruby.ast.IfNode.interpret(IfNode.java:119)
	at org.jruby.ast.IfNode.interpret(IfNode.java:119)
	at org.jruby.ast.IfNode.interpret(IfNode.java:119)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:111)
	at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:374)
	at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:295)
	at org.jruby.runtime.InterpretedBlock.yieldSpecific(InterpretedBlock.java:229)
	at org.jruby.runtime.Block.yieldSpecific(Block.java:99)
	at org.jruby.ast.ZYieldNode.interpret(ZYieldNode.java:25)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.ast.RescueNode.executeBody(RescueNode.java:216)
	at org.jruby.ast.RescueNode.interpretWithJavaExceptions(RescueNode.java:120)
	at org.jruby.ast.RescueNode.interpret(RescueNode.java:110)
	at org.jruby.ast.BeginNode.interpret(BeginNode.java:83)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
	at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:169)
	at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:171)
	at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:272)
	at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:114)
	at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:123)
	at org.jruby.ast.FCallNoArgBlockNode.interpret(FCallNoArgBlockNode.java:32)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
	at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:147)
	at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:163)
	at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:262)
	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:105)
	at org.jruby.ast.VCallNode.interpret(VCallNode.java:85)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
	at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:111)
	at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:374)
	at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:295)
	at org.jruby.runtime.InterpretedBlock.yieldSpecific(InterpretedBlock.java:229)
	at org.jruby.runtime.Block.yieldSpecific(Block.java:99)
	at org.jruby.ast.ZYieldNode.interpret(ZYieldNode.java:25)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.ast.RescueNode.executeBody(RescueNode.java:216)
	at org.jruby.ast.RescueNode.interpretWithJavaExceptions(RescueNode.java:120)
	at org.jruby.ast.RescueNode.interpret(RescueNode.java:110)
	at org.jruby.ast.BeginNode.interpret(BeginNode.java:83)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
	at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:169)
	at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:171)
	at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:272)
	at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:114)
	at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:123)
	at org.jruby.ast.FCallNoArgBlockNode.interpret(FCallNoArgBlockNode.java:32)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
	at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:147)
	at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:163)
	at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:262)
	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:105)
	at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:62)
	at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
	at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
	at org.jruby.ast.RootNode.interpret(RootNode.java:129)
	at org.jruby.evaluator.ASTInterpreter.INTERPRET_ROOT(ASTInterpreter.java:119)
	at org.jruby.Ruby.runInterpreter(Ruby.java:697)
	at org.jruby.Ruby.loadFile(Ruby.java:2417)
	at org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:66)
	at org.jruby.runtime.load.LoadService.load(LoadService.java:272)
	at org.jruby.RubyKernel.loadCommon(RubyKernel.java:1080)
	at org.jruby.RubyKernel.load(RubyKernel.java:1062)
	at org.jruby.RubyKernel$s$0$1$load.call(RubyKernel$s$0$1$load.gen:65535)
	at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:209)
	at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:205)
	at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:282)
	at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:139)
	at Users.ry.Cellar.jruby.$1_dot_6_dot_0.jruby.bin.buildr.__file__(/Users/ry/Cellar/jruby/1.6.0/jruby/bin/buildr:19)
	at Users.ry.Cellar.jruby.$1_dot_6_dot_0.jruby.bin.buildr.load(/Users/ry/Cellar/jruby/1.6.0/jruby/bin/buildr)
	at org.jruby.Ruby.runScript(Ruby.java:670)
	at org.jruby.Ruby.runNormally(Ruby.java:574)
	at org.jruby.Ruby.runFromMain(Ruby.java:423)
	at org.jruby.Main.doRunFromMain(Main.java:278)
	at org.jruby.Main.internalRun(Main.java:198)
	at org.jruby.Main.run(Main.java:164)
	at org.jruby.Main.run(Main.java:148)
	at org.jruby.Main.main(Main.java:128)
error: fatal error: class Array does not have a member apply
Buildr aborted!
RuntimeError : Failed to compile, see errors above

(See full trace by running task with --trace)






On Apr 27, 2011, at 11:49 AM, Alex Boisvert wrote:

> On Wed, Apr 27, 2011 at 8:05 AM, Ryan Richt
> <ryan.jerry.richt@monsanto.com>wrote:
> 
>> First, thank you so much for the patch yesterday! Sorry to bother you again
>> but...
>> 
>> I was trying to find an example of 3-language compilation. It seems that if
>> I have the canonical dir structure and require both compilers, the nugget in
>> the docs which says "if you include both joint compilers the groovy compiler
>> will take precedence" really means "your scala will not get compiled at all,
>> joint or otherwise"
>> 
>> In the list archives, I saw were Spiewak was suggesting a short 3 language
>> example, but it doesnt seem that ever matured. I'm wondering how to set up
>> Java + Groovy + Scala in two cases .... Groovy & Java joint + Scala alone,
>> and Scala & Java joint + Groovy alone. This would be all three langs in the
>> same sub-project, not separate sub-projects.
>> 
> 
> All in the same sub-project isn't supported yet;  for the time being, you'll
> need to split your project into at least 2 sub-projects in order to compile
> all 3 languages.
> 
> alex

This e-mail message may contain privileged and/or confidential information, and is intended
to be received only by persons entitled
to receive such information. If you have received this e-mail in error, please notify the
sender immediately. Please delete it and
all attachments from any servers, hard drives or any other media. Other use of this e-mail
by you is strictly prohibited.

All e-mails and attachments sent and received are subject to monitoring, reading and archival
by Monsanto, including its
subsidiaries. The recipient of this e-mail is solely responsible for checking for the presence
of "Viruses" or other "Malware".
Monsanto, along with its subsidiaries, accepts no liability for any damage caused by any such
code transmitted by or accompanying
this e-mail or any attachment.


The information contained in this email may be subject to the export control laws and regulations
of the United States, potentially
including but not limited to the Export Administration Regulations (EAR) and sanctions regulations
issued by the U.S. Department of
Treasury, Office of Foreign Asset Controls (OFAC).  As a recipient of this information you
are obligated to comply with all
applicable U.S. export laws and regulations.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message