Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kotlin 2.0 support #74

Open
hanrw opened this issue Nov 20, 2023 · 5 comments
Open

kotlin 2.0 support #74

hanrw opened this issue Nov 20, 2023 · 5 comments
Labels

Comments

@hanrw
Copy link

hanrw commented Nov 20, 2023

I got some errors below after upgraded to kotlin 2.0 beta:

clear[macosArm64] FAILED
    io.mockative.NoSuchMockException at /opt/buildAgent/work/6285e88d8d1c1e7f/kotlin/kotlin-native/runtime/src/main/kotlin/kotlin/Throwable.kt:28
@Nillerr
Copy link
Collaborator

Nillerr commented Apr 14, 2024

Hi @hanrw

Thank you for using Mockative. I'm sorry it has taken me this long to respond to your issue.

Kotlin 2.0 is coming up and will unfortunately introduce changes that break a quirk used by Mockative. I have some ideas for how to overcome those changes, which I will look into in the coming weeks.

@sergeys-opera
Copy link

I'm also facing the same issue after upgrading to K2. Note that the K2 RC is already available: https://kotlinlang.org/docs/whatsnew-eap.html#new-kotlin-k2-compiler-updates

@Clemodd
Copy link

Clemodd commented May 3, 2024

I'm also facing the same issue after upgrading to K2. Note that the K2 RC is already available: https://kotlinlang.org/docs/whatsnew-eap.html#new-kotlin-k2-compiler-updates

Up, me too... :(

@Vivecstel
Copy link

same

@Nillerr
Copy link
Collaborator

Nillerr commented May 18, 2024

Hey people 👋🏻!

I am tracking the challenges and work for K2 and Kotlin 2.0 at #116. Unfortunately, the K2 compiler will introduce a change that breaks how Mockative generates mocks for code under test. I have ideas for steps to mitigate this which I will explore throughout the coming week. I would like to have a solution ready for the release of Kotlin 2 with K2 before the expected launch in June.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants