https://kotlinlang.org
Join Slack
Hi, how can I position a composable view at a percentage height of a composable container view? For ...
p

Pablo

almost 3 years ago
Hi, how can I position a composable view at a percentage height of a composable container view? For example, centering a Text at the 20% of the height of its container.
p
k
+3
  • 5
  • 10
  • 1029
I’m trying JDK 16 and I see next ```Caused by: java.lang.IllegalAccessError: class org.jetbrains.kot...
e

Eugen Martynov

over 4 years ago
I’m trying JDK 16 and I see next
Caused by: java.lang.IllegalAccessError: class org.jetbrains.kotlin.kapt3.base.KaptContext (in unnamed module @0x52c27981) cannot access class com.sun.tools.javac.util.Context (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.util to unnamed module @0x52c27981
Any ideas? It is JDK 16 ARM and quite standard android project
e
e
  • 2
  • 1
  • 1029
Hi all .. I have been getting this 404 error response when trying to return a serialized data class ...
c

Charles Maina

over 2 years ago
Hi all .. I have been getting this 404 error response when trying to return a serialized data class using kotlin serialization.
"Skipping response body transformation from HttpStatusCode to OutgoingContent for the POST /register request because the HttpStatusCode type is ignored. See [ContentNegotiationConfig::ignoreType]". Anyone knows how I can go about it? I have tried searching online first.
This is how I am installing content negotiation.
fun Application.configureSerialization() {
    install(ContentNegotiation) {
        json()
    }
}
c
a
a
  • 3
  • 7
  • 1028
Hello, I'm trying to use compose web with canvas but I'm getting some errors when running the projec...
d

Dragos Rachieru

about 3 years ago
Hello, I'm trying to use compose web with canvas but I'm getting some errors when running the project:
onWasmReady is not defined
I searched the examples and they look like I need to use webpack
4.9.0
When I set that version, I get a new error:
cli.isMultipleCompiler is not a function
d
d
+4
  • 6
  • 21
  • 1026
Hi Kotliners! I wrote a Kotlin Redis client using co-routines. Check this out, i welcome you to revi...
a

Abhi

almost 4 years ago
Hi Kotliners! I wrote a Kotlin Redis client using co-routines. Check this out, i welcome you to review it, provide feedback, contribute to it, use it. https://github.com/crackthecodeabhi/kreds Please give Github stars, so it encourages me to contribute more to Kotlin Server side and the Kotlin Server side community! Your stars and feedback means a lot! Thanks!
👍 2
K 6
a
b
r
  • 3
  • 8
  • 1026
Is there more elegant way to attach a shutdown hook in kotlin, like lambda functions or so? Currentl...
a

Animesh Sahu

almost 6 years ago
Is there more elegant way to attach a shutdown hook in kotlin, like lambda functions or so? Currently using this (not looks so beautiful :P)
Runtime.getRuntime().addShutdownHook(object : Thread() {
	override fun run() {
		server.destroy()
	}
})
a
i
d
  • 3
  • 6
  • 1024
I'm having an issue getting gradle to build a KMM app. Targeting Android, Desktop, Server. Whenever ...
b

Brandon Chapman

over 1 year ago
I'm having an issue getting gradle to build a KMM app. Targeting Android, Desktop, Server. Whenever I add
sqldelight
plugin to the
composeApp
build.gradle.kts
it spits out this error:
Using 'compilerOptions(KotlinCommonCompilerOptions.() -> Unit): Unit' is an error. Kotlin target level compiler options DSL is not available in this release!
b
a
  • 2
  • 22
  • 1022
Anyone know if it's possible to disable compose previews from rendering. Wondering if it speeds up o...
c

Colton Idle

over 2 years ago
Anyone know if it's possible to disable compose previews from rendering. Wondering if it speeds up other things in my IDE like auto-complete when the preview loading wheel is spinning for minutes at a time.
c
m
  • 2
  • 1
  • 1022
Hi I d like to add ssl certificates to ktor client. Is it possible add them to default engine or sho...
v

Václav Beneš

over 4 years ago
Hi I d like to add ssl certificates to ktor client. Is it possible add them to default engine or should i use okhttps. Does ktor load ssl from system ? Thx
v
a
  • 2
  • 4
  • 1022
is there a way to debug why the kotlin daemon isn't working? we are getting: ```Could not perform in...
j

Josh Feinberg

over 4 years ago
is there a way to debug why the kotlin daemon isn't working? we are getting:
Could not perform incremental compilation: Could not connect to Kotlin compile daemon
Could not connect to kotlin daemon. Using fallback strategy.
since we upgraded from 1.4.31 to 1.5.10 but i'm not sure what to file in a bug or anything
j
e
a
  • 3
  • 4
  • 1022
Previous444546Next

kotlinlang

A modern programming language that makes developers happier.

Powered by