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

Update kotlin to 1.4.20 #169

Merged
merged 2 commits into from Dec 1, 2020
Merged

Conversation

yigit
Copy link
Collaborator

@yigit yigit commented Nov 25, 2020

This PR updates kotlin base version to 1.4.20.

Visibilities has moved to DescriptorVisibilties.
JavaVisibilities has moved to JavaDescriptorVisibilities
Test configuration now requires a backend, I picked JVM
Updated intellij base version to 202.8194.7
Updated intellij gradle plugin to 0.6.4

One unexpected changes is that seems like testing prebuilt
now also requires mutes. I've added that jar as well.

Fixes: #168

This PR updates kotlin base version to 1.4.20.

Visibilities has moved to DescriptorVisibilties.
JavaVisibilities has moved to JavaDescriptorVisibilities
Test configuration now requires a backend, I picked JVM
Updated intellij base version to 202.8194.7
Updated intellij gradle plugin to 0.6.4

One unexpected changes is that seems like testing prebuilt
now also requires mutes. I've added that jar as well.

Fixes: google#168
Copy link
Collaborator

@neetopia neetopia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is my commit on updating to latest commit HEAD, it looks to be different, could be a further change on visibility related code.

@@ -1,7 +1,7 @@
# Copied from kotlinc
org.gradle.jvmargs=-Duser.country=US -Dkotlin.daemon.jvm.options=-Xmx2200m -Dfile.encoding=UTF-8

kotlinBaseVersion=1.4.10
intellijVersion=193.6494.35
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is necessary, I have a commit without this change but still works.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my tests were failing until i updated intellijVersion.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i tried reverting it but then tests fail with:

'void com.intellij.core.CoreApplicationEnvironment.registerExtensionPointAndExtensions(java.nio.file.Path, java.lang.String, com.intellij.openapi.extensions.ExtensionsArea)'
java.lang.NoSuchMethodError: 'void com.intellij.core.CoreApplicationEnvironment.registerExtensionPointAndExtensions(java.nio.file.Path, java.lang.String, com.intellij.openapi.extensions.ExtensionsArea)'
	at org.jetbrains.kotlin.cli.jvm.compiler.CoreApplicationEnvironmentCompatKt.registerExtensionPointAndExtensionsEx(coreApplicationEnvironmentCompat.kt:17)
	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment$Companion.registerApplicationExtensionPointsAndExtensionsFrom(KotlinCoreEnvironment.kt:537)
	

so your tests pass w/o this change?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, my change is without test enabled due to test-mutes module issue, then it makes sense to upgrade intellij version.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍
i added the test-mutes here to fix that, seems to be working fine.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i also tried breaking a test to ensure they are really run :)

@neetopia
Copy link
Collaborator

LGTM, I'll merge it before next release.

gradle.properties Outdated Show resolved Hide resolved
@neetopia neetopia merged commit ef09196 into google:master Dec 1, 2020
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

Successfully merging this pull request may close these issues.

upgrade to kotlin 1.4.20
3 participants