Skip to content

Run the NativeCmd integration test with and without the configuration cache #1959

Run the NativeCmd integration test with and without the configuration cache

Run the NativeCmd integration test with and without the configuration cache #1959

GitHub Actions / JUnit npm 11 ubuntu-latest failed Dec 9, 2024 in 0s

136 tests run, 132 passed, 2 skipped, 2 failed.

Annotations

Check failure on line 131 in plugin-maven/src/test/java/com/diffplug/spotless/maven/npm/NpmStepsWithNpmInstallCacheTest.java

See this annotation in the file changed.

@github-actions github-actions / JUnit npm 11 ubuntu-latest

NpmStepsWithNpmInstallCacheTest.prettierTypescriptWithSpecificCacheIsUsedOnSecondRun()

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-14617201283003525292/cache-prettier-1.
> [INFO] [BEGIN] Preparing NodeServerLayout[nodeModulesDir=/tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85, packageJsonFile=/tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/package.json, serveJsFile=/tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/serve.js, npmrcFile=/tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/.npmrc] for npm step com.diffplug.spotless.npm.NodeServeApp.
> [INFO] [END] Preparing NodeServerLayout[nodeModulesDir=/tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85, packageJsonFile=/tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/package.json, serveJsFile=/tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/serve.js, npmrcFile=/tmp/junit-14617201283003525292/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-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85, packageJsonFile=/tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/package.json, serveJsFile=/tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/serve.js, npmrcFile=/tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/.npmrc] with NodeModulesCachingNpmProcessFactory.
> [INFO] [BEGIN] Using cached node_modules for spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85 from /tmp/junit-14617201283003525292/cache-prettier-1
> [INFO] [END] Using cached node_modules for spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85 from /tmp/junit-14617201283003525292/cache-prettier-1 (took 54ms)
> [INFO] [END] Installing npm dependencies for NodeServerLayout[nodeModulesDir=/tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85, packageJsonFile=/tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/package.json, serveJsFile=/tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/serve.js, npmrcFile=/tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/.npmrc] with NodeModulesCachingNpmProcessFactory. (took 59ms)
> [INFO] [BEGIN] Starting npm based server in /tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85 with NodeModulesCachingNpmProcessFactory.
> [INFO] [END] Starting npm based server in /tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85 with NodeModulesCachingNpmProcessFactory. (took 22ms)
> [INFO] clean file: /tmp/junit-14617201283003525292/src/main/typescript/test.ts
> [INFO] clean file: /tmp/junit-14617201283003525292/cache-prettier-1/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/has-symbols/shams.d.ts
> [INFO] clean file: /tmp/junit-14617201283003525292/cache-prettier-1/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/has-symbols/index.d.ts
> [INFO] clean file: /tmp/junit-14617201283003525292/cache-prettier-1/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/es-define-property/index.d.ts
> [INFO] clean file: /tmp/junit-14617201283003525292/cache-prettier-1/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/es-errors/type.d.ts
> [INFO] clean file: /tmp/junit-14617201283003525292/cache-prettier-1/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/hasown/index.d.ts
> [INFO] clean file: /tmp/junit-14617201283003525292/cache-prettier-1/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/gopd/index.d.ts
> [INFO] clean file: /tmp/junit-14617201283003525292/cache-prettier-1/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/call-bind-apply-helpers/applyBind.d.ts
> [INFO] clean file: /tmp/junit-14617201283003525292/cache-prettier-1/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/call-bind-apply-helpers/functionCall.d.ts
> [INFO] clean file: /tmp/junit-14617201283003525292/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: 2.079 s
> [INFO] Finished at: 2024-12-09T16:15:05+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-14617201283003525292/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-14617201283003525292/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-14617201283003525292/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
Raw output
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-14617201283003525292/cache-prettier-1.
> [INFO] [BEGIN] Preparing NodeServerLayout[nodeModulesDir=/tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85, packageJsonFile=/tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/package.json, serveJsFile=/tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/serve.js, npmrcFile=/tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/.npmrc] for npm step com.diffplug.spotless.npm.NodeServeApp.
> [INFO] [END] Preparing NodeServerLayout[nodeModulesDir=/tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85, packageJsonFile=/tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/package.json, serveJsFile=/tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/serve.js, npmrcFile=/tmp/junit-14617201283003525292/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-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85, packageJsonFile=/tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/package.json, serveJsFile=/tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/serve.js, npmrcFile=/tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/.npmrc] with NodeModulesCachingNpmProcessFactory.
> [INFO] [BEGIN] Using cached node_modules for spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85 from /tmp/junit-14617201283003525292/cache-prettier-1
> [INFO] [END] Using cached node_modules for spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85 from /tmp/junit-14617201283003525292/cache-prettier-1 (took 54ms)
> [INFO] [END] Installing npm dependencies for NodeServerLayout[nodeModulesDir=/tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85, packageJsonFile=/tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/package.json, serveJsFile=/tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/serve.js, npmrcFile=/tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/.npmrc] with NodeModulesCachingNpmProcessFactory. (took 59ms)
> [INFO] [BEGIN] Starting npm based server in /tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85 with NodeModulesCachingNpmProcessFactory.
> [INFO] [END] Starting npm based server in /tmp/junit-14617201283003525292/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85 with NodeModulesCachingNpmProcessFactory. (took 22ms)
> [INFO] clean file: /tmp/junit-14617201283003525292/src/main/typescript/test.ts
> [INFO] clean file: /tmp/junit-14617201283003525292/cache-prettier-1/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/has-symbols/shams.d.ts
> [INFO] clean file: /tmp/junit-14617201283003525292/cache-prettier-1/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/has-symbols/index.d.ts
> [INFO] clean file: /tmp/junit-14617201283003525292/cache-prettier-1/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/es-define-property/index.d.ts
> [INFO] clean file: /tmp/junit-14617201283003525292/cache-prettier-1/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/es-errors/type.d.ts
> [INFO] clean file: /tmp/junit-14617201283003525292/cache-prettier-1/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/hasown/index.d.ts
> [INFO] clean file: /tmp/junit-14617201283003525292/cache-prettier-1/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/gopd/index.d.ts
> [INFO] clean file: /tmp/junit-14617201283003525292/cache-prettier-1/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/call-bind-apply-helpers/applyBind.d.ts
> [INFO] clean file: /tmp/junit-14617201283003525292/cache-prettier-1/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/call-bind-apply-helpers/functionCall.d.ts
> [INFO] clean file: /tmp/junit-14617201283003525292/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: 2.079 s
> [INFO] Finished at: 2024-12-09T16:15:05+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-14617201283003525292/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-14617201283003525292/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-14617201283003525292/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
	at app//com.diffplug.spotless.maven.MavenRunner.runNoError(MavenRunner.java:78)
	at app//com.diffplug.spotless.maven.npm.NpmStepsWithNpmInstallCacheTest.run(NpmStepsWithNpmInstallCacheTest.java:144)
	at app//com.diffplug.spotless.maven.npm.NpmStepsWithNpmInstallCacheTest.prettierTypescriptWithSpecificCacheIsUsedOnSecondRun(NpmStepsWithNpmInstallCacheTest.java:131)
	at [email protected]/java.lang.reflect.Method.invoke(Method.java:566)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1541)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1541)

Check failure on line 88 in plugin-maven/src/test/java/com/diffplug/spotless/maven/npm/NpmStepsWithNpmInstallCacheTest.java

See this annotation in the file changed.

@github-actions github-actions / JUnit npm 11 ubuntu-latest

NpmStepsWithNpmInstallCacheTest.prettierTypescriptWithDefaultCacheIsReusedOnSecondRun()

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-4357972596612704574/target/spotless-npm-install-cache.
> [INFO] [BEGIN] Preparing NodeServerLayout[nodeModulesDir=/tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85, packageJsonFile=/tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/package.json, serveJsFile=/tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/serve.js, npmrcFile=/tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/.npmrc] for npm step com.diffplug.spotless.npm.NodeServeApp.
> [INFO] [END] Preparing NodeServerLayout[nodeModulesDir=/tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85, packageJsonFile=/tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/package.json, serveJsFile=/tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/serve.js, npmrcFile=/tmp/junit-4357972596612704574/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-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85, packageJsonFile=/tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/package.json, serveJsFile=/tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/serve.js, npmrcFile=/tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/.npmrc] with NodeModulesCachingNpmProcessFactory.
> [INFO] [BEGIN] Using cached node_modules for spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85 from /tmp/junit-4357972596612704574/target/spotless-npm-install-cache
> [INFO] [END] Using cached node_modules for spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85 from /tmp/junit-4357972596612704574/target/spotless-npm-install-cache (took 34ms)
> [INFO] [END] Installing npm dependencies for NodeServerLayout[nodeModulesDir=/tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85, packageJsonFile=/tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/package.json, serveJsFile=/tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/serve.js, npmrcFile=/tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/.npmrc] with NodeModulesCachingNpmProcessFactory. (took 39ms)
> [INFO] [BEGIN] Starting npm based server in /tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85 with NodeModulesCachingNpmProcessFactory.
> [INFO] [END] Starting npm based server in /tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85 with NodeModulesCachingNpmProcessFactory. (took 16ms)
> [INFO] clean file: /tmp/junit-4357972596612704574/target/spotless-npm-install-cache/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/has-symbols/shams.d.ts
> [INFO] clean file: /tmp/junit-4357972596612704574/target/spotless-npm-install-cache/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/has-symbols/index.d.ts
> [INFO] clean file: /tmp/junit-4357972596612704574/target/spotless-npm-install-cache/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/es-define-property/index.d.ts
> [INFO] clean file: /tmp/junit-4357972596612704574/target/spotless-npm-install-cache/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/es-errors/type.d.ts
> [INFO] clean file: /tmp/junit-4357972596612704574/target/spotless-npm-install-cache/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/hasown/index.d.ts
> [INFO] clean file: /tmp/junit-4357972596612704574/target/spotless-npm-install-cache/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/gopd/index.d.ts
> [INFO] clean file: /tmp/junit-4357972596612704574/target/spotless-npm-install-cache/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/call-bind-apply-helpers/applyBind.d.ts
> [INFO] clean file: /tmp/junit-4357972596612704574/target/spotless-npm-install-cache/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/call-bind-apply-helpers/functionCall.d.ts
> [INFO] clean file: /tmp/junit-4357972596612704574/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: 1.701 s
> [INFO] Finished at: 2024-12-09T16:15:24+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-4357972596612704574/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-4357972596612704574/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-4357972596612704574/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
Raw output
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-4357972596612704574/target/spotless-npm-install-cache.
> [INFO] [BEGIN] Preparing NodeServerLayout[nodeModulesDir=/tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85, packageJsonFile=/tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/package.json, serveJsFile=/tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/serve.js, npmrcFile=/tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/.npmrc] for npm step com.diffplug.spotless.npm.NodeServeApp.
> [INFO] [END] Preparing NodeServerLayout[nodeModulesDir=/tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85, packageJsonFile=/tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/package.json, serveJsFile=/tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/serve.js, npmrcFile=/tmp/junit-4357972596612704574/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-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85, packageJsonFile=/tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/package.json, serveJsFile=/tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/serve.js, npmrcFile=/tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/.npmrc] with NodeModulesCachingNpmProcessFactory.
> [INFO] [BEGIN] Using cached node_modules for spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85 from /tmp/junit-4357972596612704574/target/spotless-npm-install-cache
> [INFO] [END] Using cached node_modules for spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85 from /tmp/junit-4357972596612704574/target/spotless-npm-install-cache (took 34ms)
> [INFO] [END] Installing npm dependencies for NodeServerLayout[nodeModulesDir=/tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85, packageJsonFile=/tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/package.json, serveJsFile=/tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/serve.js, npmrcFile=/tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/.npmrc] with NodeModulesCachingNpmProcessFactory. (took 39ms)
> [INFO] [BEGIN] Starting npm based server in /tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85 with NodeModulesCachingNpmProcessFactory.
> [INFO] [END] Starting npm based server in /tmp/junit-4357972596612704574/target/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85 with NodeModulesCachingNpmProcessFactory. (took 16ms)
> [INFO] clean file: /tmp/junit-4357972596612704574/target/spotless-npm-install-cache/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/has-symbols/shams.d.ts
> [INFO] clean file: /tmp/junit-4357972596612704574/target/spotless-npm-install-cache/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/has-symbols/index.d.ts
> [INFO] clean file: /tmp/junit-4357972596612704574/target/spotless-npm-install-cache/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/es-define-property/index.d.ts
> [INFO] clean file: /tmp/junit-4357972596612704574/target/spotless-npm-install-cache/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/es-errors/type.d.ts
> [INFO] clean file: /tmp/junit-4357972596612704574/target/spotless-npm-install-cache/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/hasown/index.d.ts
> [INFO] clean file: /tmp/junit-4357972596612704574/target/spotless-npm-install-cache/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/gopd/index.d.ts
> [INFO] clean file: /tmp/junit-4357972596612704574/target/spotless-npm-install-cache/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/call-bind-apply-helpers/applyBind.d.ts
> [INFO] clean file: /tmp/junit-4357972596612704574/target/spotless-npm-install-cache/spotless-prettier-node-modules-7625e07fbc33dcf5702ba782683aac85/node_modules/call-bind-apply-helpers/functionCall.d.ts
> [INFO] clean file: /tmp/junit-4357972596612704574/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: 1.701 s
> [INFO] Finished at: 2024-12-09T16:15:24+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-4357972596612704574/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-4357972596612704574/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-4357972596612704574/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
	at app//com.diffplug.spotless.maven.MavenRunner.runNoError(MavenRunner.java:78)
	at app//com.diffplug.spotless.maven.npm.NpmStepsWithNpmInstallCacheTest.run(NpmStepsWithNpmInstallCacheTest.java:144)
	at app//com.diffplug.spotless.maven.npm.NpmStepsWithNpmInstallCacheTest.prettierTypescriptWithDefaultCacheIsReusedOnSecondRun(NpmStepsWithNpmInstallCacheTest.java:88)
	at [email protected]/java.lang.reflect.Method.invoke(Method.java:566)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1541)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1541)