argh today is not my day! I'm trying to create a G...
# announcements
e
argh today is not my day! I'm trying to create a Gradle plugin in Kotlin, and some code (which works online in "Try Kotlin") fails to compile with this error:
Copy code
Information:Kotlin: Kotlin JPS plugin version 1.0.0-beta-1103-IJ143-27
Information:Kotlin: Using kotlin-home = /Applications/IntelliJ IDEA 15 CE.app/Contents/plugins/Kotlin/kotlinc
Information:Kotlin: Kotlin Compiler version 1.0.0-beta-1103
Information:29/11/15 23:40 - Compilation completed with 1 error and 0 warnings in 3s 776ms
Error:Kotlin: [Internal Error] java.lang.UnsupportedOperationException: Don't render receiver parameters
	at org.jetbrains.kotlin.renderer.DescriptorRendererImpl$RenderDeclarationDescriptorVisitor.visitReceiverParameterDescriptor(DescriptorRendererImpl.kt:903)
	at org.jetbrains.kotlin.renderer.DescriptorRendererImpl$RenderDeclarationDescriptorVisitor.visitReceiverParameterDescriptor(DescriptorRendererImpl.kt:862)
	at org.jetbrains.kotlin.descriptors.impl.AbstractReceiverParameterDescriptor.accept(AbstractReceiverParameterDescriptor.java:52)
	at org.jetbrains.kotlin.renderer.DescriptorRendererImpl.render(DescriptorRendererImpl.kt:483)
	at org.jetbrains.kotlin.renderer.DescriptorRendererImpl.render(DescriptorRendererImpl.kt:40)
	at org.jetbrains.kotlin.diagnostics.rendering.DiagnosticRendererUtilKt.renderParameter(DiagnosticRendererUtil.kt:23)
	at org.jetbrains.kotlin.diagnostics.rendering.DiagnosticWithParameters3Renderer.renderParameters(DiagnosticWithParameters3Renderer.java:42)
	at org.jetbrains.kotlin.diagnostics.rendering.DiagnosticWithParameters3Renderer.renderParameters(DiagnosticWithParameters3Renderer.java:24)
	at org.jetbrains.kotlin.diagnostics.rendering.AbstractDiagnosticWithParametersRenderer.render(AbstractDiagnosticWithParametersRenderer.java:34)
	at org.jetbrains.kotlin.diagnostics.rendering.DefaultErrorMessages.render(DefaultErrorMessages.java:79)
	at org.jetbrains.kotlin.cli.common.messages.AnalyzerWithCompilerReport.reportDiagnostic(AnalyzerWithCompilerReport.java:89)
	at org.jetbrains.kotlin.cli.common.messages.AnalyzerWithCompilerReport.reportDiagnostics(AnalyzerWithCompilerReport.java:181)
	at org.jetbrains.kotlin.cli.common.messages.AnalyzerWithCompilerReport.reportDiagnostics(AnalyzerWithCompilerReport.java:191)
	at org.jetbrains.kotlin.cli.common.messages.AnalyzerWithCompilerReport.analyzeAndReport(AnalyzerWithCompilerReport.java:269)
	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.analyze(KotlinToJVMBytecodeCompiler.java:315)
	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules(KotlinToJVMBytecodeCompiler.java:133)
	at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:173)
	at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:53)
	at org.jetbrains.kotlin.cli.common.CLICompiler.exec(CLICompiler.java:174)
	at org.jetbrains.kotlin.cli.common.CLICompiler.exec(CLICompiler.java:135)
	at org.jetbrains.kotlin.cli.common.CLICompiler.execAndOutputXml(CLICompiler.java:63)
	at org.jetbrains.kotlin.rmi.service.CompileServiceImpl$remoteIncrementalCompile$1.invoke(CompileServiceImpl.kt:98)
	at org.jetbrains.kotlin.rmi.service.CompileServiceImpl$remoteIncrementalCompile$1.invoke(CompileServiceImpl.kt:44)
	at org.jetbrains.kotlin.rmi.service.CompileServiceImpl$doCompile$1$1.invoke(CompileServiceImpl.kt:147)
	...
I'm using the latest version
1.0.0-beta-2423
but somehow the compiler is older? I've pushed it to Github here: https://github.com/Takhion/test-plugin/blob/master/src/main/kotlin/me/eugeniomarletti/TestPlugin.kt