-
Notifications
You must be signed in to change notification settings - Fork 62
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
Support Kotlin 1.9.0 #388
Support Kotlin 1.9.0 #388
Conversation
@@ -36,8 +36,9 @@ abstract class AbstractKotlinCompilation<A : CommonCompilerArguments> internal c | |||
/** Working directory for the compilation */ | |||
var workingDir: File by default { | |||
val path = Files.createTempDirectory("Kotlin-Compilation") | |||
log("Created temporary working directory at ${path.toAbsolutePath()}") | |||
return@default path.toFile() | |||
val canonicalFile = path.toFile().canonicalFile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The JS compiler calls .canonicalFile internally - at least on MacOS that may be different to the absolute path (/private/var/…
vs /var/…
), which made the tests fail.
@@ -91,7 +95,7 @@ class KotlinJsCompilation : AbstractKotlinCompilation<K2JSCompilerArguments>() { | |||
args.irOnly = irOnly | |||
args.irModuleName = irModuleName | |||
args.generateDts = generateDts | |||
args.useDeprecatedLegacyCompiler = useDeprecatedLegacyCompiler | |||
args.forceDeprecatedLegacyCompilerUsage = useDeprecatedLegacyCompiler |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
useDeprecatedLegacyCompiler
was removed here
@@ -78,27 +78,6 @@ class KotlinJsCompilationTests { | |||
assertThat(jsFile.readText()).contains("function KSource_0() {") | |||
} | |||
|
|||
@Test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this PR can we remove the call in |
@apatrida I've just pushed a commit to remove |
@@ -71,6 +71,7 @@ class KotlinCompilation : AbstractKotlinCompilation<K2JVMCompilerArguments>() { | |||
var javaParameters: Boolean = false | |||
|
|||
/** Use the IR backend */ | |||
@Deprecated("Since Kotlin 1.9.20 this option is no longer supported by the compiler. It has no effect.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed in this commit.
A follow-up to #380 (and closes #379).
Let's see if I have better luck with Windows tests.