Run the NativeCmd integration test with and without the configuration cache #1958
ci.yml
on: pull_request
spotlessCheck assemble testClasses
1m 10s
Matrix: build
Annotations
7 errors and 12 warnings
NativeCmdIntegrationTest$NativeCmdWithConfigCacheTest.nativeCmd():
NativeCmdIntegrationTest$NativeCmdWithConfigCacheTest#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-13900532526335958862 with arguments [spotlessApply, --stacktrace]
Output:
Configuration cache is an incubating feature.
Calculating task graph as no configuration cache is available for tasks: spotlessApply
FAILURE: Build failed with an exception.
* Where:
Settings file '/tmp/junit-13900532526335958862/settings.gradle' line: 1
* What went wrong:
A problem occurred evaluating settings 'junit-13900532526335958862'.
> There is no feature named STABLE_CONFIGURATION_CACHE
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
org.gradle.api.GradleScriptException: A problem occurred evaluating settings 'junit-13900532526335958862'.
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:93)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.lambda$apply$0(DefaultScriptPluginFactory.java:133)
at org.gradle.configuration.DefaultScriptTarget.addConfiguration(DefaultScriptTarget.java:74)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:136)
at org.gradle.configuration.BuildOperationScriptPlugin$1.run(BuildOperationScriptPlugin.java:65)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:395)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:387)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:157)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:242)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:150)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:84)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.configuration.BuildOperationScriptPlugin.lambda$apply$0(BuildOperationScriptPlugin.java:62)
at org.gradle.configuration.internal.DefaultUserCodeApplicationContext.apply(DefaultUserCodeApplicationContext.java:43)
at org.gradle.configuration.BuildOperationScriptPlugin.apply(BuildOperationScriptPlugin.java:62)
at org.gradle.initialization.ScriptEvaluatingSettingsProcessor.applySettingsScript(ScriptEvaluatingSettingsProcessor.java:74)
at org.gradle.initialization.ScriptEvaluatingSettingsProcessor.process(ScriptEvaluatingSettingsProcessor.java:67)
at org.gradle.initialization.SettingsEvaluatedCallbackFiringSettingsProcessor.process(SettingsEvaluatedCallbackFiringSettingsProcessor.java:34)
at org.gradle.initialization.RootBuildCacheControllerSettingsProcessor.process(RootBuildCacheControllerSettingsProcessor.java:36)
at org.gradle.initialization.BuildOperationSettingsProcessor$2.call(BuildOperationSettingsProcessor.java:50)
at org.gradle.initialization.BuildOperationSettingsProcessor$2.call(BuildOperationSettingsProcessor.java:47)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:409)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:399)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:157)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:242)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:150)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:94)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
at org.gradle.initialization.BuildOperationSettingsProcessor.process(BuildOperationSettingsProcessor.java:47)
at org.gradle.initialization.DefaultSettingsLoader.findSettingsAndLoadIfAppropriate(DefaultSettingsLoader.java:120)
at org.gradle.initialization.DefaultSettingsLoader.findAndLoadSettings(DefaultSettingsLoader.java:58)
at org.gradle.initialization.SettingsAttachingSettingsLoader.findAndLoadSettings(SettingsAttachingSettingsLoader.java:35)
at org.gradle.internal.composite.CommandLineIncludedBuildSettingsLoader.findAndLoadSettings(CommandLineIncludedBuildSettingsLoader.java:34)
at org.gradle.internal.composite.ChildBuildRegisteringSettingsLoader.findAndLoadSettings(ChildBuildRegisteringSettingsLoader.java:52)
at org.gradle.internal.composite.CompositeBuildSettingsLoader.findAndLoadSettings(CompositeBuildSettingsLoader.java:35)
at org.gradle.initialization.DefaultSettingsPreparer.prepareSettings(DefaultSettingsPreparer.java:36)
at org.gradle.initialization.BuildOperatingFiringSettingsPreparer$LoadBuild.doLoadBuild(BuildOperatingFiringSettingsPreparer.java:59)
at org.gradle.initialization.BuildOperatingFiringSettingsPreparer$LoadBuild.run(BuildOperatingFiringSettingsPreparer.java:54)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:395)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:387)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:157)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:242)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:150)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:84)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.initialization.BuildOperatingFiringSettingsPreparer.prepareSettings(BuildOperatingFiringSettingsPreparer.java:42)
at org.gradle.initialization.DefaultGradleLauncher.prepareSettings(DefaultGradleLauncher.java:225)
at org.gradle.initialization.DefaultGradleLauncher.doClassicBuildStages(DefaultGradleLauncher.java:166)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:155)
at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:131)
at org.gradle.internal.invocation.GradleBuildController$1.create(GradleBuildController.java:72)
at org.gradle.internal.invocation.GradleBuildController$1.create(GradleBuildController.java:67)
at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:180)
at org.gradle.internal.work.StopShieldingWorkerLeaseService.withLocks(StopShieldingWorkerLeaseService.java:40)
at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:67)
at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:56)
at org.gradle.tooling.internal.provider.runner.BuildModelActionRunner.run(BuildModelActionRunner.java:54)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
at org.gradle.launcher.exec.BuildOutcomeReportingBuildActionRunner.run(BuildOutcomeReportingBuildActionRunner.java:63)
at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32)
at org.gradle.tooling.internal.provider.FileSystemWatchingBuildActionRunner.run(FileSystemWatchingBuildActionRunner.java:52)
at org.gradle.launcher.exec.BuildCompletionNotifyingBuildActionRunner.run(BuildCompletionNotifyingBuildActionRunner.java:41)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.call(RunAsBuildOperationBuildActionRunner.java:49)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.call(RunAsBuildOperationBuildActionRunner.java:44)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:409)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:399)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:157)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:242)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:150)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:94)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:44)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:50)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:47)
at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:87)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:47)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:31)
at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:44)
at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:29)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:87)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:55)
at org.gradle.tooling.internal.provider.SubscribableBuildActionExecuter.execute(SubscribableBuildActionExecuter.java:60)
at org.gradle.tooling.internal.provider.SubscribableBuildActionExecuter.execute(SubscribableBuildActionExecuter.java:38)
at org.gradle.tooling.internal.provider.SessionScopeBuildActionExecuter.execute(SessionScopeBuildActionExecuter.java:68)
at org.gradle.tooling.internal.provider.SessionScopeBuildActionExecuter.execute(SessionScopeBuildActionExecuter.java:38)
at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:37)
at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:26)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:60)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:32)
at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:56)
at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:42)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:48)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:32)
at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:68)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:39)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:29)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:35)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.create(ForwardClientInput.java:78)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.create(ForwardClientInput.java:75)
at org.gradle.util.Swapper.swap(Swapper.java:38)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:75)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:63)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:82)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:52)
at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:297)
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.IllegalArgumentException: There is no feature named STABLE_CONFIGURATION_CACHE
at org.gradle.api.internal.FeaturePreviews$Feature.withName(FeaturePreviews.java:39)
at org.gradle.initialization.DefaultSettings.enableFeaturePreview(DefaultSettings.java:341)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at org.gradle.internal.metaobject.BeanDynamicObject$MetaClassAdapter.invokeMethod(BeanDynamicObject.java:484)
at org.gradle.internal.metaobject.BeanDynamicObject.tryInvokeMethod(BeanDynamicObject.java:196)
at org.gradle.internal.metaobject.CompositeDynamicObject.tryInvokeMethod(CompositeDynamicObject.java:98)
at org.gradle.internal.extensibility.MixInClosurePropertiesAsMethodsDynamicObject.tryInvokeMethod(MixInClosurePropertiesAsMethodsDynamicObject.java:34)
at org.gradle.groovy.scripts.BasicScript$ScriptDynamicObject.tryInvokeMethod(BasicScript.java:134)
at org.gradle.internal.metaobject.AbstractDynamicObject.invokeMethod(AbstractDynamicObject.java:163)
at org.gradle.groovy.scripts.BasicScript.invokeMethod(BasicScript.java:83)
at settings_6otnipk5rzygs699qem6cmhqg.run(/tmp/junit-13900532526335958862/settings.gradle:1)
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:91)
... 120 more
* Get more help at https://help.gradle.org
BUILD FAILED in 3s
|
build (gradle, 11, ubuntu-latest)
Process completed with exit code 1.
|
NativeCmdIntegrationTest$NativeCmdWithConfigCacheTest.nativeCmd():
NativeCmdIntegrationTest$NativeCmdWithConfigCacheTest#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-8299729879946446364 with arguments [spotlessApply, --stacktrace]
Output:
Configuration cache is an incubating feature.
Calculating task graph as no configuration cache is available for tasks: spotlessApply
FAILURE: Build failed with an exception.
* Where:
Settings file '/tmp/junit-8299729879946446364/settings.gradle' line: 1
* What went wrong:
A problem occurred evaluating settings 'junit-8299729879946446364'.
> There is no feature named STABLE_CONFIGURATION_CACHE
* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Exception is:
org.gradle.api.GradleScriptException: A problem occurred evaluating settings 'junit-8299729879946446364'.
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:93)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.lambda$apply$0(DefaultScriptPluginFactory.java:133)
at org.gradle.configuration.DefaultScriptTarget.addConfiguration(DefaultScriptTarget.java:74)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:136)
at org.gradle.configuration.BuildOperationScriptPlugin$1.run(BuildOperationScriptPlugin.java:65)
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.configuration.BuildOperationScriptPlugin.lambda$apply$0(BuildOperationScriptPlugin.java:62)
at org.gradle.configuration.internal.DefaultUserCodeApplicationContext.apply(DefaultUserCodeApplicationContext.java:44)
at org.gradle.configuration.BuildOperationScriptPlugin.apply(BuildOperationScriptPlugin.java:62)
at org.gradle.initialization.ScriptEvaluatingSettingsProcessor.applySettingsScript(ScriptEvaluatingSettingsProcessor.java:74)
at org.gradle.initialization.ScriptEvaluatingSettingsProcessor.process(ScriptEvaluatingSettingsProcessor.java:67)
at org.gradle.initialization.SettingsEvaluatedCallbackFiringSettingsProcessor.process(SettingsEvaluatedCallbackFiringSettingsProcessor.java:34)
at org.gradle.initialization.RootBuildCacheControllerSettingsProcessor.process(RootBuildCacheControllerSettingsProcessor.java:47)
at org.gradle.initialization.BuildOperationSettingsProcessor$2.call(BuildOperationSettingsProcessor.java:50)
at org.gradle.initialization.BuildOperationSettingsProcessor$2.call(BuildOperationSettingsProcessor.java:47)
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.initialization.BuildOperationSettingsProcessor.process(BuildOperationSettingsProcessor.java:47)
at org.gradle.initialization.DefaultSettingsLoader.findSettingsAndLoadIfAppropriate(DefaultSettingsLoader.java:136)
at org.gradle.initialization.DefaultSettingsLoader.findAndLoadSettings(DefaultSettingsLoader.java:62)
at org.gradle.initialization.SettingsAttachingSettingsLoader.findAndLoadSettings(SettingsAttachingSettingsLoader.java:34)
at org.gradle.internal.composite.CommandLineIncludedBuildSettingsLoader.findAndLoadSettings(CommandLineIncludedBuildSettingsLoader.java:34)
at org.gradle.internal.composite.ChildBuildRegisteringSettingsLoader.findAndLoadSettings(ChildBuildRegisteringSettingsLoader.java:48)
at org.gradle.internal.composite.CompositeBuildSettingsLoader.findAndLoadSettings(CompositeBuildSettingsLoader.java:35)
at org.gradle.initialization.InitScriptHandlingSettingsLoader.findAndLoadSettings(InitScriptHandlingSettingsLoader.java:34)
at org.gradle.initialization.GradlePropertiesHandlingSettingsLoader.findAndLoadSettings(GradlePropertiesHandlingSettingsLoader.java:39)
at org.gradle.initialization.DefaultSettingsPreparer.prepareSettings(DefaultSettingsPreparer.java:31)
at org.gradle.initialization.BuildOperationFiringSettingsPreparer$LoadBuild.doLoadBuild(BuildOperationFiringSettingsPreparer.java:62)
at org.gradle.initialization.BuildOperationFiringSettingsPreparer$LoadBuild.run(BuildOperationFiringSettingsPreparer.java:57)
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.initialization.BuildOperationFiringSettingsPreparer.prepareSettings(BuildOperationFiringSettingsPreparer.java:45)
at org.gradle.initialization.VintageBuildModelController.lambda$prepareSettings$0(VintageBuildModelController.java:89)
at org.gradle.internal.build.StateTransitionController.lambda$doTransition$1(StateTransitionController.java:222)
at org.gradle.internal.build.StateTransitionController.doTransition(StateTransitionController.java:243)
at org.gradle.internal.build.StateTransitionController.doTransition(StateTransitionController.java:221)
at org.gradle.internal.build.StateTransitionController.transitionIfNotPreviously(StateTransitionController.java:190)
at org.gradle.initialization.VintageBuildModelController.prepareSettings(VintageBuildModelController.java:89)
at org.gradle.initialization.VintageBuildModelController.doBuildStages(VintageBuildModelController.java:73)
at org.gradle.initialization.VintageBuildModelController.prepareToScheduleTasks(VintageBuildModelController.java:64)
at org.gradle.configurationcache.ConfigurationCacheAwareBuildModelController.prepareToScheduleTasks(ConfigurationCacheAwareBuildModelController.kt:47)
at org.gradle.internal.build.DefaultBuildLifecycleController.lambda$prepareToScheduleTasks$0(DefaultBuildLifecycleController.java:105)
at org.gradle.internal.build.StateTransitionController.lambda$doTransition$1(StateTransitionController.java:222)
at org.gradle.internal.build.StateTransitionController.doTransition(StateTransitionController.java:243)
at org.gradle.internal.build.StateTransitionController.doTransition(StateTransitionController.java:221)
at org.gradle.internal.build.StateTransitionController.maybeTransition(StateTransitionController.java:174)
at org.gradle.internal.build.DefaultBuildLifecycleController.prepareToScheduleTasks(DefaultBuildLifecycleController.java:103)
at org.gradle.internal.buildtree.DefaultBuildTreeWorkPreparer.scheduleRequestedTasks(DefaultBuildTreeWorkPreparer.java:33)
at org.gradle.configurationcache.ConfigurationCacheAwareBuildTreeWorkPreparer$scheduleRequestedTasks$1.invoke(ConfigurationCacheAwareBuildTreeWorkPreparer.kt:28)
at org.gradle.configurationcache.ConfigurationCacheAwareBuildTreeWorkPreparer$scheduleRequestedTasks$1.invoke(ConfigurationCacheAwareBuildTreeWorkPreparer.kt:22)
at org.gradle.configurationcache.DefaultConfigurationCache$loadOrScheduleRequestedTasks$1.invoke(DefaultConfigurationCache.kt:118)
at org.gradle.configurationcache.DefaultConfigurationCache$loadOrScheduleRequestedTasks$1.invoke(DefaultConfigurationCache.kt:47)
at org.gradle.configurationcache.DefaultConfigurationCache.runWorkThatContributesToCacheEntry(DefaultConfigurationCache.kt:218)
at org.gradle.configurationcache.DefaultConfigurationCache.loadOrScheduleRequestedTasks(DefaultConfigurationCache.kt:117)
at org.gradle.configurationcache.ConfigurationCacheAwareBuildTreeWorkPreparer.scheduleRequestedTasks(ConfigurationCacheAwareBuildTreeWorkPreparer.kt:27)
at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.lambda$doScheduleAndRunTasks$2(DefaultBuildTreeLifecycleController.java:86)
at org.gradle.composite.internal.DefaultIncludedBuildTaskGraph.withNewTaskGraph(DefaultIncludedBuildTaskGraph.java:94)
at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.doScheduleAndRunTasks(DefaultBuildTreeLifecycleController.java:85)
at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.lambda$runBuild$4(DefaultBuildTreeLifecycleController.java:103)
at org.gradle.internal.build.StateTransitionController.lambda$transition$0(StateTransitionController.java:145)
at org.gradle.internal.build.StateTransitionController.doTransition(StateTransitionController.java:243)
at org.gradle.internal.build.StateTransitionController.transition(StateTransitionController.java:145)
at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.runBuild(DefaultBuildTreeLifecycleController.java:100)
at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.scheduleAndRunTasks(DefaultBuildTreeLifecycleController.java:66)
at org.gradle.tooling.internal.provider.runner.BuildModelActionRunner.run(BuildModelActionRunner.java:53)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
at org.gradle.internal.buildtree.ProblemReportingBuildActionRunner.run(ProblemReportingBuildActionRunner.java:49)
at org.gradle.launcher.exec.BuildOutcomeReportingBuildActionRunner.run(BuildOutcomeReportingBuildActionRunner.java:69)
at org.gradle.tooling.internal.provider.FileSystemWatchingBuildActionRunner.run(FileSystemWatchingBuildActionRunner.java:114)
at org.gradle.launcher.exec.BuildCompletionNotifyingBuildActionRunner.run(BuildCompletionNotifyingBuildActionRunner.java:41)
at org.gradle.launcher.exec.RootBuildLifecycleBuildActionExecutor.lambda$execute$0(RootBuildLifecycleBuildActionExecutor.java:40)
at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:155)
at org.gradle.launcher.exec.RootBuildLifecycleBuildActionExecutor.execute(RootBuildLifecycleBuildActionExecutor.java:40)
at org.gradle.internal.buildtree.DefaultBuildTreeContext.execute(DefaultBuildTreeContext.java:40)
at org.gradle.launcher.exec.BuildTreeLifecycleBuildActionExecutor.lambda$execute$0(BuildTreeLifecycleBuildActionExecutor.java:65)
at org.gradle.internal.buildtree.BuildTreeState.run(BuildTreeState.java:53)
at org.gradle.launcher.exec.BuildTreeLifecycleBuildActionExecutor.execute(BuildTreeLifecycleBuildActionExecutor.java:65)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionExecutor$3.call(RunAsBuildOperationBuildActionExecutor.java:61)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionExecutor$3.call(RunAsBuildOperationBuildActionExecutor.java:57)
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.launcher.exec.RunAsBuildOperationBuildActionExecutor.execute(RunAsBuildOperationBuildActionExecutor.java:57)
at org.gradle.launcher.exec.RunAsWorkerThreadBuildActionExecutor.lambda$execute$0(RunAsWorkerThreadBuildActionExecutor.java:38)
at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:211)
at org.gradle.launcher.exec.RunAsWorkerThreadBuildActionExecutor.execute(RunAsWorkerThreadBuildActionExecutor.java:38)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecutor.execute(ContinuousBuildActionExecutor.java:103)
at org.gradle.tooling.internal.provider.SubscribableBuildActionExecutor.execute(SubscribableBuildActionExecutor.java:64)
at org.gradle.internal.session.DefaultBuildSessionContext.execute(DefaultBuildSessionContext.java:46)
at org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter$ActionImpl.apply(BuildSessionLifecycleBuildActionExecuter.java:100)
at org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter$ActionImpl.apply(BuildSessionLifecycleBuildActionExecuter.java:88)
at org.gradle.internal.session.BuildSessionState.run(BuildSessionState.java:69)
at org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter.execute(BuildSessionLifecycleBuildActionExecuter.java:62)
at org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter.execute(BuildSessionLifecycleBuildActionExecuter.java:41)
at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:36)
at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:25)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:63)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:31)
at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:58)
at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:42)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:47)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:31)
at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:65)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:39)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:29)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:35)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.create(ForwardClientInput.java:78)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.create(ForwardClientInput.java:75)
at org.gradle.util.internal.Swapper.swap(Swapper.java:38)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:75)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:63)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:84)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:52)
at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:297)
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:61)
Caused by: java.lang.IllegalArgumentException: There is no feature named STABLE_CONFIGURATION_CACHE
at org.gradle.api.internal.FeaturePreviews$Feature.withName(FeaturePreviews.java:40)
at org.gradle.initialization.DefaultSettings.enableFeaturePreview(DefaultSettings.java:356)
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.metaobject.BeanDynamicObject$MetaClassAdapter.invokeMethod(BeanDynamicObject.java:484)
at org.gradle.internal.metaobject.BeanDynamicObject.tryInvokeMethod(BeanDynamicObject.java:196)
at org.gradle.internal.metaobject.CompositeDynamicObject.tryInvokeMethod(CompositeDynamicObject.java:98)
at org.gradle.internal.extensibility.MixInClosurePropertiesAsMethodsDynamicObject.tryInvokeMethod(MixInClosurePropertiesAsMethodsDynamicObject.java:34)
at org.gradle.groovy.scripts.BasicScript$ScriptDynamicObject.tryInvokeMethod(BasicScript.java:135)
at org.gradle.internal.metaobject.AbstractDynamicObject.invokeMethod(AbstractDynamicObject.java:163)
at org.gradle.groovy.scripts.BasicScript.invokeMethod(BasicScript.java:84)
at settings_49xotztwlsyqa2tepeemylaf1.run(/tmp/junit-8299729879946446364/settings.gradle:1)
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:91)
... 152 more
* Get more help at https://help.gradle.org
BUILD FAILED in 190ms
|
build (gradle, 17, ubuntu-latest)
Process completed with exit code 1.
|
NpmStepsWithNpmInstallCacheTest.prettierTypescriptWithSpecificCacheIsUsedOnSecondRun():
plugin-maven/src/test/java/com/diffplug/spotless/maven/npm/NpmStepsWithNpmInstallCacheTest.java#L131
org.opentest4j.AssertionFailedError: [Run without error > arguments: [sh, -c, ./mvnw -e spotless:apply]
> exit code: 1
> stdout: (below)
> [INFO] Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Spotless Maven Plugin Tests 1.0.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO]
> [INFO] --- spotless-maven-plugin:2.44.0.BETA4-SNAPSHOT:apply (default-cli) @ spotless-maven-plugin-tests ---
> [INFO] Index file does not exist. Fallback to an empty index
> [INFO] creating formatter function (starting server)
> [INFO] Caching npm install results in /tmp/junit-14802070720739487116/cache-prettier-1.
> [INFO] [BEGIN] Preparing NodeServerLayout[nodeModulesDir=/tmp/junit-14802070720739487116/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85, packageJsonFile=/tmp/junit-14802070720739487116/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/package.json, serveJsFile=/tmp/junit-14802070720739487116/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/serve.js, npmrcFile=/tmp/junit-14802070720739487116/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/.npmrc] for npm step com.diffplug.spotless.npm.NodeServeApp.
> [INFO] [END] Preparing NodeServerLayout[nodeModulesDir=/tmp/junit-14802070720739487116/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85, packageJsonFile=/tmp/junit-14802070720739487116/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/package.json, serveJsFile=/tmp/junit-14802070720739487116/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/serve.js, npmrcFile=/tmp/junit-14802070720739487116/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/.npmrc] for npm step com.diffplug.spotless.npm.NodeServeApp. (took 6ms)
> [INFO] [BEGIN] Installing npm dependencies for NodeServerLayout[nodeModulesDir=/tmp/junit-14802070720739487116/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85, packageJsonFile=/tmp/junit-14802070720739487116/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/package.json, serveJsFile=/tmp/junit-14802070720739487116/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/serve.js, npmrcFile=/tmp/junit-14802070720739487116/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/.npmrc] with NodeModulesCachingNpmProcessFactory.
> [INFO] [BEGIN] Using cached node_modules for spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85 from /tmp/junit-14802070720739487116/cache-prettier-1
> [INFO] [END] Using cached node_modules for spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85 from /tmp/junit-14802070720739487116/cache-prettier-1 (took 91ms)
> [INFO] [END] Installing npm dependencies for NodeServerLayout[nodeModulesDir=/tmp/junit-14802070720739487116/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85, packageJsonFile=/tmp/junit-14802070720739487116/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/package.json, serveJsFile=/tmp/junit-14802070720739487116/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/serve.js, npmrcFile=/tmp/junit-14802070720739487116/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/.npmrc] with NodeModulesCachingNpmProcessFactory. (took 99ms)
> [INFO] [BEGIN] Starting npm based server in /tmp/junit-14802070720739487116/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85 with NodeModulesCachingNpmProcessFactory.
> [INFO] [END] Starting npm based server in /tmp/junit-14802070720739487116/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85 with NodeModulesCachingNpmProcessFactory. (took 48ms)
> [INFO] clean file: /tmp/junit-14802070720739487116/src/main/typescript/test.ts
> [INFO] clean file: /tmp/junit-14802070720739487116/cache-prettier-1/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/has-symbols/shams.d.ts
> [INFO] clean file: /tmp/junit-14802070720739487116/cache-prettier-1/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/has-symbols/index.d.ts
> [INFO] clean file: /tmp/junit-14802070720739487116/cache-prettier-1/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/es-define-property/index.d.ts
> [INFO] clean file: /tmp/junit-14802070720739487116/cache-prettier-1/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/es-errors/type.d.ts
> [INFO] clean file: /tmp/junit-14802070720739487116/cache-prettier-1/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/hasown/index.d.ts
> [INFO] clean file: /tmp/junit-14802070720739487116/cache-prettier-1/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/gopd/index.d.ts
> [INFO] clean file: /tmp/junit-14802070720739487116/cache-prettier-1/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/call-bind-apply-helpers/applyBind.d.ts
> [INFO] clean file: /tmp/junit-14802070720739487116/cache-prettier-1/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/call-bind-apply-helpers/functionCall.d.ts
> [INFO] clean file: /tmp/junit-14802070720739487116/cache-prettier-1/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/call-bind-apply-helpers/reflectApply.d.ts
> [INFO] clean file: /tmp/junit-14802070720739487116/cache-prettier-1/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/call-bind-apply-helpers/functionApply.d.ts
> [ERROR] Step 'prettier-format' found problem in 'index.d.ts':
> Unexpected response status code at /prettier/format [HTTP 500] -- (Error while formatting: SyntaxError: ',' expected. (7:25)
> 5 | > = Index["length"] extends RemoveCount
> 6 | ? Tuple
> > 7 | : Tuple extends [first: unknown, ...infer Rest]
> | ^
> 8 | ? RemoveFromTuple<Rest, RemoveCount, [...Index, 1]>
> 9 | : Tuple;
> 10 | )
> com.diffplug.spotless.npm.SimpleRestClient$SimpleRestResponseException: Unexpected response status code at /prettier/format [HTTP 500] -- (Error while formatting: SyntaxError: ',' expected. (7:25)
> 5 | > = Index["length"] extends RemoveCount
> 6 | ? Tuple
> > 7 | : Tuple extends [first: unknown, ...infer Rest]
> | ^
> 8 | ? RemoveFromTuple<Rest, RemoveCount, [...Index, 1]>
> 9 | : Tuple;
> 10 | )
> at com.diffplug.spotless.npm.SimpleRestClient.postJson(SimpleRestClient.java:72)
> at com.diffplug.spotless.npm.SimpleRestClient.postJson(SimpleRestClient.java:46)
> at com.diffplug.spotless.npm.PrettierRestService.format(PrettierRestService.java:46)
> at com.diffplug.spotless.npm.PrettierFormatterStep$PrettierFilePathPassingFormatterFunc.applyWithFile(PrettierFormatterStep.java:125)
> at com.diffplug.spotless.FormatterFunc$NeedsFile.apply(FormatterFunc.java:174)
> at com.diffplug.spotless.FormatterFunc$Closeable$1.apply(FormatterFunc.java:73)
> at com.diffplug.spotless.FormatterStepEqualityOnStateSerialization.format(FormatterStepEqualityOnStateSerialization.java:49)
> at com.diffplug.spotless.Formatter.computeWithLint(Formatter.java:170)
> at com.diffplug.spotless.DirtyState.of(DirtyState.java:97)
> at com.diffplug.spotless.DirtyState.of(DirtyState.java:82)
> at com.diffplug.spotless.DirtyState.of(DirtyState.java:77)
> at com.diffplug.spotless.DirtyState.of(DirtyState.java:73)
> at com.diffplug.spotless.maven.SpotlessApplyMojo.process(SpotlessApplyMojo.java:63)
> at com.diffplug.spotless.maven.AbstractSpotlessMojo.execute(AbstractSpotlessMojo.java:255)
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
> at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> at org.apache.maven.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:39)
> at org.apache.maven.wrapper.WrapperExecutor.execute(WrapperExecutor.java:122)
> at org.apache.maven.wrapper.MavenWrapperMain.main(MavenWrapperMain.java:55)
> [INFO] Closing formatting function (ending server).
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 3.187 s
> [INFO] Finished at: 2024-12-08T19:11:31+00:00
> [INFO] Final Memory: 11M/44M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal com.diffplug.spotless:spotless-maven-plugin:2.44.0.BETA4-SNAPSHOT:apply (default-cli) on project spotless-maven-plugin-tests: Unable to format file /tmp/junit-14802070720739487116/cache-prettier-1/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/call-bind-apply-helpers/index.d.ts: Unexpected response status code at /prettier/format [HTTP 500] -- (Error while formatting: SyntaxError: ',' expected. (7:25)
> [ERROR] 5 | > = Index["length"] extends RemoveCount
> [ERROR] 6 | ? Tuple
> [ERROR] > 7 | : Tuple extends [first: unknown, ...infer Rest]
> [ERROR] | ^
> [ERROR] 8 | ? RemoveFromTuple<Rest, RemoveCount, [...Index, 1]>
> [ERROR] 9 | : Tuple;
> [ERROR] 10 | )
> [ERROR] -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.diffplug.spotless:spotless-maven-plugin:2.44.0.BETA4-SNAPSHOT:apply (default-cli) on project spotless-maven-plugin-tests: Unable to format file /tmp/junit-14802070720739487116/cache-prettier-1/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/call-bind-apply-helpers/index.d.ts
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
> at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> at org.apache.maven.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:39)
> at org.apache.maven.wrapper.WrapperExecutor.execute(WrapperExecutor.java:122)
> at org.apache.maven.wrapper.MavenWrapperMain.main(MavenWrapperMain.java:55)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to format file /tmp/junit-14802070720739487116/cache-prettier-1/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/call-bind-apply-helpers/index.d.ts
> at com.diffplug.spotless.maven.SpotlessApplyMojo.process(SpotlessApplyMojo.java:73)
> at com.diffplug.spotless.maven.AbstractSpotlessMojo.execute(AbstractSpotlessMojo.java:255)
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
> ... 26 more
> Caused by: com.diffplug.spotless.npm.SimpleRestClient$SimpleRestResponseException: Unexpected response status code at /prettier/format [HTTP 500] -- (Error while formatting: SyntaxError: ',' expected. (7:25)
> 5 | > = Index["length"] extends RemoveCount
> 6 | ? Tuple
> > 7 | : Tuple extends [first: unknown, ...infer Rest]
> | ^
> 8 | ? RemoveFromTuple<Rest, RemoveCount, [...Index, 1]>
> 9 | : Tuple;
> 10 | )
> at com.diffplug.spotless.npm.SimpleRestClient.postJson(SimpleRestClient.java:72)
> at com.diffplug.spotless.npm.SimpleRestClient.postJson(SimpleRestClient.java:46)
> at com.diffplug.spotless.npm.PrettierRestService.format(PrettierRestService.java:46)
> at com.diffplug.spotless.npm.PrettierFormatterStep$PrettierFilePathPassingFormatterFunc.applyWithFile(PrettierFormatterStep.java:125)
> at com.diffplug.spotless.FormatterFunc$NeedsFile.apply(FormatterFunc.java:174)
> at com.diffplug.spotless.FormatterFunc$Closeable$1.apply(FormatterFunc.java:73)
> at com.diffplug.spotless.FormatterStepEqualityOnStateSerialization.format(FormatterStepEqualityOnStateSerialization.java:49)
> at com.diffplug.spotless.Formatter.computeWithLint(Formatter.java:170)
> at com.diffplug.spotless.DirtyState.of(DirtyState.java:97)
> at com.diffplug.spotless.DirtyState.of(DirtyState.java:82)
> at com.diffplug.spotless.DirtyState.of(DirtyState.java:77)
> at com.diffplug.spotless.DirtyState.of(DirtyState.java:73)
> at com.diffplug.spotless.maven.SpotlessApplyMojo.process(SpotlessApplyMojo.java:63)
> ... 29 more
> [ERROR]
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
]
expected: 0
but was: 1
|
NpmStepsWithNpmInstallCacheTest.prettierTypescriptWithDefaultCacheIsReusedOnSecondRun():
plugin-maven/src/test/java/com/diffplug/spotless/maven/npm/NpmStepsWithNpmInstallCacheTest.java#L88
org.opentest4j.AssertionFailedError: [Run without error > arguments: [sh, -c, ./mvnw -e spotless:apply]
> exit code: 1
> stdout: (below)
> [INFO] Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Spotless Maven Plugin Tests 1.0.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO]
> [INFO] --- spotless-maven-plugin:2.44.0.BETA4-SNAPSHOT:apply (default-cli) @ spotless-maven-plugin-tests ---
> [INFO] Index file does not exist. Fallback to an empty index
> [INFO] creating formatter function (starting server)
> [INFO] Caching npm install results in /tmp/junit-7437779025636706963/target/spotless-npm-install-cache.
> [INFO] [BEGIN] Preparing NodeServerLayout[nodeModulesDir=/tmp/junit-7437779025636706963/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85, packageJsonFile=/tmp/junit-7437779025636706963/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/package.json, serveJsFile=/tmp/junit-7437779025636706963/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/serve.js, npmrcFile=/tmp/junit-7437779025636706963/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/.npmrc] for npm step com.diffplug.spotless.npm.NodeServeApp.
> [INFO] [END] Preparing NodeServerLayout[nodeModulesDir=/tmp/junit-7437779025636706963/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85, packageJsonFile=/tmp/junit-7437779025636706963/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/package.json, serveJsFile=/tmp/junit-7437779025636706963/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/serve.js, npmrcFile=/tmp/junit-7437779025636706963/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/.npmrc] for npm step com.diffplug.spotless.npm.NodeServeApp. (took 13ms)
> [INFO] [BEGIN] Installing npm dependencies for NodeServerLayout[nodeModulesDir=/tmp/junit-7437779025636706963/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85, packageJsonFile=/tmp/junit-7437779025636706963/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/package.json, serveJsFile=/tmp/junit-7437779025636706963/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/serve.js, npmrcFile=/tmp/junit-7437779025636706963/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/.npmrc] with NodeModulesCachingNpmProcessFactory.
> [INFO] [BEGIN] Using cached node_modules for spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85 from /tmp/junit-7437779025636706963/target/spotless-npm-install-cache
> [INFO] [END] Using cached node_modules for spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85 from /tmp/junit-7437779025636706963/target/spotless-npm-install-cache (took 69ms)
> [INFO] [END] Installing npm dependencies for NodeServerLayout[nodeModulesDir=/tmp/junit-7437779025636706963/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85, packageJsonFile=/tmp/junit-7437779025636706963/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/package.json, serveJsFile=/tmp/junit-7437779025636706963/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/serve.js, npmrcFile=/tmp/junit-7437779025636706963/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/.npmrc] with NodeModulesCachingNpmProcessFactory. (took 84ms)
> [INFO] [BEGIN] Starting npm based server in /tmp/junit-7437779025636706963/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85 with NodeModulesCachingNpmProcessFactory.
> [INFO] [END] Starting npm based server in /tmp/junit-7437779025636706963/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85 with NodeModulesCachingNpmProcessFactory. (took 63ms)
> [INFO] clean file: /tmp/junit-7437779025636706963/target/spotless-npm-install-cache/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/has-symbols/shams.d.ts
> [INFO] clean file: /tmp/junit-7437779025636706963/target/spotless-npm-install-cache/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/has-symbols/index.d.ts
> [INFO] clean file: /tmp/junit-7437779025636706963/target/spotless-npm-install-cache/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/es-define-property/index.d.ts
> [INFO] clean file: /tmp/junit-7437779025636706963/target/spotless-npm-install-cache/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/es-errors/type.d.ts
> [INFO] clean file: /tmp/junit-7437779025636706963/target/spotless-npm-install-cache/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/hasown/index.d.ts
> [INFO] clean file: /tmp/junit-7437779025636706963/target/spotless-npm-install-cache/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/gopd/index.d.ts
> [INFO] clean file: /tmp/junit-7437779025636706963/target/spotless-npm-install-cache/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/call-bind-apply-helpers/applyBind.d.ts
> [INFO] clean file: /tmp/junit-7437779025636706963/target/spotless-npm-install-cache/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/call-bind-apply-helpers/functionCall.d.ts
> [INFO] clean file: /tmp/junit-7437779025636706963/target/spotless-npm-install-cache/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/call-bind-apply-helpers/reflectApply.d.ts
> [INFO] clean file: /tmp/junit-7437779025636706963/target/spotless-npm-install-cache/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/call-bind-apply-helpers/functionApply.d.ts
> [ERROR] Step 'prettier-format' found problem in 'index.d.ts':
> Unexpected response status code at /prettier/format [HTTP 500] -- (Error while formatting: SyntaxError: ',' expected. (7:25)
> 5 | > = Index["length"] extends RemoveCount
> 6 | ? Tuple
> > 7 | : Tuple extends [first: unknown, ...infer Rest]
> | ^
> 8 | ? RemoveFromTuple<Rest, RemoveCount, [...Index, 1]>
> 9 | : Tuple;
> 10 | )
> com.diffplug.spotless.npm.SimpleRestClient$SimpleRestResponseException: Unexpected response status code at /prettier/format [HTTP 500] -- (Error while formatting: SyntaxError: ',' expected. (7:25)
> 5 | > = Index["length"] extends RemoveCount
> 6 | ? Tuple
> > 7 | : Tuple extends [first: unknown, ...infer Rest]
> | ^
> 8 | ? RemoveFromTuple<Rest, RemoveCount, [...Index, 1]>
> 9 | : Tuple;
> 10 | )
> at com.diffplug.spotless.npm.SimpleRestClient.postJson(SimpleRestClient.java:72)
> at com.diffplug.spotless.npm.SimpleRestClient.postJson(SimpleRestClient.java:46)
> at com.diffplug.spotless.npm.PrettierRestService.format(PrettierRestService.java:46)
> at com.diffplug.spotless.npm.PrettierFormatterStep$PrettierFilePathPassingFormatterFunc.applyWithFile(PrettierFormatterStep.java:125)
> at com.diffplug.spotless.FormatterFunc$NeedsFile.apply(FormatterFunc.java:174)
> at com.diffplug.spotless.FormatterFunc$Closeable$1.apply(FormatterFunc.java:73)
> at com.diffplug.spotless.FormatterStepEqualityOnStateSerialization.format(FormatterStepEqualityOnStateSerialization.java:49)
> at com.diffplug.spotless.Formatter.computeWithLint(Formatter.java:170)
> at com.diffplug.spotless.DirtyState.of(DirtyState.java:97)
> at com.diffplug.spotless.DirtyState.of(DirtyState.java:82)
> at com.diffplug.spotless.DirtyState.of(DirtyState.java:77)
> at com.diffplug.spotless.DirtyState.of(DirtyState.java:73)
> at com.diffplug.spotless.maven.SpotlessApplyMojo.process(SpotlessApplyMojo.java:63)
> at com.diffplug.spotless.maven.AbstractSpotlessMojo.execute(AbstractSpotlessMojo.java:255)
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
> at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> at org.apache.maven.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:39)
> at org.apache.maven.wrapper.WrapperExecutor.execute(WrapperExecutor.java:122)
> at org.apache.maven.wrapper.MavenWrapperMain.main(MavenWrapperMain.java:55)
> [INFO] Closing formatting function (ending server).
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 3.478 s
> [INFO] Finished at: 2024-12-08T19:12:06+00:00
> [INFO] Final Memory: 11M/40M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal com.diffplug.spotless:spotless-maven-plugin:2.44.0.BETA4-SNAPSHOT:apply (default-cli) on project spotless-maven-plugin-tests: Unable to format file /tmp/junit-7437779025636706963/target/spotless-npm-install-cache/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/call-bind-apply-helpers/index.d.ts: Unexpected response status code at /prettier/format [HTTP 500] -- (Error while formatting: SyntaxError: ',' expected. (7:25)
> [ERROR] 5 | > = Index["length"] extends RemoveCount
> [ERROR] 6 | ? Tuple
> [ERROR] > 7 | : Tuple extends [first: unknown, ...infer Rest]
> [ERROR] | ^
> [ERROR] 8 | ? RemoveFromTuple<Rest, RemoveCount, [...Index, 1]>
> [ERROR] 9 | : Tuple;
> [ERROR] 10 | )
> [ERROR] -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.diffplug.spotless:spotless-maven-plugin:2.44.0.BETA4-SNAPSHOT:apply (default-cli) on project spotless-maven-plugin-tests: Unable to format file /tmp/junit-7437779025636706963/target/spotless-npm-install-cache/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/call-bind-apply-helpers/index.d.ts
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
> at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> at org.apache.maven.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:39)
> at org.apache.maven.wrapper.WrapperExecutor.execute(WrapperExecutor.java:122)
> at org.apache.maven.wrapper.MavenWrapperMain.main(MavenWrapperMain.java:55)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to format file /tmp/junit-7437779025636706963/target/spotless-npm-install-cache/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/call-bind-apply-helpers/index.d.ts
> at com.diffplug.spotless.maven.SpotlessApplyMojo.process(SpotlessApplyMojo.java:73)
> at com.diffplug.spotless.maven.AbstractSpotlessMojo.execute(AbstractSpotlessMojo.java:255)
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
> ... 26 more
> Caused by: com.diffplug.spotless.npm.SimpleRestClient$SimpleRestResponseException: Unexpected response status code at /prettier/format [HTTP 500] -- (Error while formatting: SyntaxError: ',' expected. (7:25)
> 5 | > = Index["length"] extends RemoveCount
> 6 | ? Tuple
> > 7 | : Tuple extends [first: unknown, ...infer Rest]
> | ^
> 8 | ? RemoveFromTuple<Rest, RemoveCount, [...Index, 1]>
> 9 | : Tuple;
> 10 | )
> at com.diffplug.spotless.npm.SimpleRestClient.postJson(SimpleRestClient.java:72)
> at com.diffplug.spotless.npm.SimpleRestClient.postJson(SimpleRestClient.java:46)
> at com.diffplug.spotless.npm.PrettierRestService.format(PrettierRestService.java:46)
> at com.diffplug.spotless.npm.PrettierFormatterStep$PrettierFilePathPassingFormatterFunc.applyWithFile(PrettierFormatterStep.java:125)
> at com.diffplug.spotless.FormatterFunc$NeedsFile.apply(FormatterFunc.java:174)
> at com.diffplug.spotless.FormatterFunc$Closeable$1.apply(FormatterFunc.java:73)
> at com.diffplug.spotless.FormatterStepEqualityOnStateSerialization.format(FormatterStepEqualityOnStateSerialization.java:49)
> at com.diffplug.spotless.Formatter.computeWithLint(Formatter.java:170)
> at com.diffplug.spotless.DirtyState.of(DirtyState.java:97)
> at com.diffplug.spotless.DirtyState.of(DirtyState.java:82)
> at com.diffplug.spotless.DirtyState.of(DirtyState.java:77)
> at com.diffplug.spotless.DirtyState.of(DirtyState.java:73)
> at com.diffplug.spotless.maven.SpotlessApplyMojo.process(SpotlessApplyMojo.java:63)
> ... 29 more
> [ERROR]
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
]
expected: 0
but was: 1
|
build (npm, 11, ubuntu-latest)
Process completed with exit code 1.
|
spotlessCheck assemble testClasses
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
build (gradle, 21, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
build (gradle, 23, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
build (shfmt, 11, ubuntu-latest, v3.8.0)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
build (shfmt, 11, ubuntu-latest, v3.8.0)
Restore cache failed: Dependencies file is not found in /home/runner/work/spotless/spotless. Supported file pattern: go.sum
|
build (maven, 11, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
build (gradle, 11, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
build (gradle, 17, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
build (maven, 17, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
build (npm, 11, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
build (maven, 21, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
build (maven, 23, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|