https://kotlinlang.org
Join Slack
Hello, Seeing `w: Kapt currently doesn't support language version 2.0+. Falling back to 1.9.` in lo...
b

Berkeli Alashov

about 1 year ago
Hello, Seeing
w: Kapt currently doesn't support language version 2.0+. Falling back to 1.9.
in logs means it applies only for kapt right? i.e rest of the project is using kotlin 2.0, but kapt itself is falling back kotlin 1.9? Context: we have upgraded most of our modules to use kotlin 2.0 & ksp, but only 2 modules are using
id("kotlin-kapt")
(because of room-java) I'm guessing we will still be able to use kotlin 2.0 in those modules using kotlin-kapt, right?
👌 2
b
d
  • 2
  • 1
  • 1657
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
  • 1656
I wanted to add shadow to a composable. Shadow should be only applied to the top. (Not required for ...
w

wintersoldier

almost 3 years ago
I wanted to add shadow to a composable. Shadow should be only applied to the top. (Not required for left or right). Is there some way to achieve this. Code snippet I already tried,
Box(
  modifier = Modifier
    .background(Color.Yellow)
    .shadow(
      elevation = 2.dp,
    ),
) {
content()
}
w
o
  • 2
  • 12
  • 1653
I'm getting crashes when running Kotlin Multiplatform iOS apps using new XCode 15 Beta + iOS 17 Simu...
j

John O'Reilly

over 2 years ago
I'm getting crashes when running Kotlin Multiplatform iOS apps using new XCode 15 Beta + iOS 17 Simulator.....seems to be in Ktor code. I'll dig a bit deeper but just in case anyone else seeing same thing....
âž• 2
j
s
a
  • 3
  • 3
  • 1641
`Exceeded max line length (120) (cannot be auto-corrected) (max-line-length)` Why can't line length ...
j

jeff

over 3 years ago
Exceeded max line length (120) (cannot be auto-corrected) (max-line-length)
Why can't line length be auto-corrected? IntelliJ auto-corrects it just fine. Any alternative settings or different tools that can do better?
j
s
  • 2
  • 1
  • 1641
Hey I’m having issues mocking an extension property, how can one do it? Suppose I have `class MyServ...
a

André Martins

over 3 years ago
Hey I’m having issues mocking an extension property, how can one do it? Suppose I have
class MyService { … }
and an extension property like
val MyService.myProp: String
    get() = "value"
when doing
mockk<MyService> {
    every { myProp } returns "otherValue"
}
it throws a
MockkException
msg:
Missing mocked calls inside every { ... } block: make sure the object inside the block is a mock
a
  • 1
  • 5
  • 1636
Is there any chart library available for compose multiplatform?
j

jamshedalamqaderi

about 2 years ago
Is there any chart library available for compose multiplatform?
j
p
m
  • 3
  • 5
  • 1619
hi guys, i am getting ```finishConnect(..) failed: Connection refused: /[0:0:0:0:0:0:0:1]:80; nested...
g

George

over 3 years ago
hi guys, i am getting
finishConnect(..) failed: Connection refused: /[0:0:0:0:0:0:0:1]:80; nested exception is io.netty.channel.AbstractChannel$AnnotatedConnectException: finishConnect(..) failed: Connection refused: /[0:0:0:0:0:0:0:1]:80
org.springframework.web.reactive.function.client.WebClientRequestException: finishConnect(..) failed: Connection refused: /[0:0:0:0:0:0:0:1]:80; nested exception is io.netty.channel.AbstractChannel$AnnotatedConnectException: finishConnect(..) failed: Connection refused: /[0:0:0:0:0:0:0:1]:80
from a rather simple springboot-kotlin code. Has anyone encountered this? Thanks in advance 🙂
g
c
  • 2
  • 4
  • 1601
What is the current take on Kotlin's native Result vs eg Arrow Either/Try? I've used Either/Try in ...
f

Fred Friis

over 2 years ago
What is the current take on Kotlin's native Result vs eg Arrow Either/Try? I've used Either/Try in my previous team, about to join a team that prefer using Result instead. They seem kinda similar to me (Result needs throwables as errors which is a bit different but whatever) but then there are people that claim that Kotlin devs themselves advocate against using Result in your business code as it will catch all exceptions, which isn't really desirable (see https://stackoverflow.com/questions/70847513/when-and-how-to-use-result-in-kotlin)
f
s
+3
  • 5
  • 56
  • 1597
Is there a date picker for compose multiplatform that works for both platforms (android,ios)
e

Emmanuel Mtera

almost 2 years ago
Is there a date picker for compose multiplatform that works for both platforms (android,ios)
e
d
+2
  • 4
  • 7
  • 1594
Previous161718Next

kotlinlang

A modern programming language that makes developers happier.

Powered by