I have just converted my Java project to Kotlin and would like to use the Kotlin Extension for Android. However whenever I install the plugin in IDEA, my code is shown in the editor with a very basic colour scheme - just keywords highlighted in blue and strings as green. All my carefully crafted Kotlin colour settings are ignored. Reverting to the default scheme makes no difference. The problem only affects Kotlin files - other sources are correctly displayed.
I have the very latest version of IDEA and plugins (as of 25th November) and am running Ubuntu Wily
Is anyone else experiencing the problem? or is it just me and my settings?
OK the problem seems to be more complicted than I thought - colour only goes on certain sources and may be nothing to do with the plugin. I will report back when I know more
Definately a problem with Kotlin Extentions. The plugin is also crashing so have sent a report to JetBrains. Probably a stability issue as this is still beta
I am getting the following error when I rebuild my project with android extensions enabled. Everything works fine when the plugin is disabled.
Anyone got any ideas?
Error:Kotlin: [Internal Error] java.lang.NoSuchMethodError: kotlin.ArraysKt.joinToString$default([Ljava/lang/Object;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;ILjava/lang/CharSequence;Lkotlin/jvm/functions/Function1;I)Ljava/lang/String;
at org.jetbrains.kotlin.android.synthetic.res.AndroidSyntheticFile$Companion.create(SyntheticFileGenerator.kt:35)
at org.jetbrains.kotlin.android.synthetic.res.SyntheticFileGenerator.<clinit>(SyntheticFileGenerator.kt:225)
at org.jetbrains.kotlin.android.synthetic.AndroidComponentRegistrar.registerProjectComponents(AndroidComponentRegistrar.kt:93)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment.<init>(KotlinCoreEnvironment.kt:142)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment.<init>(KotlinCoreEnvironment.kt:89)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment$Companion.createForProduction(KotlinCoreEnvironment.kt:253)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.createCoreEnvironment(K2JVMCompiler.kt:211)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:169)
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)
at org.jetbrains.kotlin.rmi.service.CompileServiceImpl$doCompile$1$1.invoke(CompileServiceImpl.kt:44)
at org.jetbrains.kotlin.rmi.DummyProfiler.withMeasure(PerfUtils.kt:137)
at org.jetbrains.kotlin.rmi.service.CompileServiceImpl.checkedCompile(CompileServiceImpl.kt:178)
at org.jetbrains.kotlin.rmi.service.CompileServiceImpl$doCompile$1.invoke(CompileServiceImpl.kt:146)
at org.jetbrains.kotlin.rmi.service.CompileServiceImpl$doCompile$1.invoke(CompileServiceImpl.kt:44)
at org.jetbrains.kotlin.rmi.service.CompileServiceImpl.ifAlive(CompileServiceImpl.kt:214)
at org.jetbrains.kotlin.rmi.service.CompileServiceImpl.doCompile(CompileServiceImpl.kt:141)
at org.jetbrains.kotlin.rmi.service.CompileServiceImpl.remoteIncrementalCompile(CompileServiceImpl.kt:95)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323)
at sun.rmi.transport.Transport$1.run(Transport.java:200)
at sun.rmi.transport.Transport$1.run(Transport.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$241(TCPTransport.java:683)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$$Lambda$1/1089740148.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)