Closed chkpnt closed 1 year ago
@chkpnt Are clean build cache yet?
If not, let's try:
./gradlew clean build
And also remove,
I recommend to use Vaadin version: 14.6.5 and Vaadin Gradle Plugin version: 0.14.6.0
We are facing the same issue. Not sure whether this happens with standard builds but definitely our composite build crashes with it. The reason is that Vaadin plugin leaves handles to some dependency build artifacts open and since daemon runs in the background it keeps those files locked forever. This also results in inability to run clean task on given projects. Overall there seems to be an issue with dependency handling as the vaadin tasks run even before dependency projects are built yet they try to reference build artifacts resulting in file not found exceptions (for jars in build/libs). Re-run works fine as artifacts are there from previous execution. Not sure if these 2 things are related but perhaps it will shed some light on the issue
UPDATE: what I wrote above was for 0.14.6.0 I noticed some commits which seemed to address some of the issues. With 0.14.7.5 it appears that the ordering is fixed.
Yeah, the Gradle daemon seems to be an issue some time. Since I've added org.gradle.daemon=false
to gradle.properties
, the build is much more reliable. (Vaadin 14 and 23)
Yup, please make sure to use 0.14.7.5 or higher which should close the files properly. Closing as fixed; please reopen if you are still able to reproduce the issue with 0.14.9.x.
Desktop (please complete the following information):
Describe the bug
./gradlew vaadinBuildFrontend
fails with "Unable to compute frontend dependencies", when the command has been previously run and the gradle daemon is used. This is similar to #81, but as I see noFileNotFoundException
but aZipException
in the stack trace, I'm filing a new issue.To Reproduce Steps to reproduce the behavior:
./gradlew vaadinBuildFrontend
./gradlew vaadinBuildFrontend
Expected behavior The second command shouldn't fail or better exit as UP-TO-DATE.
Additional context
Stacktrace
``` ... > Task :webui:vaadinPrepareFrontend > Task :webui:processResources > Task :webui:classes > Task :webui:vaadinBuildFrontend FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':webui:vaadinBuildFrontend'. > Unable to compute frontend dependencies * Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':webui:vaadinBuildFrontend'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$3(ExecuteActionsTaskExecuter.java:186) at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:268) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:184) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:173) at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:109) at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46) at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:62) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56) at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52) at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200) at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195) at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75) at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68) at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:62) at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$call$2(DefaultBuildOperationExecutor.java:76) at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.callWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:54) at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:76) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52) at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:41) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:411) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:398) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:391) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:377) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.lambda$run$0(DefaultPlanExecutor.java:127) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:191) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:182) at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:124) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56) Caused by: java.lang.IllegalStateException: Unable to compute frontend dependencies at com.vaadin.flow.server.frontend.scanner.FrontendDependencies.