kotless icon indicating copy to clipboard operation
kotless copied to clipboard

Can't run local

Open viktor-idenfy opened this issue 4 years ago • 3 comments

As soon as I execute a gralde local command, I keep getting this error:

Execution failed for task ':local'.

org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration$default(Lorg/jetbrains/kotlin/com/intellij/openapi/project/Project;Ljava/util/Collection;Lorg/jetbrains/kotlin/resolve/BindingTrace;Lorg/jetbrains/kotlin/config/CompilerConfiguration;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function2;Lorg/jetbrains/kotlin/com/intellij/psi/search/GlobalSearchScope;ILjava/lang/Object;)Lorg/jetbrains/kotlin/analyzer/AnalysisResult;

  • Try:

viktor-idenfy avatar Apr 29 '21 11:04 viktor-idenfy

Ok, issue is with version. Using kotlin 1.3.72 it worked well. Now I keep getting this error: Could not find or load main class com.example.ApplicationKt

viktor-idenfy avatar Apr 29 '21 11:04 viktor-idenfy

I can reproduce this bug

  • Checkout this commit https://github.com/jmfayard/hello-serverless/commit/1aef399d3d0b217ff4abd424f99ff356dc211bf7
  • Run ./gradlew local
  • Error TopDownAnalyzerFacadeForJVM https://gradle.com/s/msgz3u5dgnicq
  • Revert to Kotlin 1.3 and it works

Kotless has indeed problems with Kotlin 1.5

jmfayard avatar May 23 '21 06:05 jmfayard

I know this is dead, but i'm experiencing the same issues.

UnexDev avatar Oct 29 '23 21:10 UnexDev