https://kotlinlang.org
Join Slack
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
  • 1752
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
  • 1743
[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
  • 1743
How to animate item placements in `FlowRow`?
m

Mark

over 2 years ago
How to animate item placements in
FlowRow
?
m
u
+4
  • 6
  • 28
  • 1740
Is there a way to get `ModalBottomSheetLayout` to expand to anything above 50% in the `HalfExpanded`...
t

Tash

over 2 years ago
Is there a way to get
ModalBottomSheetLayout
to expand to anything above 50% in the
HalfExpanded
state? Right now I have something like this, but it only expands to 50% when I would like it to expand to 70%, or expand a little more than 50% to “wrap” the content’s height so that it doesn’t get cut off (using version 1.4.1)
val sheetState = rememberModalBottomSheetState(
	initialValue = HalfExpanded,
    skipHalfExpanded = false
)

ModalBottomSheetLayout(
	sheetState = sheetState
	sheetContent = {
		Column(Modifier.fillMaxHeight(0.7f)) { /** content **/ }
	}
)
t
j
j
  • 3
  • 11
  • 1738
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
  • 1738
Hey I am not able to use String.format in Shared module that is powered by KMM. Does anyone has any ...
h

Harsh Joshi

over 2 years ago
Hey I am not able to use String.format in Shared module that is powered by KMM. Does anyone has any clue?
h
v
+2
  • 4
  • 5
  • 1728
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
  • 1727
is there is a multiplatform library for URL Encoding with parameter?
i

itnoles

over 2 years ago
is there is a multiplatform library for URL Encoding with parameter?
➕ 1
i
k
+2
  • 4
  • 4
  • 1723
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
  • 1714
Previous141516Next

kotlinlang

A modern programming language that makes developers happier.

Powered by