josephivie
09/01/2018, 8:36 PMsuspend
doesn't work right. Specifically I'm trying to use ContentConverter
.
I'm getting an AbstractMethodError
.Nikky
09/06/2018, 1:08 AMchristophsturm
09/06/2018, 8:54 AMuli
09/07/2018, 3:28 PMClass 'kotlinx.coroutines.Deferred' is compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler
.
These are my dependencies:
ext.kotlin_version = '1.3-M2'
ext.kotlin_coroutines_version = '0.25.0-eap13'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
compile "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_coroutines_version"
Is 0.25.0-eap3
right here?uli
09/07/2018, 5:52 PMyou can simply call old suspend functions
in the 1.3-m2 release notes actually mean? I can not link against old coroutine based jars, cause they probably depend on classes in the old kotlinx-coroutines-core packages, right?pokkeli
09/13/2018, 5:53 AMpokkeli
09/13/2018, 6:04 AMchristophsturm
09/13/2018, 10:29 AMdigitalsanctum
09/28/2018, 10:08 PMpluginManagement {
repositories {
maven("<https://dl.bintray.com/kotlin/kotlin-eap>")
gradlePluginPortal()
}
}
tylerwilson
10/09/2018, 5:39 PMerror: no interface expected here
public final class Product extends NameProtocol {
elect
10/14/2018, 6:52 PM1.3.0-rc-152
and now I get Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.0-rc-152.
.. anybody else?AJ Alt
10/15/2018, 10:24 PM@ExperimentalContracts
is transitive, forcing callers to opt-in even if they don't declare any contracts themselves.
Is there a way to get this to compile?
@ExperimentalContracts inline fun <T> foo(block: () -> T): T {
contract { callsInPlace(block, EXACTLY_ONCE) }
return block()
}
fun main() {
foo { } // error: this declaration is experimental and its usage must be marked with '@ExperimentalContracts'
}
Ian
10/17/2018, 10:21 PMError:Kotlin: [Internal Error] java.lang.IllegalStateException: Backend Internal error: Exception during code generation
Cause: Back-end (JVM) Internal error: Error type encountered: [ERROR : For SuccessOrFailure] (ErrorType).
Cause: Error type encountered: [ERROR : For SuccessOrFailure] (ErrorType).
Full error here: https://gist.github.com/sanity/e596fc3b5ff6b3f02f415fd9dc2e00d3
I’m using the latest 1.3 RC (this happens both with builds 57 and 80). Any ideas?orangy
10/17/2018, 10:39 PMSuccessOrFailure
is something from the pre-release stdlib, it’s no longer there. Looks like you mixed up some versions.jw
10/18/2018, 3:01 PMralf
10/18/2018, 6:10 PMw: ATTENTION!
This build uses unsafe internal compiler arguments:
-XXLanguage:+NewInference
It prints this warning each time a KotlinCompile task is running. With many modules this is super annoying. I know what I’m doing, I want to test these feature. I don’t need to be reminded each timeMarc Knaup
10/18/2018, 8:06 PMinline class
must be at the outer scope?
Is that a temporary limitation?
class User {
inline class Id(val raw: String) // Inline classes are only allowed on top level
}
Ian
10/20/2018, 1:31 AMIan
10/20/2018, 1:38 PMDominaezzz
10/21/2018, 5:50 PMhmole
10/22/2018, 1:29 PMobject : SomeType
)? All of my code that's using them is not compiling for wiht 1.3prasham.h.trivedi
10/29/2018, 11:08 AMinline class State(val state: Int)
And in my regular class I have a variable of the State using Delegates.observable
.
Whenever I try to compare two states, I get : State cannot be cast to java.lang.Number
My sample comparision code looks like following.
this.state==State(1)
Allan Wang
11/08/2018, 8:26 PMinline class ShortUser(val value: String)
and inline class User(val value: String)
, and I want to be able to pass ShortUser
into methods that take in User
, is the only way to pass in User(shortUser.value)
? (Haven't actually tried this. Just reading the inline class docs, and it looks like there is no other way)Allan Wang
11/08/2018, 8:29 PMinline class Name(val s: String) {
val length: Int
get() = s.length
fun greet() {
println("Hello, $s")
}
}
Would it not be preferred to use inline val length...
?Nikky
11/08/2018, 10:33 PMjosephivie
11/22/2018, 1:46 AMval x:Any = InlineClass(0); x::class
but that's pretty hackyRoman Artemev [JB]
12/12/2018, 7:11 PM1.3.20-eap-25
and it's available in the kotlin-eap
Bintray repository and "EAP 1.3.20" IDE plugin channel.
What's new: https://github.com/JetBrains/kotlin/releases/v1.3.20-eap-25
How to get it: https://discuss.kotlinlang.org/t/kotlin-1-3-20-early-access-preview/10748christophsturm
12/12/2018, 7:34 PMRoman Artemev [JB]
12/20/2018, 10:57 AM1.3.20-eap-52
and it's available in the kotlin-eap
Bintray repository and "EAP 1.3.20" IDE plugin channel.
What's new: https://github.com/JetBrains/kotlin/releases/v1.3.20-eap-52
How to get it: https://discuss.kotlinlang.org/t/kotlin-1-3-20-early-access-preview/10748Roman Artemev [JB]
12/20/2018, 10:57 AM1.3.20-eap-52
and it's available in the kotlin-eap
Bintray repository and "EAP 1.3.20" IDE plugin channel.
What's new: https://github.com/JetBrains/kotlin/releases/v1.3.20-eap-52
How to get it: https://discuss.kotlinlang.org/t/kotlin-1-3-20-early-access-preview/10748msink
12/20/2018, 11:25 AM> Task :libui:cinteropLibuiWindows FAILED
Exception in thread "main" java.lang.UnsatisfiedLinkError: F:\work\.konan\dependencies\msys2-mingw-w64-x86_64-gcc-7.3.0-clang-llvm-lld-6.0.1\bin\libclang.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1086)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.prepareTool(main.kt:306)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLib(main.kt:192)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.interop(main.kt:36)
at org.jetbrains.kotlin.cli.utilities.InteropCompilerKt.invokeInterop(InteropCompiler.kt:88)
at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:18)
It works with EAP1 (1.3.20-eap-25)