https://kotlinlang.org
Join Slack
does kotlint-logging support mocking the logger?
c

christophsturm

about 8 years ago
does kotlint-logging support mocking the logger?
c
o
  • 2
  • 11
  • 808
I have a `LazyColumn` with an `AndroidView` which wraps a `WebView` ```LazyColumn { AndroidView...
z

zsperske

over 2 years ago
I have a
LazyColumn
with an
AndroidView
which wraps a
WebView
LazyColumn {
    AndroidView(
      factory = {
           WebView()
      }
    )

   //other stuff
}
The WebView has horizontal scrolling but while scrolling it, the lazy column & android view “fight” over the scroll input. If your horizontal scroll has any kind of vertical component to it, the lazy column will start scrolling. Other native views in the same lazy column that scroll horizontally work correctly (as in if your scroll is partially vertical, the lazy column won’t scroll errantly) Has anyone run into this before?
z
c
  • 2
  • 5
  • 807
hi! what is the right way to use ViewModel with Compose Desktop? I've tried several times, but I alw...
a

Alejandro Serrano.Mena

12 months ago
hi! what is the right way to use ViewModel with Compose Desktop? I've tried several times, but I always get
No ViewModelStoreOwner was provided via LocalViewModelStoreOwner
for context, I've added
androidx.lifecycle:lifecycle-viewmodel-compose:2.8.3
as dependency, and also
org.jetbrains.kotlinx:kotlinx-coroutines-swing:1.8.1
a
p
+2
  • 4
  • 35
  • 803
Hello, is it possible to use in kotlin addObserver on NSObject? I want to observe the property value...
i

Ivan Ilic

almost 6 years ago
Hello, is it possible to use in kotlin addObserver on NSObject? I want to observe the property value of native object without success. I also tried to implement my own NSObject using this swift example as reference https://developer.apple.com/documentation/swift/cocoa_design_patterns/using_key-value_observing_in_swift. Is anyone have more success and want to share with me?
i
l
+2
  • 4
  • 19
  • 803
does Visual Studio Code support Compose `@preview`
k

Koneko Toujou

over 2 years ago
does Visual Studio Code support Compose
@preview
🚫 3
k
c
  • 2
  • 4
  • 802
I'm getting this error `io.ktor.serialization.ContentConvertException: No suitable converter found f...
z

zt

about 2 years ago
I'm getting this error
io.ktor.serialization.ContentConvertException: No suitable converter found for TypeInfo(type=class com.zt.tempus.ui.viewmodel.Res, reifiedType=class com.zt.tempus.ui.viewmodel.Res, kotlinType=com.zt.tempus.ui.viewmodel.Res)
in my android app, but I have no clue what I'm doing wrong. I've added the content negotion library, and set it up for json. I applied kotlinx serialization gradle plugin and marked my classes as serializable.
private val httpClient = HttpClient(CIO) {
        install(ContentNegotiation) {
            json(json)
        }

        install(HttpCookies) {
            storage = AcceptAllCookiesStorage()
        }

        install(ContentEncoding) {
            gzip()
            deflate()
        }

        defaultRequest {
            contentType(ContentType.Application.Json)
        }
    }
z
a
  • 2
  • 4
  • 801
Is there any reason I shouldn't set `yarnLockAutoReplace` to true?
d

David Herman

over 2 years ago
Is there any reason I shouldn't set
yarnLockAutoReplace
to true?
d
v
  • 2
  • 25
  • 801
Does Exposed have a way to stream records or batch fetch records for `findAll()` I am trying to pro...
t

T.J. Tarazevits

over 2 years ago
Does Exposed have a way to stream records or batch fetch records for
findAll()
I am trying to process ~400k records in a cron-job and I don’t want to load all of them into memory at once. I’ve been googling for Kotlin Exposed Sequence or Kotlin Exposed Iterable but I am not sure if they actually only pull records on demand from postgres or if they just expose the result of the query as an Iterable
t
s
  • 2
  • 1
  • 799
Hi everyone, how can I limit max characters in `Text` component?
r

Ruben Quadros

almost 3 years ago
Hi everyone, how can I limit max characters in
Text
component?
r
z
a
  • 3
  • 3
  • 799
Hello all, upgrading to add KSP to my build, instructions here: <https://developer.android.com/build...
b

Billy Newman

over 1 year ago
Hello all, upgrading to add KSP to my build, instructions here: https://developer.android.com/build/migrate-to-ksp. When doing so I am getting the following error. Anyone else running into this?
java.lang.NoSuchMethodError: 'kotlin.sequences.Sequence com.google.devtools.ksp.processing.Resolver.getPackagesWithAnnotation(java.lang.String)'
b
j
+2
  • 4
  • 11
  • 797
Previous565758Next

kotlinlang

A modern programming language that makes developers happier.

Powered by