https://kotlinlang.org
Join Slack
Unable to mock the methods from `object` class using `Mockito`. Tried the same with `Mockk` it’s wor...
s

Suraj Bokey

almost 3 years ago
Unable to mock the methods from
object
class using
Mockito
. Tried the same with
Mockk
it’s working. Anyone tried doing this with
Mockito
?
s
m
  • 2
  • 4
  • 1791
I get stuck on `com.zaxxer.hikari.HikariDataSource: HikariPool-1 - Starting...` every single time I...
m

Mikhail

over 3 years ago
I get stuck on
com.zaxxer.hikari.HikariDataSource: HikariPool-1 - Starting...
every single time I run my application. Using Spring Boot and Docker Compose on Arch Linux. What I've tried: • Rebooting • Checking the connection string • Checking database availability • Checking my docker compose configuration • Downgrading the kernel then rebooting • Upgrading the kernel then rebooting • Cleaning up docker (containers, images, volumes ....) then rebooting • Restarting docker Also, I use Spring Boot 2.7.1, PostgreSQL 15beta2-bullseye, Docker 20.10.17 and Docker Compose 2.6.1
😶 1
m
i
  • 2
  • 7
  • 1791
is there an official openapi-generator for kotlin ktor client?
x

xxfast

over 3 years ago
is there an official openapi-generator for kotlin ktor client?
✅ 1
x
a
+3
  • 5
  • 7
  • 1788
Hello, How do you manage String resources in Kotlin Multiplatform Mobile(Android & iOS)? I found...
i

Ivy

almost 5 years ago
Hello, How do you manage String resources in Kotlin Multiplatform Mobile(Android & iOS)? I found this post(https://chrynan.codes/string-resources-in-kotlin-multiplatform/), but I wonder what the best practice is.
i
m
+2
  • 4
  • 8
  • 1782
I know Decompose and Voyager, but they seem like heavy libraries to me. I need only simple navigati...
k

Kensuke Sano

over 2 years ago
I know Decompose and Voyager, but they seem like heavy libraries to me. I need only simple navigation and official library.
🧵 1
k
a
+4
  • 6
  • 8
  • 1777
What’s the difference between using ```every {} returns something``` and ```every {} answers {someth...
v

voben

almost 6 years ago
What’s the difference between using
every {} returns something
and
every {} answers {something}
v
s
+4
  • 6
  • 6
  • 1776
How to use `@ Value` annotation in spring with Kotlin?
m

Manoj

over 3 years ago
How to use
@ Value
annotation in spring with Kotlin?
m
s
  • 2
  • 17
  • 1775
What's the proper way to pass the `-Xexpect-actual-classes` flag to the compiler in 1.9.20-RC? Previ...
j

Jeff Lockhart

about 2 years ago
What's the proper way to pass the
-Xexpect-actual-classes
flag to the compiler in 1.9.20-RC? Previously in 1.9.20-Beta2 I had:
kotlin {
    compilerOptions {
        freeCompilerArgs.add("-Xexpect-actual-classes")
    }
}
But this top-level
compilerOptions
has been removed now. I've tried
tasks.withType<KotlinCompile>().configureEach {
    compilerOptions {
        freeCompilerArgs.add("-Xexpect-actual-classes")
    }
}
and
tasks.withType<KotlinCompile>().configureEach {
    kotlinOptions {
        freeCompilerArgs += "-Xexpect-actual-classes"
    }
}
but still get the warning
'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. You can use -Xexpect-actual-classes flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573
during compilation.
youtrack 1
j
a
+3
  • 5
  • 13
  • 1773
Hey guys, any idea how to set environment variables (.env) in a Kotlin JS node project? I've tried a...
c

Chukwukammadu Anizoba

almost 4 years ago
Hey guys, any idea how to set environment variables (.env) in a Kotlin JS node project? I've tried adding a .env file at the root of the project, but the server code is not picking up the variables from
process.env
. Cheers!
c
a
  • 2
  • 7
  • 1772
Hi, I currently try to generate a json schema from kotlin classes and generating kotlin classes fro...
h

huehnerlady

over 4 years ago
Hi, I currently try to generate a json schema from kotlin classes and generating kotlin classes from json schema. For my first part - creating schema from kotlin classes, I ran into this post on stack overflow and there I was pointed to kotlinx.serialization at a very early stage (see here). unfortunately this folder was completely removed in this commit. Now I cannot find any hint of similar classes or how I could achieve just that. Is this still possible with kotlinx.serialization? If so — how? If not — any other idea how I can achieve that?
h
n
d
  • 3
  • 12
  • 1762
Previous131415Next

kotlinlang

A modern programming language that makes developers happier.

Powered by