Zac Sweers
02/14/2023, 3:58 AMKotlinCompilationWithResources
is deprecated in 1.8.20-Beta, but there is no replacement API for retrieving the ProcessResources
task. Should I file a feature request, or is the expectation that this marker interface will go away but its current subtypes (KotlinJvmCompilation
and KotlinWithJavaCompilation
) will still expose processResourcesTaskName
?Franklin
02/20/2023, 2:22 AMAs a matter of coding style, context receivers are defined after annotations and before other modifiers on a separate line.https://github.com/Kotlin/KEEP/blob/master/proposals/context-receivers.md#detailed-design But when I try
class A
@Deprecated(message = "")
context(A)
fun Method() {}
It raises an error during compilation Expecting a top level declaration
. I have to swap the order around and declare context
first then the annotation. On Kotlin 1.8.0
Is it just me? should I raise this as a bug on Youtrack?bod
02/28/2023, 10:50 AMOleg Yukhnevich
03/02/2023, 12:30 PMtargetHierarchy
API is just super cool, thx! 🙂
But during my experiment here (https://github.com/whyoleg/ffi-kotlin/blob/52eb6a50d7b9e034fb8b09cc32e7e57a2e6ef68f/build-logic/src/main/kotlin/buildx-multiplatform.gradle.kts#L36) I found, that there is no wasm
support there - is it possible to add it in 1.8.20, or only in 1.9.0?Sebastian Sellmair [JB]
03/02/2023, 1:13 PMSebastian Sellmair [JB]
03/02/2023, 1:14 PMmbonnin
03/02/2023, 6:07 PM-RC
(anything >= 1.8.20-RC-243
) show Java 19 warnings (and fail with allWarningsAsErrors
). My JAVA_HOME is 19 but I'm supposed to compile with a 17 toolchain and target 1.8
(failed CI run). Does that ring a bell to anyone?Kathrin Petrova
03/09/2023, 9:04 AMMargarita Bobova
03/23/2023, 6:16 PMZac Sweers
05/23/2023, 4:37 PMinternal
in 1.9.0? Is there a different API that should be used for compiler plugins?
e: file:///Users/zacsweers/dev/slack/oss/circuit/build.gradle.kts:23:43: Cannot access 'NATIVE_COMPILER_PLUGIN_CLASSPATH_CONFIGURATION_NAME': it is internal in 'org.jetbrains.kotlin.gradle.plugin'
e: file:///Users/zacsweers/dev/slack/oss/circuit/build.gradle.kts:24:43: Cannot access 'PLUGIN_CLASSPATH_CONFIGURATION_NAME': it is internal in 'org.jetbrains.kotlin.gradle.plugin'
e: file:///Users/zacsweers/dev/slack/oss/circuit/build.gradle.kts:179:13: Cannot access 'PLUGIN_CLASSPATH_CONFIGURATION_NAME': it is internal in 'org.jetbrains.kotlin.gradle.plugin'
e: file:///Users/zacsweers/dev/slack/oss/circuit/build.gradle.kts:180:13: Cannot access 'NATIVE_COMPILER_PLUGIN_CLASSPATH_CONFIGURATION_NAME': it is internal in 'org.jetbrains.kotlin.gradle.plugin'
efemoney
05/24/2023, 1:59 AMasdf asdf
05/24/2023, 3:08 AMPascalCase
for constants instead of SCREAMING_CAMEL
Slack ConversationAndrey Tabakov
05/24/2023, 10:15 AMCannot invoke "kotlin.Lazy.getValue()" because "<local1>" is null
code:
@JsExport @OptIn(ExperimentalJsExport::class) public val constDataInMyApp: MyDataClass = MyDataClass(emptyArray())
data class AnotherDataClass(val name: String) {
public val path: MyDataClass by lazy { constDataInMyApp.someFunc(this) }
}
It works well on 1.8.21Kathrin Petrova
05/24/2023, 1:19 PMtapchicoma
05/24/2023, 2:17 PMkotlin.compiler.keepIncrementalCompilationCachesInMemory
(additionally to introduced in 1.8.20 kotlin.compiler.preciseCompilationResultsBackup
) (issue)
• try K2 via kotlin.experimental.tryK2
(issue)wasyl
05/24/2023, 2:29 PMkotlin.experimental.tryK2
the idea is that if I turn it on, then Kotlin will automatically figure out which compilation tasks can use K2 and which can't? So if some modules use Kapt then K2 will be skipped there (I think Kapt is still not supported in K2?), but for other modules K2 will be used?Oliver.O
05/24/2023, 9:48 PMMargarita Bobova
05/25/2023, 5:52 PMJosh Friend
05/25/2023, 6:46 PMpublic
modifiers to a module using explicitApi()
after updating to 1.9 beta, The classes were public before but had no modifiers, which seems like a bug in previous versions? I've not used this mode before so I'm not sure, but the docs seem to indicate this should have been required before:
Visibility modifiers are required for declarations if the default visibility exposes them to the public API
Zac Sweers
05/25/2023, 7:17 PMOliver.O
05/25/2023, 8:02 PMZac Sweers
05/25/2023, 10:10 PMsyncOptionsAsConvention
impl in KGP? We set some compiler options like javaParameters
and disallow changes after we set them, but in 1.9.0-Beta we're surprised to see that KGP is setting these values again after we've set them (example in 🧵)altavir
05/26/2023, 12:28 PMZac Sweers
05/28/2023, 3:33 PMandroid
being replaced by androidTarget
, but strangely it seems Gradle kotlin DSL only sees Kotlin 1.8.21's plugin sources. At runtime it obviously appears to be 1.9.0-Beta, but I’m unable to compile against 1.9.0-Beta APIs because of the wrong indexing. Should I file this on youtrack or would this be a gradle issue?
Repro - https://github.com/slackhq/circuit/pull/643
w: Please use `androidTarget` function instead of `android` to configure android target inside `kotlin { }` block.
See the details here: <https://kotl.in/android-target-dsl>
Zac Sweers
05/28/2023, 8:22 PMZac Sweers
05/30/2023, 2:56 AMSimon Marquis
05/30/2023, 8:45 AM1.9.0-Beta-1.0.11
and Compose compiler 1.4.7-dev-k1.9.0-Beta-bb7dc8b44eb
), I had to manually register sourceSets for protobuf generated code otherwise Hilt would fail to compile the code because it could not find the generated classes on its classpath (logs). Could this be linked to KT-54468 ?
androidComponents.beforeVariants {
android.sourceSets.register(it.name) {
java.srcDir(buildDir.resolve("generated/source/proto/${it.name}/java"))
kotlin.srcDir(buildDir.resolve("generated/source/proto/${it.name}/kotlin"))
}
}
Margarita Bobova
05/30/2023, 3:01 PMkotlinx-metadata-jvm:0.6.1
is available on Maven Central: https://repo1.maven.org/maven2/org/jetbrains/kotlinx/kotlinx-metadata-jvm/0.6.1/bod
05/31/2023, 7:51 AMdisableGranularWorkspaces
(introduced here) no longer exists? Looks like that's why I get asked to execute kotlinUpgradeYarnLock
several times, depending on which module I've run my tests last.altavir
06/02/2023, 11:03 AMnpm
dependencies are not resolved:
> Could not resolve all dependencies for configuration ':visionforge-threejs:npm'.
The project declares repositories, effectively ignoring the repositories you have declared in the settings.
You can figure out how project repositories are declared by configuring your build to fail on project repositories.
See <https://docs.gradle.org/8.1.1/userguide/declaring_repositories.html#sub:fail_build_on_project_repositories> for details.
> Could not find three:0.143.0:.
Required by:
project :visionforge-threejs
> Could not find three-csg-ts:3.1.10:.
Required by:
project :visionforge-threejs
> Could not find three.meshline:1.4.0:.
Required by:
project :visionforge-threejs