Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
[ID: 558956]
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
1. There is a project
2. Add following code to `webApp/build.gradle.kts`.
```
val linkSyncTask = tasks.named<IncrementalSyncTask>("wasmJsDevelopmentExecutableCompileSync")
tasks.named<KotlinWebpack>("jsBrowserDevelopmentRun") {
inputFilesDirectory.fileProvider(linkSyncTask.flatMap { it.destinationDirectory })
}
```
This code was in Kotlin Gradle plugin, but was changed because of this bug onto:
```
inputFilesDirectory = task.project.objects.directoryProperty().fileProvider(
task.project.provider { linkSyncTask.get().destinationDirectory.get() },
).also { it.finalizeValueOnRead() }
```
3. Run `jsBrowserDevelopmentRun` or `wasmJsBrowserDevelopmentRun`
4. Error `Querying the mapped value of map(task ':webApp:wasmJsBrowserDevelopmentRun' property 'inputFilesDirectory') before task ':webApp:wasmJsDevelopmentExecutableCompileSync' has completed is not supported` occured
It works via Command Line, so `./gradlew :webApp:wasmJsBrowserDevelopmentRun` works well, so it is the problem on AC side
As I understand AC reads lazy properties eagerly on configuration phase, and if property depends on some task output, it cannot be executed on configuration phase.
Android Studio Ladybug Feature Drop | 2024.2.2
Build #AI-242.23726.103.2422.12816248, built on December 18, 2024
Runtime version: 21.0.4+-12422083-b607.1 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.lwawt.macosx.LWCToolkit
macOS 15.2
This IDE is managed by JetBrains via JetBrains IDE Services.<br>JetBrains IDE Services version: 2024.4.2.9099-ij242, <a href="
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 4096M
Cores: 16
Metal Rendering is ON
Registry:
ide.experimental.ui=true
ide.show.plugin.suggestions.on.open=false
i18n.locale=
Non-Bundled Plugins:
org.jetbrains.toolbox-enterprise-client (2024.4.2.9099-ij242)
Version of Gradle Plugin: 8.5.0
Version of Gradle: 8.7