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

Duplicated source roots #76

Closed
GoodSir42 opened this issue May 5, 2024 · 5 comments
Closed

Duplicated source roots #76

GoodSir42 opened this issue May 5, 2024 · 5 comments

Comments

@GoodSir42
Copy link

Hello! I am happily using your library for testing my KMP project but I have an issue getting it to work with Kotlin 2.0.0 (and the issue also happens on 1.9.23 for me).

All Mock* and *_injectMocks.kt files are generated for androidUnitTestDebug (which, if I understand it correctly is working as intended), but then they are linked to both the source set for androidUnitTestDebug and commonTest which is a warning in Kotlin 1.9.23 and unfortunately a crash in 2.0.0 (currently RC2).

There also seems to be an open issue at jetbrains which might or might not be linked:
https://youtrack.jetbrains.com/issue/KT-65426

It would be great if you could help me track this issue down (and especially tell me whether the 1.9.23 warning is intended/common)

@GoodSir42
Copy link
Author

just for tracing: The issue persists with Kotlin 2.0.0-RC3

@SalomonBrys
Copy link
Member

I've seen this.
I will address it ASAP, bit probably not within the next two weeks.

@GoodSir42
Copy link
Author

Thanks a lot for the response :) If you can point me into a rough direction I can also have a look and make a pull request

@jmrp-bsh
Copy link

this is also happening with me, only after migrating to kotlin 2.0.0

@SalomonBrys
Copy link
Member

I've opened #77 with a lot of information of why this is happening, and why I haven't found a solution yet.
Make sure to read it, and provide insight if you can.
I'm closing this in favor of #77.

@SalomonBrys SalomonBrys closed this as not planned Won't fix, can't repro, duplicate, stale May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants