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

Gradle 8 support #629

Closed
wakingrufus opened this issue Feb 13, 2023 · 5 comments · Fixed by #634
Closed

Gradle 8 support #629

wakingrufus opened this issue Feb 13, 2023 · 5 comments · Fixed by #634

Comments

@wakingrufus
Copy link
Collaborator

Gradle 8 is now released: https://docs.gradle.org/8.0/release-notes.html
let's support it

@dekar91
Copy link

dekar91 commented Feb 17, 2023

Currently ktlintFormat fails on Gradle 8

@sebek64
Copy link

sebek64 commented Feb 21, 2023

In particular, ktlintFormat fails with this exception

org.gradle.api.tasks.TaskExecutionException: Execution failed for task 'runKtlintFormatOverMainSourceSet'.                                                                                                                                                                                                                                                                                                                    
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:149)                                                                                                                                                                                                                                                                                               
        at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282)                                                                                                                                                                                                                                                                                                                                                              
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:147)                                                                                                                                                                                                                                                                                                        
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:135)                                                                                                                                                                                                                                                                                                               
        at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)                                                                                                                                                                                                                                                                                                        
        at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)                                                                                                                                                                                                                                                                                                    
        at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)                                                                                                                                                                                                                                                                                                          
        at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:74)                                                                                                                                                                                                                                                                                                                        
        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:                                                                                                                                                                                                                                                                                             204)                                                                                                                                                        
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:                                                                                                                                                                                                                                                                                             199)                                                                                                                                                        
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)                                                                                                                                                                                                                                                                                                                     
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)                                                                                                                                                                                                                                                                                                                     
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)                                                                                                                                                                                                                                                                                                                      
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)                                                                                                                                                                                                                                                                                                                       
        at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)                                                                                                                                                                                                                                                                                                                          
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)                                                                                                                                                                                                                                                                                                                      
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)                                                                                                                                                                                                                                                                                                                      
        at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:42)                                                                                                                                                                                                                                                                                                                                        
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:338)                                                                                                                                                                                                                                                                                                
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:325)                                                                                                                                                                                                                                                                                                
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.jav                                                                                                                                                                                                                                                                                             a:318)                                                                                                                                                              
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.jav                                                                                                                                                                                                                                                                                             a:304)                                                                                                                                                              
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:463)                                                                                                                                                                                                                                                                                                                            
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:380)                                                                                                                                                                                                                                                                                                                                
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)                                                                                                                                                                                                                                                                                                                        
        at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:49)                                                                                                                                                                                                                                                                                                                                         
Caused by: org.gradle.workers.internal.DefaultWorkerExecutor$WorkExecutionException: A failure occurred while executing org.jlleitschuh.grad                                                                                                                                                                                                                                                                                             le.ktlint.worker.KtLintWorkAction                                                                                                                                                                                                                                               
        at org.gradle.workers.internal.DefaultWorkerExecutor$WorkItemExecution.waitForCompletion(DefaultWorkerExecutor.java:283)                                                                                                                                                                                                                                                                                                         
        at org.gradle.internal.work.DefaultAsyncWorkTracker.lambda$waitForItemsAndGatherFailures$2(DefaultAsyncWorkTracker.java:130)                                                                                                                                                                                                                                                                                                     
        at org.gradle.internal.Factories$1.create(Factories.java:31)                                                                                                                                                                                                                                                                                                                                                        
        at org.gradle.internal.work.DefaultWorkerLeaseService.withoutLocks(DefaultWorkerLeaseService.java:321)                                                                                                                                                                                                                                                                                                                           
        at org.gradle.internal.work.DefaultWorkerLeaseService.withoutLocks(DefaultWorkerLeaseService.java:304)                                                                                                                                                                                                                                                                                                                           
        at org.gradle.internal.work.DefaultWorkerLeaseService.withoutLock(DefaultWorkerLeaseService.java:309)                                                                                                                                                                                                                                                                                                                            
        at org.gradle.internal.work.DefaultAsyncWorkTracker.waitForItemsAndGatherFailures(DefaultAsyncWorkTracker.java:126)                                                                                                                                                                                                                                                                                                              
        at org.gradle.internal.work.DefaultAsyncWorkTracker.waitForItemsAndGatherFailures(DefaultAsyncWorkTracker.java:92)                                                                                                                                                                                                                                                                                                               
        at org.gradle.internal.work.DefaultAsyncWorkTracker.waitForAll(DefaultAsyncWorkTracker.java:78)                                                                                                                                                                                                                                                                                                                                  
        at org.gradle.internal.work.DefaultAsyncWorkTracker.waitForCompletion(DefaultAsyncWorkTracker.java:66)                                                                                                                                                                                                                                                                                                                           
        at org.gradle.api.internal.tasks.execution.TaskExecution$3.run(TaskExecution.java:250)                                                                                                                                                                                                                                                                                                                                           
        at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)                                                                                                                                                                                                                                                                                                                     
        at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)                                                                                                                                                                                                                                                                                                                     
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)                                                                                                                                                                                                                                                                                                                     
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)                                                                                                                                                                                                                                                                                                                     
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)                                                                                                                                                                                                                                                                                                                      
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)                                                                                                                                                                                                                                                                                                                       
        at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)                                                                                                                                                                                                                                                                                                                           
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)                                                                                                                                                                                                                                                                                                                       
        at org.gradle.api.internal.tasks.execution.TaskExecution.executeAction(TaskExecution.java:227)                                                                                                                                                                                                                                                                                                                                   
        at org.gradle.api.internal.tasks.execution.TaskExecution.executeActions(TaskExecution.java:210)                                                                                                                                                                                                                                                                                                                                  
        at org.gradle.api.internal.tasks.execution.TaskExecution.executeWithPreviousOutputFiles(TaskExecution.java:193)                                                                                                                                                                                                                                                                                                                  
        at org.gradle.api.internal.tasks.execution.TaskExecution.execute(TaskExecution.java:166)                                                                                                                                                                                                                                                                                                                                         
        at org.gradle.internal.execution.steps.ExecuteStep.executeInternal(ExecuteStep.java:93)                                                                                                                                                                                                                                                                                                                                          
        at org.gradle.internal.execution.steps.ExecuteStep.access$000(ExecuteStep.java:44)                                                                                                                                                                                                                                                                                                                                               
        at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:57)                                                                                                                                                                                                                                                                                                                                                   
        at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:54)                                                                                                                                                                                                                                                                                                                                                   
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:                                                                                                                                                                                                                                                                                             204)                                                                                                                                                        
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:                                                                                                                                                                                                                                                                                             199)                                                                                                                                                        
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)                                                                                                                                                                                                                                                                                                                     
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)                                                                                                                                                                                                                                                                                                                     
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)                                                                                                                                                                                                                                                                                                                      
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)                                                                                                                                                                                                                                                                                                                       
        at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)                                                                                                                                                                                                                                                                                                                          
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)                                                                                                                                                                                                                                                                                                                      
        at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:54)                                                                                                                                                                                                                                                                                                                                                  
        at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:44)                                                                                                                                                                                                                                                                                                                                                  
        at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:67)                                                                                                                                                                                                                                                                                                                      
        at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:37)                                                                                                                                                                                                                                                                                                                      
        at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:41)                                                                                                                                                                                                                                                                                                                                  
        at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:74)                                                                                                                                                                                                                                                                                                                                    
        at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:55)                                                                                                                                                                                                                                                                                                                                                  
        at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:50)                                                                                                                                                                                                                                                                                                                                      
        at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:28)                                                                                                                                                                                                                                                                                                                                      
        at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.executeDelegateBroadcastingChanges(CaptureStateAfterExecutionS                                                                                                                                                                                                                                                                                             tep.java:100)                                                                                                                                                                                   
        at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.execute(CaptureStateAfterExecutionStep.java:72)                                                                                                                                                                                                                                                                                                            
        at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.execute(CaptureStateAfterExecutionStep.java:50)                                                                                                                                                                                                                                                                                                            
        at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:40)                                                                                                                                                                                                                                                                                                                          
        at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:29)                                                                                                                                                                                                                                                                                                                          
        at org.gradle.internal.execution.steps.BuildCacheStep.executeWithoutCache(BuildCacheStep.java:166)                                                                                                                                                                                                                                                                                                                               
        at org.gradle.internal.execution.steps.BuildCacheStep.lambda$execute$1(BuildCacheStep.java:70)                                                                                                                                                                                                                                                                                                                                   
        at org.gradle.internal.Either$Right.fold(Either.java:175)                                                                                                                                                                                                                                                                                                                                               
        at org.gradle.internal.execution.caching.CachingState.fold(CachingState.java:59)                                                                                                                                                                                                                                                                                                                                                 
        at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:68)                                                                                                                                                                                                                                                                                                                                            
        at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:46)                                                                                                                                                                                                                                                                                                                                            
        at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:36)                                                                                                                                                                                                                                                                                                                          
        at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:25)                                                                                                                                                                                                                                                                                                                          
        at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:36)                                                                                                                                                                                                                                                                                                                                      
        at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:22)                                                                                                                                                                                                                                                                                                                                      
        at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:91)                                                                                                                                                                                                                                                                                                                                 
        at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$2(SkipUpToDateStep.java:55)                                                                                                                                                                                                                                                                                                                               
        at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:55)                                                                                                                                                                                                                                                                                                                                        
        at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:37)                                                                                                                                                                                                                                                                                                                                        
        at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:65)                                                                                                                                                                                                                                                                                                                                    
        at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:36)                                                                                                                                                                                                                                                                                                                                    
        at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:37)                                                                                                                                                                                                                                                                                             
        at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:27)                                                
        at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:76)                                                                                                                                                                                                                                                                                                                          
        at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:37)                                                                                                                                                                                                                                                                                                                          
        at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:94)                                                                                                                                                                                                                                                                                                                                                
        at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:49)                                                                                                                                                                                                                                                                                                                                                
        at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:71)                                                                                                                                                                                                                                                                                                          
        at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:45)                                                                                                                                                                                                                                                                                                          
        at org.gradle.internal.execution.steps.SkipEmptyWorkStep.executeWithNonEmptySources(SkipEmptyWorkStep.java:177)                                                                                                                                                                                                                                                                                                                  
        at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:86)                                                                                                                                                                                                                                                                                                                                      
        at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:53)                                                                                                                                                                                                                                                                                                                                      
        at org.gradle.internal.execution.steps.RemoveUntrackedExecutionStateStep.execute(RemoveUntrackedExecutionStateStep.java:32)                                                                                                                                                                                                                                                                                                      
        at org.gradle.internal.execution.steps.RemoveUntrackedExecutionStateStep.execute(RemoveUntrackedExecutionStateStep.java:21)                                                                                                                                                                                                                                                                                                      
        at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:38)                                                                                                                                                                                                                                                                                               
        at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:36)                                                                                                                                                                                                                                                                                                            
        at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:23)                                                                                                                                                                                                                                                                                                            
        at org.gradle.internal.execution.steps.CleanupStaleOutputsStep.execute(CleanupStaleOutputsStep.java:75)                                                                                                                                                                                                                                                                                                                          
        at org.gradle.internal.execution.steps.CleanupStaleOutputsStep.execute(CleanupStaleOutputsStep.java:41)                                                                                                                                                                                                                                                                                                                          
        at org.gradle.internal.execution.steps.AssignWorkspaceStep.lambda$execute$0(AssignWorkspaceStep.java:32)                                                                                                                                                                                                                                                                                                                         
        at org.gradle.api.internal.tasks.execution.TaskExecution$4.withWorkspace(TaskExecution.java:287)                                                                                                                                                                                                                                                                                                                                 
        at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:30)                                                                                                                                                                                                                                                                                                                                  
        at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:21)                                                                                                                                                                                                                                                                                                                                  
        at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:37)                                                                                                                                                                                                                                                                                                                                      
        at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:27)                                                                                                                                                                                                                                                                                                                                      
        at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:42)                                                                                                                                                                                                                                                                                                                                                
        at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:31)                                                                                                                                                                                                                                                                                                                                                
        at org.gradle.internal.execution.impl.DefaultExecutionEngine$1.execute(DefaultExecutionEngine.java:64)                                                                                                                                                                                                                                                                                                                           
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:146)                                                                                                                                                                                                                                                                                                        
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:135)                                                                                                                                                                                                                                                                                                               
        at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)                                                                                                                                                                                                                                                                                                        
        at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)                                                                                                                                                                                                                                                                                                    
        at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)                                                                                                                                                                                                                                                                                                          
        at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:74)                                                                                                                                                                                                                                                                                                                        
        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:                                                                                                                                                                                                                                                                                             204)                                                                                                                                                        
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:                                                                                                                                                                                                                                                                                             199)                                                                                                                                                        
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)                                                                                                                                                                                                                                                                                                                     
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)                                                                                                                                                                                                                                                                                                                     
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)                                                                                                                                                                                                                                                                                                                      
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)                                                                                                                                                                                                                                                                                                                       
        at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)                                                                                                                                                                                                                                                                                                                          
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)                                                                                                                                                                                                                                                                                                                      
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)                                                                                                                                                                                                                                                                                                                      
        at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:42)                                                                                                                                                                                                                                                                                                                                        
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:338)                                                                                                                                                                                                                                                                                                
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:325)                                                                                                                                                                                                                                                                                                
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.jav                                                                                                                                                                                                                                                                                             a:318)                                                                                                                                                              
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.jav                                                                                                                                                                                                                                                                                             a:304)                                                                                                                                                              
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:463)                                                                                                                                                                                                                                                                                                                            
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:380)                                                                                                                                                                                                                                                                                                                                
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)                                                                                                                                                                                                                                                                                                                        
        at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:49)                                                                                                                                                                                                                                                                                                                                         
Caused by: java.lang.ExceptionInInitializerError                                                                                                                                                                                                                                                                                            
        at org.jetbrains.kotlin.com.intellij.util.exception.FrequentErrorLogger.report(FrequentErrorLogger.java:47)                                                                                                                                                                                                                                                                                                                      
        at org.jetbrains.kotlin.com.intellij.util.exception.FrequentErrorLogger.info(FrequentErrorLogger.java:43)                                                                                                                                                                                                                                                                                                                        
        at org.jetbrains.kotlin.com.intellij.psi.impl.DebugUtil.handleUnspecifiedTrace(DebugUtil.java:628)                                                                                                                                                                                                                                                                                                                               
        at org.jetbrains.kotlin.com.intellij.psi.impl.DebugUtil.currentInvalidationTrace(DebugUtil.java:620)                                                                                                                                                                                                                                                                                                                             
        at org.jetbrains.kotlin.com.intellij.psi.impl.DebugUtil.calcInvalidationTrace(DebugUtil.java:614)                                                                                                                                                                                                                                                                                                                                
        at org.jetbrains.kotlin.com.intellij.psi.impl.DebugUtil.onInvalidated(DebugUtil.java:585)                                                                                                                                                                                                                                                                                                                                        
        at org.jetbrains.kotlin.com.intellij.psi.impl.source.tree.TreeElement.onInvalidated(TreeElement.java:226)                                                                                                                                                                                                                                                                                                                        
        at org.jetbrains.kotlin.com.intellij.psi.impl.source.tree.TreeElement.rawRemoveUpToWithoutNotifications(TreeElement.java:388)                                                                                                                                                                                                                                                                                                    
        at org.jetbrains.kotlin.com.intellij.psi.impl.source.tree.TreeElement.rawRemoveUpTo(TreeElement.java:342)                                                                                                                                                                                                                                                                                                                        
        at org.jetbrains.kotlin.com.intellij.psi.impl.source.tree.CompositeElement.remove(CompositeElement.java:775)                                                                                                                                                                                                                                                                                                                     
        at org.jetbrains.kotlin.com.intellij.psi.impl.source.tree.CompositeElement.lambda$removeChildrenInner$4(CompositeElement.java:797)                                                                                                                                                                                                                                                                                               
        at org.jetbrains.kotlin.com.intellij.psi.impl.source.tree.ChangeUtil$1.runInner(ChangeUtil.java:147)                                                                                                                                                                                                                                                                                                                             
        at org.jetbrains.kotlin.com.intellij.pom.impl.PomTransactionBase.run(PomTransactionBase.java:28)                                                                                                                                                                                                                                                                                                                                 
        at com.pinterest.ktlint.core.internal.FormatPomModel.runTransaction(KotlinPsiFileFactory.kt:127)                                                                                                                                                                                                                                                                                                                                 
        at org.jetbrains.kotlin.com.intellij.psi.impl.source.tree.ChangeUtil.prepareAndRunChangeAction(ChangeUtil.java:142)                                                                                                                                                                                                                                                                                                              
        at org.jetbrains.kotlin.com.intellij.psi.impl.source.tree.CompositeElement.removeChildrenInner(CompositeElement.java:796)                                                                                                                                                                                                                                                                                                        
        at org.jetbrains.kotlin.com.intellij.psi.impl.source.tree.CompositeElement.addChild(CompositeElement.java:577)                                                                                                                                                                                                                                                                                                                   
        at org.jetbrains.kotlin.com.intellij.psi.impl.source.tree.CompositeElement.addChildren(CompositeElement.java:673)                                                                                                                                                                                                                                                                                                                
        at org.jetbrains.kotlin.com.intellij.psi.impl.source.codeStyle.CodeEditUtil.addChildren(CodeEditUtil.java:53)                                                                                                                                                                                                                                                                                                                    
        at org.jetbrains.kotlin.com.intellij.extapi.psi.ASTDelegatePsiElement.addInternal(ASTDelegatePsiElement.java:306)                                                                                                                                                                                                                                                                                                                
        at org.jetbrains.kotlin.com.intellij.extapi.psi.ASTDelegatePsiElement.addAfter(ASTDelegatePsiElement.java:293)                                                                                                                                                                                                                                                                                                                   
        at com.pinterest.ktlint.ruleset.standard.TrailingCommaOnCallSiteRule.reportAndCorrectTrailingCommaNodeBefore(TrailingCommaOnCallSite                                                                                                                                                                                                                                                                                             Rule.kt:175)                                                                                                                                                                                
        at com.pinterest.ktlint.ruleset.standard.TrailingCommaOnCallSiteRule.visitValueList(TrailingCommaOnCallSiteRule.kt:117)                                                                                                                                                                                                                                                                                                          
        at com.pinterest.ktlint.ruleset.standard.TrailingCommaOnCallSiteRule.beforeVisitChildNodes(TrailingCommaOnCallSiteRule.kt:70)                                                                                                                                                                                                                                                                                                    
        at com.pinterest.ktlint.core.KtLint.executeRuleOnNodeRecursively(KtLint.kt:209)                                                                                                                                                                                                                                                                                                                                                  
        at com.pinterest.ktlint.core.KtLint.executeRuleOnNodeRecursively(KtLint.kt:219)                                                                                                                                                                                                                                                                                                                                                  
        at com.pinterest.ktlint.core.KtLint.executeRuleOnNodeRecursively(KtLint.kt:219)                                                                                                                                                                                                                                                                                                                                                  
        at com.pinterest.ktlint.core.KtLint.executeRuleOnNodeRecursively(KtLint.kt:219)                                                                                                                                                                                                                                                                                                                                                  
        at com.pinterest.ktlint.core.KtLint.executeRuleOnNodeRecursively(KtLint.kt:219)                                                                                                                                                                                                                                                                                                                                                  
        at com.pinterest.ktlint.core.KtLint.executeRuleOnNodeRecursively(KtLint.kt:219)                                                                                                                                                                                                                                                                                                                                                  
        at com.pinterest.ktlint.core.KtLint.executeRuleOnNodeRecursively(KtLint.kt:219)                                                                                                                                                                                                                                                                                                                                                  
        at com.pinterest.ktlint.core.KtLint.executeRuleOnNodeRecursively(KtLint.kt:219)                                                                                                                                                                                                                                                                                                                                                  
        at com.pinterest.ktlint.core.KtLint.executeRuleOnNodeRecursively(KtLint.kt:219)                                                                                                                                                                                                                                                                                                                                                  
        at com.pinterest.ktlint.core.KtLint.executeRuleOnNodeRecursively(KtLint.kt:219)                                                                                                                                                                                                                                                                                                                                                  
        at com.pinterest.ktlint.core.KtLint.executeRuleOnNodeRecursively(KtLint.kt:219)                                                                                                                                                                                                                                                                                                                                                  
        at com.pinterest.ktlint.core.KtLint.executeRule(KtLint.kt:195)                                                                                                                                                                                                                                                                                                                                                              
        at com.pinterest.ktlint.core.KtLint.access$executeRule(KtLint.kt:30)                                                                                                                                                                                                                                                                                                                                                             
        at com.pinterest.ktlint.core.KtLint$format$1.invoke(KtLint.kt:256)                                                                                                                                                                                                                                                                                                                                                               
        at com.pinterest.ktlint.core.KtLint$format$1.invoke(KtLint.kt:255)                                                                                                                                                                                                                                                                                                                                                               
        at com.pinterest.ktlint.core.internal.VisitorProvider$visitor$6.invoke(VisitorProvider.kt:80)                                                                                                                                                                                                                                                                                                                                    
        at com.pinterest.ktlint.core.internal.VisitorProvider$visitor$6.invoke(VisitorProvider.kt:78)                                          
        at com.pinterest.ktlint.core.KtLint.format(KtLint.kt:255)                                                                                                                                                                                                                                                                                                                                               
        at org.jlleitschuh.gradle.ktlint.worker.ExperimentalParamsProviderInvocation.invokeFormat(KtLintInvocation.kt:238)                                                                                                                                                                                                                                                                                                               
        at org.jlleitschuh.gradle.ktlint.worker.KtLintWorkAction.execute(KtLintWorkAction.kt:98)                                                                                                                                                                                                                                                                                                                                         
        at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:63)                                                                                                                                                                                                                                                                                                                                          
        at org.gradle.workers.internal.AbstractClassLoaderWorker$1.create(AbstractClassLoaderWorker.java:49)                                                                                                                                                                                                                                                                                                                             
        at org.gradle.workers.internal.AbstractClassLoaderWorker$1.create(AbstractClassLoaderWorker.java:43)
        at org.gradle.internal.classloader.ClassLoaderUtils.executeInClassloader(ClassLoaderUtils.java:100)
        at org.gradle.workers.internal.AbstractClassLoaderWorker.executeInClassLoader(AbstractClassLoaderWorker.java:43)
        at org.gradle.workers.internal.IsolatedClassloaderWorker.run(IsolatedClassloaderWorker.java:49)
        at org.gradle.workers.internal.IsolatedClassloaderWorker.run(IsolatedClassloaderWorker.java:30)
        at org.gradle.workers.internal.WorkerDaemonServer.run(WorkerDaemonServer.java:87)
        at org.gradle.workers.internal.WorkerDaemonServer.run(WorkerDaemonServer.java:56)
        at org.gradle.process.internal.worker.request.WorkerAction$1.call(WorkerAction.java:138)
        at org.gradle.process.internal.worker.child.WorkerLogEventListener.withWorkerLoggingProtocol(WorkerLogEventListener.java:41)
        at org.gradle.process.internal.worker.request.WorkerAction.run(WorkerAction.java:135)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
        at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
        at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:182)
        at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:164)
        at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:414)
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
        at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:49)
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private transient java.lang.Object java.lang.Throwable.backtrace accessible: module java.base does not "opens java.lang" to unnamed module @3321ad92
        at org.jetbrains.kotlin.com.intellij.util.ReflectionUtil.findFieldInHierarchy(ReflectionUtil.java:154)
        at org.jetbrains.kotlin.com.intellij.util.ReflectionUtil.getDeclaredField(ReflectionUtil.java:279)
        at org.jetbrains.kotlin.com.intellij.openapi.util.objectTree.ThrowableInterner.<clinit>(ThrowableInterner.java:88)
        ... 66 more

which is quite similar to what's been reported in pinterest/ktlint#1391

@IvanPizhenko
Copy link

IvanPizhenko commented Feb 28, 2023

Hi, I am facing the same issue. Is there a chance to have PR #634 with fix merged and new version released soon?

@ArvindEnvoy
Copy link

Is there any way to get around this issue now? Can I pass those JVM args to the ktlintFormat task manually?

@JLLeitschuh
Copy link
Owner

PR merged, hopefully we will ship a release today

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

Successfully merging a pull request may close this issue.

6 participants