This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Re: Compiler NPE with import Ordering.Implicits._

4 replies
Jason Zaugg
Joined: 2009-05-18,
User offline. Last seen 38 weeks 5 days ago.
last chavrusa-ivr/compile:compile
(Perhaps the sub-project `chavrusa-ivr` is not in the list of aggregated projects or your root project.)
-jason

On Thu, Dec 15, 2011 at 11:21 AM, Naftoli Gugenheim <naftoligug@gmail.com> wrote:
Nope!
Jason Zaugg
Joined: 2009-05-18,
User offline. Last seen 38 weeks 5 days ago.
Re: Compiler NPE with import Ordering.Implicits._
Just run scalac directly to take SBT out of the loop.
scalac @args.txt
Where args.txt is this file: https://gist.github.com/1479418
-jason

On Thu, Dec 15, 2011 at 11:29 AM, Naftoli Gugenheim <naftoligug@gmail.com> wrote:
Sorry. :(
1. Waiting for source changes... (press enter to interrupt)[info] Compiling 1 Scala source to /home/naftoli/dev/chavrusa/ivr/target/scala-2.9.1/classes... [error] {file:/home/naftoli/dev/chavrusa/}chavrusa-ivr/compile:compile: java.lang.NullPointerException[error] Total time: 1 s, completed Dec 14, 2011 8:28:08 PM2. Waiting for source changes... (press enter to interrupt)
> last chchavrusa-backend/     chavrusa-common/      chavrusa-dataentry/   chavrusa-frontend/    chavrusa-ivr/         checksums> last chavrusa-ivr/cocommands           compile            compile-inputs     compile-order      compile:           compilers          configuration      conflict-warning   connect-input      console            console-project console-quick      copy-resources> last chavrusa-ivr/com commands         compile          compile-inputs   compile-order    compile:         compilers> last chavrusa-ivr/compile:compile chavrusa-common/compile:compile[debug] [debug] Initial source changes: [debug]         removed:Set()[debug]         added: Set()[debug]         modified: Set() [debug] Removed products: Set()[debug] Modified external sources: Set()[debug] Modified binary dependencies: Set()[debug] Initial directly invalidated sources: Set()[debug]  [debug] Sources indirectly invalidated by:[debug]         product: Set()[debug]         binary dep: Set()[debug]         external source: Set()[debug] Initially invalidated: Set() {file:/home/naftoli/dev/scheduler/}default-1da6c9/compile:compile[debug] [debug] Initial source changes: [debug]         removed:Set()[debug]         added: Set() [debug]         modified: Set()[debug] Removed products: Set()[debug] Modified external sources: Set()[debug] Modified binary dependencies: Set()[debug] Initial directly invalidated sources: Set() [debug] [debug] Sources indirectly invalidated by:[debug]         product: Set()[debug]         binary dep: Set()[debug]         external source: Set()[debug] Initially invalidated: Set() chavrusa-ivr/compile:compile[debug] [debug] Initial source changes: [debug]         removed:Set()[debug]         added: Set()[debug]         modified: Set(/home/naftoli/dev/chavrusa/ivr/src/main/scala/chavrusa/ivr/AgiMain.scala) [debug] Removed products: Set()[debug] Modified external sources: Set()[debug] Modified binary dependencies: Set()[debug] Initial directly invalidated sources: Set(/home/naftoli/dev/chavrusa/ivr/src/main/scala/chavrusa/ivr/AgiMain.scala) [debug] [debug] Sources indirectly invalidated by:[debug]         product: Set()[debug]         binary dep: Set()[debug]         external source: Set()[debug] Initially invalidated: Set(/home/naftoli/dev/chavrusa/ivr/src/main/scala/chavrusa/ivr/AgiMain.scala) [info] Compiling 1 Scala source to /home/naftoli/dev/chavrusa/ivr/target/scala-2.9.1/classes...[debug] Interfacing (CompilerInterface) with Scala compiler version 2.9.1.final[debug] Calling Scala compiler with arguments  (CompilerInterface): [debug]         -deprecation[debug]         -d[debug]         /home/naftoli/dev/chavrusa/ivr/target/scala-2.9.1/classes[debug]         -bootclasspath[debug]         /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/resources.jar:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/rt.jar:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/jsse.jar:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/jce.jar:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/charsets.jar:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/modules/jdk.boot.jar:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/classes:/home/naftoli/dev/jrebel/jrebel.jar:/home/naftoli/.sbt/boot/scala-2.9.1/lib/scala-library.jar [debug]         -classpath[debug]         /home/naftoli/dev/chavrusa/ivr/target/scala-2.9.1/classes:/home/naftoli/dev/chavrusa/common/target/scala-2.9.1/classes:/home/naftoli/dev/scheduler/target/scala-2.9.1/classes:/home/naftoli/.ivy2/cache/net.liftweb/lift-mapper_2.9.1/jars/lift-mapper_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/net.liftweb/lift-db_2.9.1/jars/lift-db_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/net.liftweb/lift-util_2.9.1/jars/lift-util_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/joda-time/joda-time/jars/joda-time-1.6.2.jar:/home/naftoli/.ivy2/cache/javax.mail/mail/jars/mail-1.4.4.jar:/home/naftoli/.ivy2/cache/javax.activation/activation/jars/activation-1.1.jar:/home/naftoli/.ivy2/cache/commons-codec/commons-codec/jars/commons-codec-1.4.jar:/home/naftoli/.ivy2/cache/nu.validator.htmlparser/htmlparser/jars/htmlparser-1.2.1.jar:/home/naftoli/.ivy2/cache/net.liftweb/lift-actor_2.9.1/jars/lift-actor_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/net.liftweb/lift-common_2.9.1/jars/lift-common_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.6.1.jar:/home/naftoli/.ivy2/cache/net.liftweb/lift-json_2.9.1/jars/lift-json_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/com.thoughtworks.paranamer/paranamer/jars/paranamer-2.3.jar:/home/naftoli/.ivy2/cache/org.scala-lang/scalap/jars/scalap-2.9.1.jar:/home/naftoli/.sbt/boot/scala-2.9.1/lib/scala-compiler.jar:/home/naftoli/.ivy2/cache/net.liftweb/lift-proto_2.9.1/jars/lift-proto_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/net.liftweb/lift-webkit_2.9.1/jars/lift-webkit_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/commons-fileupload/commons-fileupload/jars/commons-fileupload-1.2.2.jar:/home/naftoli/.ivy2/cache/com.h2database/h2/jars/h2-1.2.147.jar:/home/naftoli/.ivy2/cache/org.apache.derby/derby/jars/derby-10.7.1.1.jar:/home/naftoli/.ivy2/cache/log4j/log4j/bundles/log4j-1.2.16.jar:/home/naftoli/.ivy2/cache/org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-1.6.1.jar:/home/naftoli/.ivy2/cache/org.scalatest/scalatest_2.9.1/jars/scalatest_2.9.1-1.6.1.jar:/home/naftoli/.ivy2/cache/org.freeswitch.esl.client/org.freeswitch.esl.client/jars/org.freeswitch.esl.client-0.9.2.jar:/home/naftoli/.ivy2/cache/org.jboss.netty/netty/bundles/netty-3.2.1.Final.jar:/home/naftoli/.ivy2/cache/org.asteriskjava/asterisk-java/jars/asterisk-java-1.0.0.CI-SNAPSHOT.jar [debug]         /home/naftoli/dev/chavrusa/ivr/src/main/scala/chavrusa/ivr/AgiMain.scalajava.lang.NullPointerException[error] {file:/home/naftoli/dev/chavrusa/}chavrusa-ivr/compile:compile: java.lang.NullPointerException > 

On Wed, Dec 14, 2011 at 8:26 PM, Jason Zaugg <jzaugg@gmail.com> wrote:
last chavrusa-ivr/compile:compile
(Perhaps the sub-project `chavrusa-ivr` is not in the list of aggregated projects or your root project.)
-jason

On Thu, Dec 15, 2011 at 11:21 AM, Naftoli Gugenheim <naftoligug@gmail.com> wrote:
Nope!


Naftoli Gugenheim
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Re: Compiler NPE with import Ordering.Implicits._
Sorry. :(
1. Waiting for source changes... (press enter to interrupt)[info] Compiling 1 Scala source to /home/naftoli/dev/chavrusa/ivr/target/scala-2.9.1/classes... [error] {file:/home/naftoli/dev/chavrusa/}chavrusa-ivr/compile:compile: java.lang.NullPointerException[error] Total time: 1 s, completed Dec 14, 2011 8:28:08 PM2. Waiting for source changes... (press enter to interrupt)
> last chchavrusa-backend/     chavrusa-common/      chavrusa-dataentry/   chavrusa-frontend/    chavrusa-ivr/         checksums> last chavrusa-ivr/cocommands           compile            compile-inputs     compile-order      compile:           compilers          configuration      conflict-warning   connect-input      console            console-project console-quick      copy-resources> last chavrusa-ivr/com commands         compile          compile-inputs   compile-order    compile:         compilers> last chavrusa-ivr/compile:compile chavrusa-common/compile:compile[debug] [debug] Initial source changes: [debug]         removed:Set()[debug]         added: Set()[debug]         modified: Set() [debug] Removed products: Set()[debug] Modified external sources: Set()[debug] Modified binary dependencies: Set()[debug] Initial directly invalidated sources: Set()[debug]  [debug] Sources indirectly invalidated by:[debug]         product: Set()[debug]         binary dep: Set()[debug]         external source: Set()[debug] Initially invalidated: Set() {file:/home/naftoli/dev/scheduler/}default-1da6c9/compile:compile[debug] [debug] Initial source changes: [debug]         removed:Set()[debug]         added: Set() [debug]         modified: Set()[debug] Removed products: Set()[debug] Modified external sources: Set()[debug] Modified binary dependencies: Set()[debug] Initial directly invalidated sources: Set() [debug] [debug] Sources indirectly invalidated by:[debug]         product: Set()[debug]         binary dep: Set()[debug]         external source: Set()[debug] Initially invalidated: Set() chavrusa-ivr/compile:compile[debug] [debug] Initial source changes: [debug]         removed:Set()[debug]         added: Set()[debug]         modified: Set(/home/naftoli/dev/chavrusa/ivr/src/main/scala/chavrusa/ivr/AgiMain.scala) [debug] Removed products: Set()[debug] Modified external sources: Set()[debug] Modified binary dependencies: Set()[debug] Initial directly invalidated sources: Set(/home/naftoli/dev/chavrusa/ivr/src/main/scala/chavrusa/ivr/AgiMain.scala) [debug] [debug] Sources indirectly invalidated by:[debug]         product: Set()[debug]         binary dep: Set()[debug]         external source: Set()[debug] Initially invalidated: Set(/home/naftoli/dev/chavrusa/ivr/src/main/scala/chavrusa/ivr/AgiMain.scala) [info] Compiling 1 Scala source to /home/naftoli/dev/chavrusa/ivr/target/scala-2.9.1/classes...[debug] Interfacing (CompilerInterface) with Scala compiler version 2.9.1.final[debug] Calling Scala compiler with arguments  (CompilerInterface): [debug]         -deprecation[debug]         -d[debug]         /home/naftoli/dev/chavrusa/ivr/target/scala-2.9.1/classes[debug]         -bootclasspath[debug]         /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/resources.jar:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/rt.jar:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/jsse.jar:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/jce.jar:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/charsets.jar:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/modules/jdk.boot.jar:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/classes:/home/naftoli/dev/jrebel/jrebel.jar:/home/naftoli/.sbt/boot/scala-2.9.1/lib/scala-library.jar [debug]         -classpath[debug]         /home/naftoli/dev/chavrusa/ivr/target/scala-2.9.1/classes:/home/naftoli/dev/chavrusa/common/target/scala-2.9.1/classes:/home/naftoli/dev/scheduler/target/scala-2.9.1/classes:/home/naftoli/.ivy2/cache/net.liftweb/lift-mapper_2.9.1/jars/lift-mapper_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/net.liftweb/lift-db_2.9.1/jars/lift-db_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/net.liftweb/lift-util_2.9.1/jars/lift-util_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/joda-time/joda-time/jars/joda-time-1.6.2.jar:/home/naftoli/.ivy2/cache/javax.mail/mail/jars/mail-1.4.4.jar:/home/naftoli/.ivy2/cache/javax.activation/activation/jars/activation-1.1.jar:/home/naftoli/.ivy2/cache/commons-codec/commons-codec/jars/commons-codec-1.4.jar:/home/naftoli/.ivy2/cache/nu.validator.htmlparser/htmlparser/jars/htmlparser-1.2.1.jar:/home/naftoli/.ivy2/cache/net.liftweb/lift-actor_2.9.1/jars/lift-actor_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/net.liftweb/lift-common_2.9.1/jars/lift-common_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.6.1.jar:/home/naftoli/.ivy2/cache/net.liftweb/lift-json_2.9.1/jars/lift-json_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/com.thoughtworks.paranamer/paranamer/jars/paranamer-2.3.jar:/home/naftoli/.ivy2/cache/org.scala-lang/scalap/jars/scalap-2.9.1.jar:/home/naftoli/.sbt/boot/scala-2.9.1/lib/scala-compiler.jar:/home/naftoli/.ivy2/cache/net.liftweb/lift-proto_2.9.1/jars/lift-proto_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/net.liftweb/lift-webkit_2.9.1/jars/lift-webkit_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/commons-fileupload/commons-fileupload/jars/commons-fileupload-1.2.2.jar:/home/naftoli/.ivy2/cache/com.h2database/h2/jars/h2-1.2.147.jar:/home/naftoli/.ivy2/cache/org.apache.derby/derby/jars/derby-10.7.1.1.jar:/home/naftoli/.ivy2/cache/log4j/log4j/bundles/log4j-1.2.16.jar:/home/naftoli/.ivy2/cache/org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-1.6.1.jar:/home/naftoli/.ivy2/cache/org.scalatest/scalatest_2.9.1/jars/scalatest_2.9.1-1.6.1.jar:/home/naftoli/.ivy2/cache/org.freeswitch.esl.client/org.freeswitch.esl.client/jars/org.freeswitch.esl.client-0.9.2.jar:/home/naftoli/.ivy2/cache/org.jboss.netty/netty/bundles/netty-3.2.1.Final.jar:/home/naftoli/.ivy2/cache/org.asteriskjava/asterisk-java/jars/asterisk-java-1.0.0.CI-SNAPSHOT.jar [debug]         /home/naftoli/dev/chavrusa/ivr/src/main/scala/chavrusa/ivr/AgiMain.scalajava.lang.NullPointerException[error] {file:/home/naftoli/dev/chavrusa/}chavrusa-ivr/compile:compile: java.lang.NullPointerException > 

On Wed, Dec 14, 2011 at 8:26 PM, Jason Zaugg <jzaugg@gmail.com> wrote:
last chavrusa-ivr/compile:compile
(Perhaps the sub-project `chavrusa-ivr` is not in the list of aggregated projects or your root project.)
-jason

On Thu, Dec 15, 2011 at 11:21 AM, Naftoli Gugenheim <naftoligug@gmail.com> wrote:
Nope!

Naftoli Gugenheim
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Re: Compiler NPE with import Ordering.Implicits._
Bingo! Thanks for putting that together. I posted the output as a comment on your gist. Here's the beginning:
error: java.lang.NullPointerException
at scala.tools.nsc.typechecker.Contexts$ImportInfo.importedSymbol(Contexts.scala:636)
at scala.tools.nsc.typechecker.Typers$Typer.typedIdent$1(Typers.scala:3737)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4176)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4271)
at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4350)
at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4356)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4144)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4271)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$typedApply$1$1.apply(Typers.scala:3353)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$typedApply$1$1.apply(Typers.scala:3353)
at scala.tools.nsc.typechecker.Typers$Typer.silent(Typers.scala:624)
at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:3353)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4104)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4271)
at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:2100)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$24.apply(Typers.scala:2184)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$24.apply(Typers.scala:2184)


On Wed, Dec 14, 2011 at 8:33 PM, Jason Zaugg <jzaugg@gmail.com> wrote:
Just run scalac directly to take SBT out of the loop.
scalac @args.txt
Where args.txt is this file: https://gist.github.com/1479418
-jason

On Thu, Dec 15, 2011 at 11:29 AM, Naftoli Gugenheim <naftoligug@gmail.com> wrote:
Sorry. :(
1. Waiting for source changes... (press enter to interrupt)[info] Compiling 1 Scala source to /home/naftoli/dev/chavrusa/ivr/target/scala-2.9.1/classes... [error] {file:/home/naftoli/dev/chavrusa/}chavrusa-ivr/compile:compile: java.lang.NullPointerException[error] Total time: 1 s, completed Dec 14, 2011 8:28:08 PM2. Waiting for source changes... (press enter to interrupt)
> last chchavrusa-backend/     chavrusa-common/      chavrusa-dataentry/   chavrusa-frontend/    chavrusa-ivr/         checksums> last chavrusa-ivr/cocommands           compile            compile-inputs     compile-order      compile:           compilers          configuration      conflict-warning   connect-input      console            console-project console-quick      copy-resources> last chavrusa-ivr/com commands         compile          compile-inputs   compile-order    compile:         compilers> last chavrusa-ivr/compile:compile chavrusa-common/compile:compile[debug] [debug] Initial source changes: [debug]         removed:Set()[debug]         added: Set()[debug]         modified: Set() [debug] Removed products: Set()[debug] Modified external sources: Set()[debug] Modified binary dependencies: Set()[debug] Initial directly invalidated sources: Set()[debug]  [debug] Sources indirectly invalidated by:[debug]         product: Set()[debug]         binary dep: Set()[debug]         external source: Set()[debug] Initially invalidated: Set() {file:/home/naftoli/dev/scheduler/}default-1da6c9/compile:compile[debug] [debug] Initial source changes: [debug]         removed:Set()[debug]         added: Set() [debug]         modified: Set()[debug] Removed products: Set()[debug] Modified external sources: Set()[debug] Modified binary dependencies: Set()[debug] Initial directly invalidated sources: Set() [debug] [debug] Sources indirectly invalidated by:[debug]         product: Set()[debug]         binary dep: Set()[debug]         external source: Set()[debug] Initially invalidated: Set() chavrusa-ivr/compile:compile[debug] [debug] Initial source changes: [debug]         removed:Set()[debug]         added: Set()[debug]         modified: Set(/home/naftoli/dev/chavrusa/ivr/src/main/scala/chavrusa/ivr/AgiMain.scala) [debug] Removed products: Set()[debug] Modified external sources: Set()[debug] Modified binary dependencies: Set()[debug] Initial directly invalidated sources: Set(/home/naftoli/dev/chavrusa/ivr/src/main/scala/chavrusa/ivr/AgiMain.scala) [debug] [debug] Sources indirectly invalidated by:[debug]         product: Set()[debug]         binary dep: Set()[debug]         external source: Set()[debug] Initially invalidated: Set(/home/naftoli/dev/chavrusa/ivr/src/main/scala/chavrusa/ivr/AgiMain.scala) [info] Compiling 1 Scala source to /home/naftoli/dev/chavrusa/ivr/target/scala-2.9.1/classes...[debug] Interfacing (CompilerInterface) with Scala compiler version 2.9.1.final[debug] Calling Scala compiler with arguments  (CompilerInterface): [debug]         -deprecation[debug]         -d[debug]         /home/naftoli/dev/chavrusa/ivr/target/scala-2.9.1/classes[debug]         -bootclasspath[debug]         /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/resources.jar:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/rt.jar:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/jsse.jar:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/jce.jar:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/charsets.jar:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/modules/jdk.boot.jar:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/classes:/home/naftoli/dev/jrebel/jrebel.jar:/home/naftoli/.sbt/boot/scala-2.9.1/lib/scala-library.jar [debug]         -classpath[debug]         /home/naftoli/dev/chavrusa/ivr/target/scala-2.9.1/classes:/home/naftoli/dev/chavrusa/common/target/scala-2.9.1/classes:/home/naftoli/dev/scheduler/target/scala-2.9.1/classes:/home/naftoli/.ivy2/cache/net.liftweb/lift-mapper_2.9.1/jars/lift-mapper_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/net.liftweb/lift-db_2.9.1/jars/lift-db_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/net.liftweb/lift-util_2.9.1/jars/lift-util_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/joda-time/joda-time/jars/joda-time-1.6.2.jar:/home/naftoli/.ivy2/cache/javax.mail/mail/jars/mail-1.4.4.jar:/home/naftoli/.ivy2/cache/javax.activation/activation/jars/activation-1.1.jar:/home/naftoli/.ivy2/cache/commons-codec/commons-codec/jars/commons-codec-1.4.jar:/home/naftoli/.ivy2/cache/nu.validator.htmlparser/htmlparser/jars/htmlparser-1.2.1.jar:/home/naftoli/.ivy2/cache/net.liftweb/lift-actor_2.9.1/jars/lift-actor_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/net.liftweb/lift-common_2.9.1/jars/lift-common_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.6.1.jar:/home/naftoli/.ivy2/cache/net.liftweb/lift-json_2.9.1/jars/lift-json_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/com.thoughtworks.paranamer/paranamer/jars/paranamer-2.3.jar:/home/naftoli/.ivy2/cache/org.scala-lang/scalap/jars/scalap-2.9.1.jar:/home/naftoli/.sbt/boot/scala-2.9.1/lib/scala-compiler.jar:/home/naftoli/.ivy2/cache/net.liftweb/lift-proto_2.9.1/jars/lift-proto_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/net.liftweb/lift-webkit_2.9.1/jars/lift-webkit_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/commons-fileupload/commons-fileupload/jars/commons-fileupload-1.2.2.jar:/home/naftoli/.ivy2/cache/com.h2database/h2/jars/h2-1.2.147.jar:/home/naftoli/.ivy2/cache/org.apache.derby/derby/jars/derby-10.7.1.1.jar:/home/naftoli/.ivy2/cache/log4j/log4j/bundles/log4j-1.2.16.jar:/home/naftoli/.ivy2/cache/org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-1.6.1.jar:/home/naftoli/.ivy2/cache/org.scalatest/scalatest_2.9.1/jars/scalatest_2.9.1-1.6.1.jar:/home/naftoli/.ivy2/cache/org.freeswitch.esl.client/org.freeswitch.esl.client/jars/org.freeswitch.esl.client-0.9.2.jar:/home/naftoli/.ivy2/cache/org.jboss.netty/netty/bundles/netty-3.2.1.Final.jar:/home/naftoli/.ivy2/cache/org.asteriskjava/asterisk-java/jars/asterisk-java-1.0.0.CI-SNAPSHOT.jar [debug]         /home/naftoli/dev/chavrusa/ivr/src/main/scala/chavrusa/ivr/AgiMain.scalajava.lang.NullPointerException[error] {file:/home/naftoli/dev/chavrusa/}chavrusa-ivr/compile:compile: java.lang.NullPointerException > 

On Wed, Dec 14, 2011 at 8:26 PM, Jason Zaugg <jzaugg@gmail.com> wrote:
last chavrusa-ivr/compile:compile
(Perhaps the sub-project `chavrusa-ivr` is not in the list of aggregated projects or your root project.)
-jason

On Thu, Dec 15, 2011 at 11:21 AM, Naftoli Gugenheim <naftoligug@gmail.com> wrote:
Nope!



Naftoli Gugenheim
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Re: Compiler NPE with import Ordering.Implicits._
Thanks! I filed https://issues.scala-lang.org/browse/SI-5316.

On Wed, Dec 14, 2011 at 8:58 PM, Naftoli Gugenheim <naftoligug@gmail.com> wrote:
Bingo! Thanks for putting that together. I posted the output as a comment on your gist. Here's the beginning:
error: java.lang.NullPointerException
at scala.tools.nsc.typechecker.Contexts$ImportInfo.importedSymbol(Contexts.scala:636)
at scala.tools.nsc.typechecker.Typers$Typer.typedIdent$1(Typers.scala:3737)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4176)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4271)
at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4350)
at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4356)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4144)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4271)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$typedApply$1$1.apply(Typers.scala:3353)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$typedApply$1$1.apply(Typers.scala:3353)
at scala.tools.nsc.typechecker.Typers$Typer.silent(Typers.scala:624)
at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:3353)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4104)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4271)
at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:2100)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$24.apply(Typers.scala:2184)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$24.apply(Typers.scala:2184)


On Wed, Dec 14, 2011 at 8:33 PM, Jason Zaugg <jzaugg@gmail.com> wrote:
Just run scalac directly to take SBT out of the loop.
scalac @args.txt
Where args.txt is this file: https://gist.github.com/1479418
-jason

On Thu, Dec 15, 2011 at 11:29 AM, Naftoli Gugenheim <naftoligug@gmail.com> wrote:
Sorry. :(
1. Waiting for source changes... (press enter to interrupt)[info] Compiling 1 Scala source to /home/naftoli/dev/chavrusa/ivr/target/scala-2.9.1/classes... [error] {file:/home/naftoli/dev/chavrusa/}chavrusa-ivr/compile:compile: java.lang.NullPointerException[error] Total time: 1 s, completed Dec 14, 2011 8:28:08 PM2. Waiting for source changes... (press enter to interrupt)
> last chchavrusa-backend/     chavrusa-common/      chavrusa-dataentry/   chavrusa-frontend/    chavrusa-ivr/         checksums> last chavrusa-ivr/cocommands           compile            compile-inputs     compile-order      compile:           compilers          configuration      conflict-warning   connect-input      console            console-project console-quick      copy-resources> last chavrusa-ivr/com commands         compile          compile-inputs   compile-order    compile:         compilers> last chavrusa-ivr/compile:compile chavrusa-common/compile:compile[debug] [debug] Initial source changes: [debug]         removed:Set()[debug]         added: Set()[debug]         modified: Set() [debug] Removed products: Set()[debug] Modified external sources: Set()[debug] Modified binary dependencies: Set()[debug] Initial directly invalidated sources: Set()[debug]  [debug] Sources indirectly invalidated by:[debug]         product: Set()[debug]         binary dep: Set()[debug]         external source: Set()[debug] Initially invalidated: Set() {file:/home/naftoli/dev/scheduler/}default-1da6c9/compile:compile[debug] [debug] Initial source changes: [debug]         removed:Set()[debug]         added: Set() [debug]         modified: Set()[debug] Removed products: Set()[debug] Modified external sources: Set()[debug] Modified binary dependencies: Set()[debug] Initial directly invalidated sources: Set() [debug] [debug] Sources indirectly invalidated by:[debug]         product: Set()[debug]         binary dep: Set()[debug]         external source: Set()[debug] Initially invalidated: Set() chavrusa-ivr/compile:compile[debug] [debug] Initial source changes: [debug]         removed:Set()[debug]         added: Set()[debug]         modified: Set(/home/naftoli/dev/chavrusa/ivr/src/main/scala/chavrusa/ivr/AgiMain.scala) [debug] Removed products: Set()[debug] Modified external sources: Set()[debug] Modified binary dependencies: Set()[debug] Initial directly invalidated sources: Set(/home/naftoli/dev/chavrusa/ivr/src/main/scala/chavrusa/ivr/AgiMain.scala) [debug] [debug] Sources indirectly invalidated by:[debug]         product: Set()[debug]         binary dep: Set()[debug]         external source: Set()[debug] Initially invalidated: Set(/home/naftoli/dev/chavrusa/ivr/src/main/scala/chavrusa/ivr/AgiMain.scala) [info] Compiling 1 Scala source to /home/naftoli/dev/chavrusa/ivr/target/scala-2.9.1/classes...[debug] Interfacing (CompilerInterface) with Scala compiler version 2.9.1.final[debug] Calling Scala compiler with arguments  (CompilerInterface): [debug]         -deprecation[debug]         -d[debug]         /home/naftoli/dev/chavrusa/ivr/target/scala-2.9.1/classes[debug]         -bootclasspath[debug]         /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/resources.jar:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/rt.jar:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/jsse.jar:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/jce.jar:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/charsets.jar:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/modules/jdk.boot.jar:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/classes:/home/naftoli/dev/jrebel/jrebel.jar:/home/naftoli/.sbt/boot/scala-2.9.1/lib/scala-library.jar [debug]         -classpath[debug]         /home/naftoli/dev/chavrusa/ivr/target/scala-2.9.1/classes:/home/naftoli/dev/chavrusa/common/target/scala-2.9.1/classes:/home/naftoli/dev/scheduler/target/scala-2.9.1/classes:/home/naftoli/.ivy2/cache/net.liftweb/lift-mapper_2.9.1/jars/lift-mapper_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/net.liftweb/lift-db_2.9.1/jars/lift-db_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/net.liftweb/lift-util_2.9.1/jars/lift-util_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/joda-time/joda-time/jars/joda-time-1.6.2.jar:/home/naftoli/.ivy2/cache/javax.mail/mail/jars/mail-1.4.4.jar:/home/naftoli/.ivy2/cache/javax.activation/activation/jars/activation-1.1.jar:/home/naftoli/.ivy2/cache/commons-codec/commons-codec/jars/commons-codec-1.4.jar:/home/naftoli/.ivy2/cache/nu.validator.htmlparser/htmlparser/jars/htmlparser-1.2.1.jar:/home/naftoli/.ivy2/cache/net.liftweb/lift-actor_2.9.1/jars/lift-actor_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/net.liftweb/lift-common_2.9.1/jars/lift-common_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.6.1.jar:/home/naftoli/.ivy2/cache/net.liftweb/lift-json_2.9.1/jars/lift-json_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/com.thoughtworks.paranamer/paranamer/jars/paranamer-2.3.jar:/home/naftoli/.ivy2/cache/org.scala-lang/scalap/jars/scalap-2.9.1.jar:/home/naftoli/.sbt/boot/scala-2.9.1/lib/scala-compiler.jar:/home/naftoli/.ivy2/cache/net.liftweb/lift-proto_2.9.1/jars/lift-proto_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/net.liftweb/lift-webkit_2.9.1/jars/lift-webkit_2.9.1-2.4-SNAPSHOT.jar:/home/naftoli/.ivy2/cache/commons-fileupload/commons-fileupload/jars/commons-fileupload-1.2.2.jar:/home/naftoli/.ivy2/cache/com.h2database/h2/jars/h2-1.2.147.jar:/home/naftoli/.ivy2/cache/org.apache.derby/derby/jars/derby-10.7.1.1.jar:/home/naftoli/.ivy2/cache/log4j/log4j/bundles/log4j-1.2.16.jar:/home/naftoli/.ivy2/cache/org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-1.6.1.jar:/home/naftoli/.ivy2/cache/org.scalatest/scalatest_2.9.1/jars/scalatest_2.9.1-1.6.1.jar:/home/naftoli/.ivy2/cache/org.freeswitch.esl.client/org.freeswitch.esl.client/jars/org.freeswitch.esl.client-0.9.2.jar:/home/naftoli/.ivy2/cache/org.jboss.netty/netty/bundles/netty-3.2.1.Final.jar:/home/naftoli/.ivy2/cache/org.asteriskjava/asterisk-java/jars/asterisk-java-1.0.0.CI-SNAPSHOT.jar [debug]         /home/naftoli/dev/chavrusa/ivr/src/main/scala/chavrusa/ivr/AgiMain.scalajava.lang.NullPointerException[error] {file:/home/naftoli/dev/chavrusa/}chavrusa-ivr/compile:compile: java.lang.NullPointerException > 

On Wed, Dec 14, 2011 at 8:26 PM, Jason Zaugg <jzaugg@gmail.com> wrote:
last chavrusa-ivr/compile:compile
(Perhaps the sub-project `chavrusa-ivr` is not in the list of aggregated projects or your root project.)
-jason

On Thu, Dec 15, 2011 at 11:21 AM, Naftoli Gugenheim <naftoligug@gmail.com> wrote:
Nope!




Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland