https://kotlinlang.org
Join Slack
what can I do if the `compileKotlin` Gradle task always hangs for 10+ minutes, and launches a Java p...
a

Adam S

over 2 years ago
what can I do if the
compileKotlin
Gradle task always hangs for 10+ minutes, and launches a Java process that takes up 100% CPU? This is for a small v1.8.10 project with ~10 Kotlin classes (Gradle 8.0.2) I’ve tried cleaning, rebooting, running with
--no-build-cache
,
--no-configuration-cache
,
kotlin.incremental=false
, `kotlin.caching.enabled=false`…
a
t
h
  • 3
  • 19
  • 973
When using `bind` inside `either { ... }` I’m getting this message > ‘bind(): A’ is deprecated. T...
j

jean

about 2 years ago
When using
bind
inside
either { ... }
I’m getting this message
‘bind(): A’ is deprecated. This object introduces dangerous behavior.
What am I suppose to use now? I see there is
ensure
but I don’t really understand how to use it properly
j
m
+2
  • 4
  • 9
  • 969
Hello Guys How can we add navigation safe args Gradle Plugin into version catlog toml file ```class...
n

neerav

about 2 years ago
Hello Guys How can we add navigation safe args Gradle Plugin into version catlog toml file
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version")
other plugins reference i am able to access in top level
build.gradle.kts
but when I have added nav safe args under toml [plugins] not able to access that particular plugin Not sure is it because of group name with “`:`”
android-navsafe-args = { id = "androidx.navigation:navigation-safe-args-gradle-plugin", version.ref = "navSafeArgsPlugin" }
Can anyone please help me in this ?
✅ 1
👀 1
n
m
  • 2
  • 5
  • 969
Are there any multiplatform implementations of Android's `BackHandler`?
e

eygraber

over 1 year ago
Are there any multiplatform implementations of Android's
BackHandler
?
e
p
  • 2
  • 15
  • 968
Is there hook/callback for “Compose screen/widget has finished rendering”? In XML views, you could ...
k

kenkyee

over 2 years ago
Is there hook/callback for “Compose screen/widget has finished rendering”? In XML views, you could hook into GlobalLayoutListener. Searched slack and stackoverflow for “finish rendering Jetpack Compose” w/o luck. This is needed for the typical analytics info of “has the LazyList finished rendering” or “has the screen finished rendering” to determine when a user can interact with it.
k
a
+5
  • 7
  • 8
  • 968
In spring boot 3, how do I define a custom configuration that is also @Component annotated? When I d...
c

chi

almost 2 years ago
In spring boot 3, how do I define a custom configuration that is also @Component annotated? When I define a data class with the configurarion properties;
@Component
@ConfigurationProperties("testconfig")
data class TestConfiguration(var eyes: String, var nose: String)
I can see the property in the
application.properties
file but, in the repository where I want to use this component, I see an error
"could not autowire"
, and when I run the app it crashes because it couldn’t find
TestConfiguration
, how do I fix this please?
c
c
  • 2
  • 15
  • 967
Intercepting a request using HttpSend (like in <https://ktor.io/docs/http-send.html>) , what would b...
h

harry248

almost 3 years ago
Intercepting a request using HttpSend (like in https://ktor.io/docs/http-send.html) , what would be the recommended way to prevent the request from being sent. Throwing an exception?
h
a
  • 2
  • 9
  • 965
Hello, I'm trying to use compose web with canvas but I'm getting some errors when running the projec...
d

Dragos Rachieru

over 2 years ago
Hello, I'm trying to use compose web with canvas but I'm getting some errors when running the project:
onWasmReady is not defined
I searched the examples and they look like I need to use webpack
4.9.0
When I set that version, I get a new error:
cli.isMultipleCompiler is not a function
d
d
+4
  • 6
  • 21
  • 960
Hello, Does anyone knows how to get drawable image path as a string inside my repository without usi...
a

Ali

over 3 years ago
Hello, Does anyone knows how to get drawable image path as a string inside my repository without using any context?
😶 4
a
a
i
  • 3
  • 18
  • 960
how can I use `value class` in a multiplatform project? Previously I used `inline class` but I see i...
p

Piotr Krzemiński

over 2 years ago
how can I use
value class
in a multiplatform project? Previously I used
inline class
but I see it’s deprecated now. Using
value class
produces an error “Value classes without @JvmInline annotation are not supported yet” and I cannot use
@JvmInline
in a multiplatform project obviously. What’s the recommended path forward? Keep using
inline class
? What’s the plan of proper multiplatform support for
value class
? Once we clarify all of it, I’ll propose some changes to the docs: https://kotlinlang.org/docs/inline-classes.html
✅ 1
p
h
+2
  • 4
  • 9
  • 959
Previous404142Next

kotlinlang

A modern programming language that makes developers happier.

Powered by