Push to maven


#1

It's been 3 weeks since the last push to Maven, Could we get a new version please? (unless there are good reasons not to, such as annoying bugs that are being worked on)


#2

Last push was made 3 days ago: http://search.maven.org/#artifactdetails%7Corg.jetbrains.kotlin%7Ckotlin-compiler%7C0.6.1315%7Cjar


#3

Oups, I missed it. Sorry. ( I was looking here) And thank you.


#4

Looks like http://mvnrepository.com/ updates too infrequently, search.maven.org is a lot more reliable


#5

I can't build my project with this version.

When I use Maven to build, I get this error:

[INFO] Using kotlin annotations from m:.m2repositoryorgjetbrainskotlinkotlin-jdk-annotations0.6.1315kotlin-jdk-annotations-0.6.1315.jar
[ERROR] java.lang.NullPointerException
  at org.jetbrains.jet.lang.resolve.calls.CandidateResolver.completeTypeInferenceDependentOnExpectedTypeForCall(CandidateResolver.java:230)
  at org.jetbrains.jet.lang.resolve.calls.CandidateResolver.completeInferenceForArgument(CandidateResolver.java:371)
  at org.jetbrains.jet.lang.resolve.calls.CandidateResolver.completeNestedCallsInference(CandidateResolver.java:334)
  at org.jetbrains.jet.lang.resolve.calls.CallResolver.completeTypeInferenceDependentOnExpectedType(CallResolver.java:369)
  at org.jetbrains.jet.lang.resolve.calls.CallResolver.doResolveCallOrGetCachedResults(CallResolver.java:318)
  at org.jetbrains.jet.lang.resolve.calls.CallResolver.resolveFunctionCall(CallResolver.java:263)
  at org.jetbrains.jet.lang.resolve.calls.CallExpressionResolver.getResolvedCallForFunction(CallExpressionResolver.java:191)
  at org.jetbrains.jet.lang.resolve.calls.CallExpressionResolver.getCallExpressionTypeInfoWithoutFinalTypeCheck(CallExpressionResolver.java:302)
  at org.jetbrains.jet.lang.resolve.calls.CallExpressionResolver.getCallExpressionTypeInfo(CallExpressionResolver.java:284)
  at org.jetbrains.jet.lang.types.expressions.BasicExpressionTypingVisitor.visitCallExpression(BasicExpressionTypingVisitor.java:599)
  at org.jetbrains.jet.lang.types.expressions.BasicExpressionTypingVisitor.visitCallExpression(BasicExpressionTypingVisitor.java:84)
  at org.jetbrains.jet.lang.psi.JetCallExpression.accept(JetCallExpression.java:42)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingVisitorDispatcher.visitJetElement(ExpressionTypingVisitorDispatcher.java:219)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingVisitorDispatcher.visitJetElement(ExpressionTypingVisitorDispatcher.java:34)
  at org.jetbrains.jet.lang.psi.JetVisitor.visitExpression(JetVisitor.java:154)
  at org.jetbrains.jet.lang.psi.JetVisitor.visitCallExpression(JetVisitor.java:246)
  at org.jetbrains.jet.lang.psi.JetCallExpression.accept(JetCallExpression.java:42)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingVisitorDispatcher.getTypeInfo(ExpressionTypingVisitorDispatcher.java:114)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingVisitorDispatcher.getTypeInfo(ExpressionTypingVisitorDispatcher.java:84)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingVisitorForStatements.visitExpression(ExpressionTypingVisitorForStatements.java:335)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingVisitorForStatements.visitExpression(ExpressionTypingVisitorForStatements.java:51)
  at org.jetbrains.jet.lang.psi.JetVisitor.visitCallExpression(JetVisitor.java:246)
  at org.jetbrains.jet.lang.psi.JetCallExpression.accept(JetCallExpression.java:42)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingVisitorDispatcher.getTypeInfo(ExpressionTypingVisitorDispatcher.java:114)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingVisitorDispatcher.getTypeInfo(ExpressionTypingVisitorDispatcher.java:92)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingServices.getTypeOfLastExpressionInBlock(ExpressionTypingServices.java:330)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingServices.getBlockReturnedTypeWithWritableScope(ExpressionTypingServices.java:295)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingServices.getBlockReturnedType(ExpressionTypingServices.java:234)
  at org.jetbrains.jet.lang.types.expressions.BasicExpressionTypingVisitor.visitBlockExpression(BasicExpressionTypingVisitor.java:445)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingVisitorForStatements.visitBlockExpression(ExpressionTypingVisitorForStatements.java:378)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingVisitorForStatements.visitBlockExpression(ExpressionTypingVisitorForStatements.java:51)
  at org.jetbrains.jet.lang.psi.JetBlockExpression.accept(JetBlockExpression.java:47)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingVisitorDispatcher.getTypeInfo(ExpressionTypingVisitorDispatcher.java:114)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingVisitorDispatcher.getTypeInfo(ExpressionTypingVisitorDispatcher.java:94)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingServices.checkFunctionReturnType(ExpressionTypingServices.java:206)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingServices.checkFunctionReturnType(ExpressionTypingServices.java:190)
  at org.jetbrains.jet.lang.resolve.BodyResolver.resolveFunctionBody(BodyResolver.java:606)
  at org.jetbrains.jet.lang.resolve.BodyResolver.resolveFunctionBodies(BodyResolver.java:590)
  at org.jetbrains.jet.lang.resolve.BodyResolver.resolveBehaviorDeclarationBodies(BodyResolver.java:145)
  at org.jetbrains.jet.lang.resolve.BodyResolver.resolveBodies(BodyResolver.java:155)
  at org.jetbrains.jet.lang.resolve.TopDownAnalyzer.doProcess(TopDownAnalyzer.java:134)
  at org.jetbrains.jet.lang.resolve.TopDownAnalyzer.analyzeFiles(TopDownAnalyzer.java:262)
  at org.jetbrains.jet.lang.resolve.java.AnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration(AnalyzerFacadeForJVM.java:204)
  at org.jetbrains.jet.cli.jvm.compiler.KotlinToJVMBytecodeCompiler$2.invoke(KotlinToJVMBytecodeCompiler.java:273)
  at org.jetbrains.jet.cli.jvm.compiler.KotlinToJVMBytecodeCompiler$2.invoke(KotlinToJVMBytecodeCompiler.java:268)
  at org.jetbrains.jet.cli.common.messages.AnalyzerWithCompilerReport.analyzeAndReport(AnalyzerWithCompilerReport.java:225)
  at org.jetbrains.jet.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.analyze(KotlinToJVMBytecodeCompiler.java:267)
  at org.jetbrains.jet.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.analyzeAndGenerate(KotlinToJVMBytecodeCompiler.java:252)
  at org.jetbrains.jet.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileBunchOfSources(KotlinToJVMBytecodeCompiler.java:187)
  at org.jetbrains.jet.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.java:142)
  at org.jetbrains.jet.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.java:48)
  at org.jetbrains.jet.cli.common.CLICompiler.exec(CLICompiler.java:147)
  at org.jetbrains.kotlin.maven.KotlinCompileMojoBase.execute(KotlinCompileMojoBase.java:201)
  at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
  at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
  at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
  at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
  at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
  at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
  at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
  at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
  at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
  at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
  at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
  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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
  at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
  at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
  at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
  at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
  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 com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)

And when I use IntelliJ Idea, I get this:

Kotlin: [Internal Error] java.lang.AssertionError: ConstraintSystem is erased after resolution completion.
  at org.jetbrains.jet.lang.resolve.calls.model.ResolvedCallImpl.assertNotCompleted(ResolvedCallImpl.java:316)
  at org.jetbrains.jet.lang.resolve.calls.model.ResolvedCallImpl.getConstraintSystem(ResolvedCallImpl.java:189)
  at org.jetbrains.jet.lang.resolve.calls.CandidateResolver.completeTypeInferenceDependentOnExpectedTypeForCall(CandidateResolver.java:226)
  at org.jetbrains.jet.lang.resolve.calls.CandidateResolver.completeInferenceForArgument(CandidateResolver.java:371)
  at org.jetbrains.jet.lang.resolve.calls.CandidateResolver.completeNestedCallsInference(CandidateResolver.java:334)
  at org.jetbrains.jet.lang.resolve.calls.CallResolver.completeTypeInferenceDependentOnExpectedType(CallResolver.java:369)
  at org.jetbrains.jet.lang.resolve.calls.CallResolver.doResolveCallOrGetCachedResults(CallResolver.java:318)
  at org.jetbrains.jet.lang.resolve.calls.CallResolver.resolveFunctionCall(CallResolver.java:263)
  at org.jetbrains.jet.lang.resolve.calls.CallExpressionResolver.getResolvedCallForFunction(CallExpressionResolver.java:191)
  at org.jetbrains.jet.lang.resolve.calls.CallExpressionResolver.getCallExpressionTypeInfoWithoutFinalTypeCheck(CallExpressionResolver.java:302)
  at org.jetbrains.jet.lang.resolve.calls.CallExpressionResolver.getCallExpressionTypeInfo(CallExpressionResolver.java:284)
  at org.jetbrains.jet.lang.types.expressions.BasicExpressionTypingVisitor.visitCallExpression(BasicExpressionTypingVisitor.java:599)
  at org.jetbrains.jet.lang.types.expressions.BasicExpressionTypingVisitor.visitCallExpression(BasicExpressionTypingVisitor.java:84)
  at org.jetbrains.jet.lang.psi.JetCallExpression.accept(JetCallExpression.java:42)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingVisitorDispatcher.visitJetElement(ExpressionTypingVisitorDispatcher.java:219)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingVisitorDispatcher.visitJetElement(ExpressionTypingVisitorDispatcher.java:34)
  at org.jetbrains.jet.lang.psi.JetVisitor.visitExpression(JetVisitor.java:154)
  at org.jetbrains.jet.lang.psi.JetVisitor.visitCallExpression(JetVisitor.java:246)
  at org.jetbrains.jet.lang.psi.JetCallExpression.accept(JetCallExpression.java:42)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingVisitorDispatcher.getTypeInfo(ExpressionTypingVisitorDispatcher.java:114)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingVisitorDispatcher.getTypeInfo(ExpressionTypingVisitorDispatcher.java:84)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingVisitorForStatements.visitExpression(ExpressionTypingVisitorForStatements.java:335)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingVisitorForStatements.visitExpression(ExpressionTypingVisitorForStatements.java:51)
  at org.jetbrains.jet.lang.psi.JetVisitor.visitCallExpression(JetVisitor.java:246)
  at org.jetbrains.jet.lang.psi.JetCallExpression.accept(JetCallExpression.java:42)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingVisitorDispatcher.getTypeInfo(ExpressionTypingVisitorDispatcher.java:114)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingVisitorDispatcher.getTypeInfo(ExpressionTypingVisitorDispatcher.java:92)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingServices.getTypeOfLastExpressionInBlock(ExpressionTypingServices.java:330)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingServices.getBlockReturnedTypeWithWritableScope(ExpressionTypingServices.java:295)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingServices.getBlockReturnedType(ExpressionTypingServices.java:234)
  at org.jetbrains.jet.lang.types.expressions.BasicExpressionTypingVisitor.visitBlockExpression(BasicExpressionTypingVisitor.java:445)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingVisitorForStatements.visitBlockExpression(ExpressionTypingVisitorForStatements.java:378)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingVisitorForStatements.visitBlockExpression(ExpressionTypingVisitorForStatements.java:51)
  at org.jetbrains.jet.lang.psi.JetBlockExpression.accept(JetBlockExpression.java:47)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingVisitorDispatcher.getTypeInfo(ExpressionTypingVisitorDispatcher.java:114)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingVisitorDispatcher.getTypeInfo(ExpressionTypingVisitorDispatcher.java:94)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingServices.checkFunctionReturnType(ExpressionTypingServices.java:206)
  at org.jetbrains.jet.lang.types.expressions.ExpressionTypingServices.checkFunctionReturnType(ExpressionTypingServices.java:190)
  at org.jetbrains.jet.lang.resolve.BodyResolver.resolveFunctionBody(BodyResolver.java:606)
  at org.jetbrains.jet.lang.resolve.BodyResolver.resolveFunctionBodies(BodyResolver.java:590)
  at org.jetbrains.jet.lang.resolve.BodyResolver.resolveBehaviorDeclarationBodies(BodyResolver.java:145)
  at org.jetbrains.jet.lang.resolve.BodyResolver.resolveBodies(BodyResolver.java:155)
  at org.jetbrains.jet.lang.resolve.TopDownAnalyzer.doProcess(TopDownAnalyzer.java:134)
  at org.jetbrains.jet.lang.resolve.TopDownAnalyzer.analyzeFiles(TopDownAnalyzer.java:262)
  at org.jetbrains.jet.lang.resolve.java.AnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration(AnalyzerFacadeForJVM.java:204)
  at org.jetbrains.jet.cli.jvm.compiler.KotlinToJVMBytecodeCompiler$2.invoke(KotlinToJVMBytecodeCompiler.java:273)
  at org.jetbrains.jet.cli.jvm.compiler.KotlinToJVMBytecodeCompiler$2.invoke(KotlinToJVMBytecodeCompiler.java:268)
  at org.jetbrains.jet.cli.common.messages.AnalyzerWithCompilerReport.analyzeAndReport(AnalyzerWithCompilerReport.java:225)
  at org.jetbrains.jet.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.analyze(KotlinToJVMBytecodeCompiler.java:267)
  at org.jetbrains.jet.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.analyzeAndGenerate(KotlinToJVMBytecodeCompiler.java:252)
  at org.jetbrains.jet.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModule(KotlinToJVMBytecodeCompiler.java:102)
  at org.jetbrains.jet.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules(KotlinToJVMBytecodeCompiler.java:138)
  at org.jetbrains.jet.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.java:131)
  at org.jetbrains.jet.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.java:48)
  at org.jetbrains.jet.cli.common.CLICompiler.exec(CLICompiler.java:147)
  at org.jetbrains.jet.cli.common.CLICompiler.exec(CLICompiler.java:133)
  at org.jetbrains.jet.cli.common.CLICompiler.exec(CLICompiler.java:57)
  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.jetbrains.jet.compiler.runner.CompilerRunnerUtil.invokeExecMethod(CompilerRunnerUtil.java:121)
  at org.jetbrains.jet.compiler.runner.KotlinCompilerRunner.execCompiler(KotlinCompilerRunner.java:111)
  at org.jetbrains.jet.compiler.runner.KotlinCompilerRunner.access$000(KotlinCompilerRunner.java:39)
  at org.jetbrains.jet.compiler.runner.KotlinCompilerRunner$1.fun(KotlinCompilerRunner.java:94)
  at org.jetbrains.jet.compiler.runner.KotlinCompilerRunner$1.fun(KotlinCompilerRunner.java:91)
  at org.jetbrains.jet.compiler.runner.CompilerRunnerUtil.outputCompilerMessagesAndHandleExitCode(CompilerRunnerUtil.java:130)
  at org.jetbrains.jet.compiler.runner.KotlinCompilerRunner.runCompiler(KotlinCompilerRunner.java:91)
  at org.jetbrains.jet.compiler.runner.KotlinCompilerRunner.runK2JvmCompiler(KotlinCompilerRunner.java:57)
  at org.jetbrains.jet.jps.build.KotlinBuilder.build(KotlinBuilder.java:167)
  at org.jetbrains.jps.incremental.IncProjectBuilder.runModuleLevelBuilders(IncProjectBuilder.java:1087)
  at org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:798)
  at org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:846)
  at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:761)
  at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:582)
  at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:343)
  at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:183)
  at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:129)
  at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:224)
  at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:113)
  at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler$1.run(BuildMain.java:133)
  at org.jetbrains.jps.service.impl.SharedThreadPoolImpl$1.run(SharedThreadPoolImpl.java:41)
  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
  at java.util.concurrent.FutureTask.run(FutureTask.java:138)
  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
  at java.lang.Thread.run(Thread.java:662)

I am not sure if it’s related, but the Event Log shows this error as well (I am used to see tons of errors in the event log, but this usually doesn’t affect the build):

Can’t find super function for JavaMethodImpl: PsiMethod:getLoaderManager defined in JavaClassImpl: PsiClass:FragmentActivity


#6

Could you provide any steps to reproduce, e.g. sources it crashes on? Thanks


#7

Yes, I tried another one of my projects and that one works. I am now trying to isolate the problem.


#8

Your help is very much appreciated


#9

The smallest bit of code I can come up with to reproduce the problem is this:

import android.util.Pair

public abstract class TestBug() {

  public fun m3(position: Int) {
  position(m1().second!!)
  }

  private fun m1(): Pair<Int, Int> {
  return Pair.create(0, 0)!!
  }

  private fun position(p: Int) {}

}

What is weird is that the position arg of m3() is not used, but if I take it out, then the problem goes away.


#10

The problem seems to be caused by a parameter name clashing with another function's name. So you have a workaround for your project: simply rename the parameter. We'll work on this problem. Thanks a lot for your help!


#11

Created an issue: http://youtrack.jetbrains.com/issue/KT-4204 Please vote to receive notifications


#12

I can confirm that the workaround works. Thank you.