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

runDistributable fails in v1.2.0-beta01 #2329

Closed
GuilhE opened this issue Sep 17, 2022 · 3 comments · Fixed by #2438
Closed

runDistributable fails in v1.2.0-beta01 #2329

GuilhE opened this issue Sep 17, 2022 · 3 comments · Fixed by #2438
Assignees

Comments

@GuilhE
Copy link
Contributor

GuilhE commented Sep 17, 2022

➜ ./gradlew runDistributable
Configuration on demand is an incubating feature.
Type-safe project accessors is an incubating feature.

Task :desktopApp:createRuntimeImage FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem was found with the configuration of task ':desktopApp:createRuntimeImage' (type 'AbstractJLinkTask').

    • In plugin 'org.jetbrains.compose.ComposeCompilerKotlinSupportPlugin' type 'org.jetbrains.compose.desktop.application.tasks.AbstractJLinkTask' property 'javaRuntimePropertiesFile' specifies file '.../desktopApp/build/compose/tmp/checkRuntime/properties.bin' which doesn't exist.

      Reason: An input file was expected to be present but it doesn't exist.

      Possible solutions:

      1. Make sure the file exists before the task is called.
      2. Make sure that the task which produces the file is declared as an input.

      Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#input_file_does_not_exist for more details about this problem.

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1s
9 actionable tasks: 1 executed, 3 from cache, 5 up-to-date

Downgrading back to v1.2.0-alpha01-dev774 works.

@GuilhE GuilhE closed this as completed Oct 4, 2022
@GuilhE GuilhE reopened this Oct 5, 2022
@Thomas-Vos
Copy link
Contributor

Also running into this issue. My build very often fails with this error, but sometimes it works. Would be nice if this could be fixed.

@cotysaxman
Copy link

I ran into this with 1.2.0 stable. I was able to avoid it by running :checkRuntime and then :createRuntimeImage with the --no-build-cache flag. The error indicated that a required intermediate artifact wasn't being located in the build folder, so it seems to be a bug with the job's caching logic.

Supporting this theory, a clean build would eliminate the needed temporary file, but even after a clean build :checkRuntime was using the cached result.

@okushnikov
Copy link
Collaborator

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants