ScalaMethodVerifierProvider throws NPE when no Active Editor exist
Prevents proper compilation of the project
java.lang.NullPointerException
at scala.tools.eclipse.jcompiler.ScalaMethodVerifierProvider$$anonfun$scala$tools$eclipse$jcompiler$ScalaMethodVerifierProvider$$getActiveScalaProject$1.apply(ScalaMethodVerifierProvider.scala:51)
at scala.tools.eclipse.jcompiler.ScalaMethodVerifierProvider$$anonfun$scala$tools$eclipse$jcompiler$ScalaMethodVerifierProvider$$getActiveScalaProject$1.apply(ScalaMethodVerifierProvider.scala:49)
at scala.Option.flatMap(Option.scala:146)
at scala.tools.eclipse.jcompiler.ScalaMethodVerifierProvider.scala$tools$eclipse$jcompiler$ScalaMethodVerifierProvider$$getActiveScalaProject(ScalaMethodVerifierProvider.scala:49)
at scala.tools.eclipse.jcompiler.ScalaMethodVerifierProvider$$anonfun$isConcreteTraitMethod$1.apply$mcZ$sp(ScalaMethodVerifierProvider.scala:58)
at scala.tools.eclipse.jcompiler.ScalaMethodVerifierProvider$$anonfun$isConcreteTraitMethod$1.apply(ScalaMethodVerifierProvider.scala:58)
at scala.tools.eclipse.jcompiler.ScalaMethodVerifierProvider$$anonfun$isConcreteTraitMethod$1.apply(ScalaMethodVerifierProvider.scala:58)
at scala.tools.eclipse.util.Utils$.tryExecute(Utils.scala:21)
at scala.tools.eclipse.jcompiler.ScalaMethodVerifierProvider.isConcreteTraitMethod(ScalaMethodVerifierProvider.scala:64)
at scala.tools.eclipse.contribution.weaving.jdt.jcompiler.MethodVerifierAspect.ajc$around$scala_tools_eclipse_contribution_weaving_jdt_jcompiler_MethodVerifierAspect$2$ba68f2b0(MethodVerifierAspect.aj:77)
at org.eclipse.jdt.internal.compiler.lookup.MethodVerifier.checkInheritedMethods(MethodVerifier.java:363)
at org.eclipse.jdt.internal.compiler.lookup.MethodVerifier15.checkInheritedMethods_aroundBody0(MethodVerifier15.java:335)
at org.eclipse.jdt.internal.compiler.lookup.MethodVerifier15$AjcClosure1.run(MethodVerifier15.java:1)
at scala.tools.eclipse.contribution.weaving.jdt.jcompiler.MethodVerifierAspect.ajc$around$scala_tools_eclipse_contribution_weaving_jdt_jcompiler_MethodVerifierAspect$2$ba68f2b0proceed(MethodVerifierAspect.aj:1)
at scala.tools.eclipse.contribution.weaving.jdt.jcompiler.MethodVerifierAspect.ajc$around$scala_tools_eclipse_contribution_weaving_jdt_jcompiler_MethodVerifierAspect$2$ba68f2b0(MethodVerifierAspect.aj:84)
at org.eclipse.jdt.internal.compiler.lookup.MethodVerifier15.checkInheritedMethods(MethodVerifier15.java:323)
at org.eclipse.jdt.internal.compiler.lookup.MethodVerifier15.checkMethods(MethodVerifier15.java:572)
at org.eclipse.jdt.internal.compiler.lookup.MethodVerifier.verify(MethodVerifier.java:950)
at org.eclipse.jdt.internal.compiler.lookup.MethodVerifier15.verify(MethodVerifier15.java:955)
at org.eclipse.jdt.internal.compiler.lookup.MethodVerifier.verify(MethodVerifier.java:959)
at org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.verifyMethods(SourceTypeBinding.java:1762)
at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.verifyMethods(CompilationUnitScope.java:841)
at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:760)
at org.eclipse.jdt.internal.compiler.ProcessTaskManager.run(ProcessTaskManager.java:137)
at java.lang.Thread.run(Thread.java:662)
java.lang.NullPointerException
at scala.tools.eclipse.jcompiler.ScalaMethodVerifierProvider$$anonfun$scala$tools$eclipse$jcompiler$ScalaMethodVerifierProvider$$getActiveScalaProject$1.apply(ScalaMethodVerifierProvider.scala:51)
at scala.tools.eclipse.jcompiler.ScalaMethodVerifierProvider$$anonfun$scala$tools$eclipse$jcompiler$ScalaMethodVerifierProvider$$getActiveScalaProject$1.apply(ScalaMethodVerifierProvider.scala:49)
at scala.Option.flatMap(Option.scala:146)
at scala.tools.eclipse.jcompiler.ScalaMethodVerifierProvider.scala$tools$eclipse$jcompiler$ScalaMethodVerifierProvider$$getActiveScalaProject(ScalaMethodVerifierProvider.scala:49)
at scala.tools.eclipse.jcompiler.ScalaMethodVerifierProvider$$anonfun$isConcreteTraitMethod$1.apply$mcZ$sp(ScalaMethodVerifierProvider.scala:58)
at scala.tools.eclipse.jcompiler.ScalaMethodVerifierProvider$$anonfun$isConcreteTraitMethod$1.apply(ScalaMethodVerifierProvider.scala:58)
at scala.tools.eclipse.jcompiler.ScalaMethodVerifierProvider$$anonfun$isConcreteTraitMethod$1.apply(ScalaMethodVerifierProvider.scala:58)
at scala.tools.eclipse.util.Utils$.tryExecute(Utils.scala:21)
at scala.tools.eclipse.jcompiler.ScalaMethodVerifierProvider.isConcreteTraitMethod(ScalaMethodVerifierProvider.scala:64)
at scala.tools.eclipse.contribution.weaving.jdt.jcompiler.MethodVerifierAspect.ajc$around$scala_tools_eclipse_contribution_weaving_jdt_jcompiler_MethodVerifierAspect$2$ba68f2b0(MethodVerifierAspect.aj:77)
at org.eclipse.jdt.internal.compiler.lookup.MethodVerifier.checkInheritedMethods(MethodVerifier.java:363)
at org.eclipse.jdt.internal.compiler.lookup.MethodVerifier15.checkInheritedMethods_aroundBody0(MethodVerifier15.java:335)
at org.eclipse.jdt.internal.compiler.lookup.MethodVerifier15$AjcClosure1.run(MethodVerifier15.java:1)
at scala.tools.eclipse.contribution.weaving.jdt.jcompiler.MethodVerifierAspect.ajc$around$scala_tools_eclipse_contribution_weaving_jdt_jcompiler_MethodVerifierAspect$2$ba68f2b0proceed(MethodVerifierAspect.aj:1)
at scala.tools.eclipse.contribution.weaving.jdt.jcompiler.MethodVerifierAspect.ajc$around$scala_tools_eclipse_contribution_weaving_jdt_jcompiler_MethodVerifierAspect$2$ba68f2b0(MethodVerifierAspect.aj:84)
at org.eclipse.jdt.internal.compiler.lookup.MethodVerifier15.checkInheritedMethods(MethodVerifier15.java:323)
at org.eclipse.jdt.internal.compiler.lookup.MethodVerifier15.checkMethods(MethodVerifier15.java:572)
at org.eclipse.jdt.internal.compiler.lookup.MethodVerifier.verify(MethodVerifier.java:950)
at org.eclipse.jdt.internal.compiler.lookup.MethodVerifier15.verify(MethodVerifier15.java:955)
at org.eclipse.jdt.internal.compiler.lookup.MethodVerifier.verify(MethodVerifier.java:959)
at org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.verifyMethods(SourceTypeBinding.java:1762)
at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.verifyMethods(CompilationUnitScope.java:841)
at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:760)
at org.eclipse.jdt.internal.compiler.ProcessTaskManager.run(ProcessTaskManager.java:137)
at java.lang.Thread.run(Thread.java:662)
Leave a comment
on 2011-11-23 18:29 *
By Mirco Dotta
This should be fix in the nighlty of the forthcoming 2.0.0 RC2. Can you please use the following Eclipse update-site and see if the problem goes away: http://download.scala-ide.org/nightly-update-2-0-0-2.9.2-SNAPSHOT/
Your feedback would be very valuable.
Your feedback would be very valuable.
Should be fixed in RC2.
on 2011-11-27 13:11 *
By Mirco Dotta
Summary changed from NPE at compile time to ScalaMethodVerifierProvider throws NPE
on 2011-11-27 13:12 *
By Mirco Dotta
Summary changed from ScalaMethodVerifierProvider throws NPE to ScalaMethodVerifierProvider throws NPE when no Active Editor is found
on 2011-11-27 13:12 *
By Mirco Dotta
Summary changed from ScalaMethodVerifierProvider throws NPE when no Active Editor is found to ScalaMethodVerifierProvider throws NPE when no Active Editor exist
I'm invalidating this ticket as it has been fixed in RC2. Please, re-open if you see it again.