https://kotlinlang.org
Join Slack
Hey everyone :wave:, I was playing with Ktor to build a native server and was running it locally on ...
s

simon.vergauwen

about 3 years ago
Hey everyone 👋, I was playing with Ktor to build a native server and was running it locally on my
macArm64
(have not tried linux yet), but when I call
engine.stop(5000, 10_000)
on the
ApplicationEngine
it keeps the port occupied, and I get following exception when I try to re-run the server. I'm running the hello world example from the samples repo. Any ideas on how to fix this? Or is this a bug? I couldn't find any bug report on YouTrack, but happy to add one if needed ☺️
Uncaught Kotlin exception: io.ktor.utils.io.errors.PosixException.AddressAlreadyInUseException: EADDRINUSE (48): Address already in use
s
r
+4
  • 6
  • 17
  • 293
I am using SQLDelight with `generateAsync.set(*true*)`, now I found out that the suspend function cr...
v

Vaibhav Jaiswal

almost 2 years ago
I am using SQLDelight with
generateAsync.set(*true*)
, now I found out that the suspend function created are not main safe As i am getting such ANR
Your app's code here results in the I/O call above. Code that triggers I/O operations should be moved out of the main thread.
Stack Trace in thread
v
d
  • 2
  • 4
  • 293
What's the kotlin version of gradle version 8.6? The compatibility matrix is not filled in <https://...
r

Rasmus

almost 2 years ago
What's the kotlin version of gradle version 8.6? The compatibility matrix is not filled in https://docs.gradle.org/8.6/userguide/compatibility.html
r
m
v
  • 3
  • 3
  • 293
Is there a way to prevent child composables from being focused, through the parent?
z

Zoltan Demant

about 2 years ago
Is there a way to prevent child composables from being focused, through the parent?
z
z
  • 2
  • 14
  • 293
Does Kotlin `1.8` no longer generate `.d.ts` files or is there a configuration I’m missing? When on ...
s

shama

almost 3 years ago
Does Kotlin
1.8
no longer generate
.d.ts
files or is there a configuration I’m missing? When on Kotlin
1.7.21
they generate in
build/developmentLibrary/
but with
1.8
they are no longer there.
s
b
+4
  • 6
  • 38
  • 293
Hey everyone, is there equivalent of `truncatedTo(ChronoUnit.SECONDS)` that is present in Java local...
s

Shervin

over 2 years ago
Hey everyone, is there equivalent of
truncatedTo(ChronoUnit.SECONDS)
that is present in Java local datetime in KotlinX ?
s
d
  • 2
  • 11
  • 293
I have created multiplatform library with some cinterop libraries for `linuxArm64` and `linuxX64`. I...
f

František Jeřábek

almost 3 years ago
I have created multiplatform library with some cinterop libraries for
linuxArm64
and
linuxX64
. I published the library to my local maven repo. Now when i try to use the library in some project on
linuxX64
the build goes fine, but when i try to compile for
linuxArm64
i get
cannot find -l<library name>
and bunch of
undefined reference to <something>
. The library has
def
file with different linker paths for each architecture and build of the library goes fine for all build targets. The problem is only when i try to use the published library. So i am wondering what might be wrong here ?
f
n
  • 2
  • 5
  • 293
is Exposed the recommended ORM for Kotlin + Spring?
g

gbaldeck

about 5 years ago
is Exposed the recommended ORM for Kotlin + Spring?
g
e
+2
  • 4
  • 10
  • 293
I thought mockk mocks are strict by default, but mockito are not, but dont want to go deeper to comp...
o

oleksiyp

over 6 years ago
I thought mockk mocks are strict by default, but mockito are not, but dont want to go deeper to compare it. Not near PC
o
m
a
  • 3
  • 17
  • 293
I have an HttpHandler that is returning `HTTP/1.1 400 body 'body' must be object` This message is hi...
e

elifarley

over 7 years ago
I have an HttpHandler that is returning
HTTP/1.1 400 body 'body' must be object
This message is hiding an exception. How can I get hold of it? I have these filters:
routes(
"/sgzr/api/v1" bind Api.router(productService, orderService)
).let {
DebuggingFilters.PrintRequestAndResponse()
                .then(ServerFilters.Cors(CorsPolicy.UnsafeGlobalPermissive))
                .then(ServerFilters.CatchAll())
                .then(ServerFilters.CatchLensFailure)
                .then(it)
}
e
d
  • 2
  • 29
  • 293
Previous241242243Next

kotlinlang

A modern programming language that makes developers happier.

Powered by