-
Notifications
You must be signed in to change notification settings - Fork 653
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
Compilation fails for Kotlin/Native targets with Kotlin 1.7 #3060
Comments
What suggests that this is test sources? Looks like main sources to me (albeit on mobile. Might miss something) |
You're correct - this is failing when it's compiling the main source set. I saw the first line of the stack trace contained a reference to the Kotest plugin and jumped to conclusions. Still looks like an issue with the Kotest plugin though, no? |
SpecIrGenerationExtension is a kotest thing, so maybe it's being
invoked incorrectly.
Are you using the latest gradle plugin for kotest too ?
…On Wed, 15 Jun 2022 at 06:30, Charles Korn ***@***.***> wrote:
What suggests that this is test sources? Looks like main sources to me
(albeit on mobile. Might miss something)
You're correct - this is failing when it's compiling the main source set.
I saw the first line of the stack trace contained a reference to the Kotest
plugin and jumped to conclusions.
Still looks like an issue with the Kotest plugin though, no?
—
Reply to this email directly, view it on GitHub
<#3060 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFVSGR3C5X7WVU4F2GXNODVPG5D7ANCNFSM5Y2V3UHA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Yep - 5.3.1 for both the plugin and Kotest itself. |
encountering this on a new MPP project, at kotlin 1.7.0. |
I raised a Youtrack issue for this. |
@charleskorn 5.3.2 out now with the fix. Wanna give it a try? 😊 |
I'm still seeing the issue with 5.3.2. Looking more closely at the original stack trace I posted, the issue seems to be twofold:
I can submit the same fix for the JS compiler plugin, but that doesn't explain why it's being invoked in the first place... |
This issue is still present in 5.3.2. In my case it fails for iOS targets and there's no JS target configured. |
When i execute the gradle :shared:compileKotlinIosArm64 command i'm getting same error too. and my versions like below const val gradlePlugin = "7.2.1" |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This should be resolved in 5.4.2 - could you please give that a try @kboyarshinov and @alkincakiralar1996? |
@charleskorn Yes, issue has been fixed. Thank you. |
Which version of Kotest are you using?
5.3.1
I've just upgraded to Kotlin 1.7 and Kotest 5.3.1, and I'm getting errors like these from Gradle when trying to run my tests (I'm not sure why it says I'm using Kotlin 1.7.20, I'm definitely using 1.7.0):
This happens both locally and on GitHub Actions (example).
The text was updated successfully, but these errors were encountered: