https://kotlinlang.org
Join Slack
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
  • 1781
Hey guys, any idea how to set environment variables (.env) in a Kotlin JS node project? I've tried a...
c

Chukwukammadu Anizoba

about 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
  • 1781
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
  • 1780
I was just updating a project of mine and am now getting this error: `e: androidx.compose.compiler....
t

Tom Truyen

about 1 year ago
I was just updating a project of mine and am now getting this error:
e: androidx.compose.compiler.plugins.kotlin.IncompatibleComposeRuntimeVersionException: The Compose Compiler requires the Compose Runtime to be on the class path, but none could be found. The compose compiler plugin you are using (version 1.5.14) expects a minimum runtime version of 1.0.0.
I don't understand why this is happening since I have updated projects before without a problem. I am attempting to upgrade to Kotlin 2.0.20. I have applied the
org.jetbrains.kotlin.plugin.compose
to my project build.gradle and to my modules via convention plugins
libs.versions.toml
✅ 1
t
m
b
  • 3
  • 31
  • 1774
Is it good to have a use case depending on another use case where the other use case is just forward...
v

Vikas Singh

about 3 years ago
Is it good to have a use case depending on another use case where the other use case is just forwarding the calls to the repository ?
v
m
+5
  • 7
  • 13
  • 1770
Are there hot reload in android native kotlin for android studio 4.2, if there aren't so when we get...
o

onirutlA

over 4 years ago
Are there hot reload in android native kotlin for android studio 4.2, if there aren't so when we get hot reload?
o
c
  • 2
  • 2
  • 1763
Has anyone here been able to get Kotlin Language Server working with vim/nvim? I've installed it, bu...
l

Levi

about 2 years ago
Has anyone here been able to get Kotlin Language Server working with vim/nvim? I've installed it, but just doesn't seem to be working.... Go To Definition not working, etc.
l
v
h
  • 3
  • 22
  • 1755
Hi all, How can I use WebView for Compose MultiPlatform Desktop ?
b

Beta Tech

over 2 years ago
Hi all, How can I use WebView for Compose MultiPlatform Desktop ?
b
n
+2
  • 4
  • 3
  • 1755
Hello, I’m trying to use Micrometer Tracing in Spring Boot 3.0 with Kotlin, but I think it’s not wor...
p

Pedro Sousa

over 2 years ago
Hello, I’m trying to use Micrometer Tracing in Spring Boot 3.0 with Kotlin, but I think it’s not working the way I expected. From what I read, I thought that tracing information stored in coroutines contexts would flow through the different Threads of execution. But it looks like that once the thread changes, trace information is lost. I’ve created this simple controller to test this:
@RestController
class TestController(val tracer: Tracer) {
    private val logger: Logger = LoggerFactory.getLogger(this::class.java)

    @GetMapping("/test")
    suspend fun test() {
        <http://logger.info|logger.info>("before: ${tracer.currentTraceContext().context()?.traceId()}")
        delay(50)
        <http://logger.info|logger.info>("after: ${tracer.currentTraceContext().context()?.traceId()}")
    }
}
The second log statement reports a null value for the traceId, because the Kotlin
delay
function caused a thread switch and the trace informations is lost, Can anyone help here? Why is this happening? Is it by design? Is there something I can do to guarantee that the traceId is always present?
p
r
  • 2
  • 1
  • 1751
[SOLVED] Anyone else experiencing `unresolved reference` problems in Android Studio or Intellij for ...
i

iamsteveholmes

over 3 years ago
[SOLVED] Anyone else experiencing
unresolved reference
problems in Android Studio or Intellij for Kotlin 1.6.20? I filed a seemingly related issue months ago that was never resolved and it appears to be happening by default in 1.6.20. https://youtrack.jetbrains.com/issue/KT-48148 EDIT: This appears to have been an issue with my settings. I had to install a new intellij without importing settings. I’m working with support to pinpoint the issue.
i
r
a
  • 3
  • 6
  • 1746
Previous141516Next

kotlinlang

A modern programming language that makes developers happier.

Powered by