https://kotlinlang.org
Join Slack
I'm not sure if it a compiler issue or gradle: after we added the compose to our project, the gradle...
e

estevanfick

over 1 year ago
I'm not sure if it a compiler issue or gradle: after we added the compose to our project, the gradle-profiler start to break for one unique scenario: apply-android-resource-change-to
e: org.jetbrains.kotlin.backend.common.BackendException: Backend Internal error: Exception during IR lowering
File being compiled: /com/x/x/x/x/x/x/RandomLayout.kt
The root cause java.lang.AssertionError was thrown at: org.jetbrains.kotlin.ir.util.IrUtilsKt.copyValueParametersToStatic(IrUtils.kt:960)
.....
Caused by: java.lang.AssertionError: Dispatch receiver type RandomLayout is not a subtype of com.x.CardLayout<com.x.DashboardCard>
	at org.jetbrains.kotlin.ir.util.IrUtilsKt.copyValueParametersToStatic(IrUtils.kt:960)
I don't even know where to start
e
d
s
  • 3
  • 25
  • 445
What might be the cause of "_*Detected multithreaded access to SnapshotStateObserver*_" connected to...
z

Zoltan Demant

over 1 year ago
What might be the cause of "_*Detected multithreaded access to SnapshotStateObserver*_" connected to
AndroidContentCaptureManager
? Full stacktrace in 🧵
z
  • 1
  • 1
  • 445
Wanted to share some resources for getting Tailwind CSS working in a Kotlin/JS (really, MPP) project...
v

Vincent Le

over 4 years ago
Wanted to share some resources for getting Tailwind CSS working in a Kotlin/JS (really, MPP) project. I was working on this over the past month and it was surprisingly hard (not many resources online and I’m new to this whole stack). • Getting things working for development: https://github.com/nanodeath/kotlinjs-tailwindcss • Expanding on above to optimize for production: https://vple.me/posts/purging-tailwindcss-with-kotlinjs/ And for completeness, an earlier thread: https://kotlinlang.slack.com/archives/C0B8L3U69/p1600892124011900
🦜 1
👏 4
👍 3
🎉 1
v
d
  • 2
  • 2
  • 445
Hello I have a question related to deep links handling with compose navigation, where I couldn't get...
t

Thomas

almost 2 years ago
Hello I have a question related to deep links handling with compose navigation, where I couldn't get navigation to work as expected after deep linking to a destination that isn't a start destination. I have been stuck on this for hours and I would really appreciate any help!
t
i
  • 2
  • 17
  • 445
Is there any clever way to handle null in a JSON body lens? I want a Kotlin `null` value to be mappe...
m

Mikael Ståldal

over 2 years ago
Is there any clever way to handle null in a JSON body lens? I want a Kotlin
null
value to be mapped to/from a JSON
null
value.
m
d
  • 2
  • 21
  • 443
Hi. This is a simplified version of the issue I have. I've got this in an Android project ```class A...
r

Raul

over 2 years ago
Hi. This is a simplified version of the issue I have. I've got this in an Android project
class A(){
   val flow: Flow<Boolean> = flowOf(true)
}

class B (a: A) {
   val otherFlow = a.flow
}
and in one test:
@RelaxedMockK //or MockK, I've tried both
    protected lateinit var a: A
    
    protected lateinit var b: B
    
    @Before
    fun setUp() {
        MockKAnnotations.init(this, relaxed = true)
        b = B(a)
    }
This is working fine with MockK
1.13.3
, but after updating to
1.13.4
I'm getting the error
java.lang.IncompatibleClassChangeError: Superclass kotlinx.coroutines.flow.Flow of kotlinx.coroutines.flow.Flow_1_Proxy is an interface (declaration of 'kotlinx.coroutines.flow.Flow_1_Proxy' appears in /data/user/0/com.mypackage.myapp.debug/app_dxmaker_cache/Generated_2115397682.jar)
Am I missing something? 🤷 🤔
r
j
m
  • 3
  • 12
  • 443
How do you configure timeout for http4k client?
m

Mikael Ståldal

about 3 years ago
How do you configure timeout for http4k client?
m
d
  • 2
  • 8
  • 443
I’m using Navigation component and, I have logout menu option in toolbar, when clicking it, it shoul...
m

Mohamed Ibrahim

over 4 years ago
I’m using Navigation component and, I have logout menu option in toolbar, when clicking it, it should navigate to login fragment .. clicking back button return to the previous [loggedin screen]
m
r
c
  • 3
  • 2
  • 442
Hi! If I need to configure an instance of a testcontainer for postgres, where whould I do that? It s...
d

dave08

almost 5 years ago
Hi! If I need to configure an instance of a testcontainer for postgres, where whould I do that? It seems like
Startable.perProject(...)
takes a name param, but doesn't work for a customized container...
d
s
t
  • 3
  • 39
  • 442
I have a long question about programmatic vs design/xml UI using kotlin in Android; coming from an i...
t

Travis Griggs

about 6 years ago
I have a long question about programmatic vs design/xml UI using kotlin in Android; coming from an iOS/Swift background. I’ll post the body of the question as a threaded reply to this to avoid a ginormous post here.
t
r
+4
  • 6
  • 35
  • 442
Previous151152153Next

kotlinlang

A modern programming language that makes developers happier.

Powered by