New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullPointerException when passing -Xshow-phases to scalac #621
Comments
I am going to transfer this to Zinc. |
From #545, it looks like the direct cause of the issue is that in https://github.com/sbt/zinc/blob/v1.2.4/internal/compiler-bridge/src/main/scala/xsbt/CallbackGlobal.scala#L119-L126 override lazy val phaseDescriptors = {
phasesSet += sbtAnalyzer
if (callback.enabled()) {
phasesSet += sbtDependency
phasesSet += apiExtractor
}
this.computePhaseDescriptors
}
private[this] var callback0: AnalysisCallback = null A likely fix is to fix
gets called. |
This still happens in sbt 1.2.8 and 1.3.0 |
Still happens in sbt 1.3.8 |
still an issue in 1.4.0 |
can see this in |
Current for Zinc |
I'm not sure if this should be reported against sbt or Zinc or Scala itself or what.
steps
scalacOptions ++= Seq("-Xshow-phases")
inbuild.sbt
. It also crashes if you doset scalacOptions += "-Xshow-phases"
at the sbt prompt.sbt compile
problem
NullPointerException
injava.lang.Thread.run(Thread.java:748)
. Thecompile
command fails, returning you to the sbt shell. This seems very similar to #3623, but I'm using SBT 1.1.2 where it should be fixed. Log:expectation
It prints a list of the compilation phases.
notes
This happens every time, it's not intermittent like sbt/sbt#3623.
sbt version: 1.1.2
scala version: 2.12.5
The text was updated successfully, but these errors were encountered: