manifold-systems / manifold

Manifold is a Java compiler plugin, its features include Metaprogramming, Properties, Extension Methods, Operator Overloading, Templates, a Preprocessor, and more.
http://manifold.systems/
Apache License 2.0
2.42k stars 125 forks source link

[manifold-sql] compiler error (NPE) when using merge into #590

Closed oldshensheep closed 6 months ago

oldshensheep commented 6 months ago

Describe the bug Compile the code below result in NPE To Reproduce create table

create table if not exists abc
(
    id      serial8 primary key,
    from_id bigint  not null
)

compile code with the code below

DB.addSqlChange(ctx->{
  """
    [.sql/]
        MERGE INTO abc AS target
        USING abc
        ON target.from_id = 1
        WHEN MATCHED THEN
            DO NOTHING""".execute();
});

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem (drag/drop them here).

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

Stack trace

An exception has occurred in the compiler (21.0.2). Please file a bug against the Java compiler via the Java bug reporting page (https://bugreport.java.com) after checking the Bug Database (https://bugs.java.com) for duplicates. Include your program, the following diagnostic, and the parameters passed to the Java compiler in your report. Thank you.
java.lang.NullPointerException: Cannot invoke "manifold.sql.query.api.QueryTable.findSelectedTable()" because the return value of "manifold.sql.query.type.QueryParentType.getQuery()" is null
    at manifold.sql.query.type.QueryParentType.addFetchMethods(QueryParentType.java:83)
    at manifold.sql.query.type.QueryParentType.render(QueryParentType.java:74)
    at manifold.sql.query.type.SqlManifold.contribute(SqlManifold.java:117)
    at manifold.sql.query.type.SqlManifold.contribute(SqlManifold.java:30)
    at manifold.api.type.ResourceFileTypeManifold.contribute(ResourceFileTypeManifold.java:430)
    at manifold.internal.host.SimpleModule.compoundProduce(SimpleModule.java:166)
    at manifold.internal.host.SimpleModule.lambda$produceFile$0(SimpleModule.java:139)
    at manifold.internal.javac.SourceSupplier.getSource(SourceSupplier.java:50)
    at manifold.internal.javac.GeneratedJavaStubFileObject.lambda$new$0(GeneratedJavaStubFileObject.java:40)
    at manifold.util.concurrent.LocklessLazyVar$1.init(LocklessLazyVar.java:91)
    at manifold.util.concurrent.LocklessLazyVar.get(LocklessLazyVar.java:40)
    at manifold.internal.javac.GeneratedJavaStubFileObject.getCharContent(GeneratedJavaStubFileObject.java:101)
    at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.readSourceFile(JavaCompiler.java:829)
    at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.readSourceFile(JavaCompiler.java:810)
    at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.lambda$new$0(JavaCompiler.java:357)
    at jdk.compiler/com.sun.tools.javac.code.ClassFinder.fillIn(ClassFinder.java:377)
    at jdk.compiler/com.sun.tools.javac.code.ClassFinder.complete(ClassFinder.java:302)
    at jdk.compiler/com.sun.tools.javac.code.Symbol.complete(Symbol.java:682)
    at jdk.compiler/com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1418)
    at jdk.compiler/com.sun.tools.javac.model.JavacElements.nameToSymbol(JavacElements.java:264)
    at jdk.compiler/com.sun.tools.javac.model.JavacElements.doGetElement(JavacElements.java:186)
    at jdk.compiler/com.sun.tools.javac.model.JavacElements.doGetTypeElement(JavacElements.java:174)
    at jdk.compiler/com.sun.tools.javac.model.JavacElements.getTypeElement(JavacElements.java:169)
    at manifold.internal.javac.JavaDynamicJdk_17.getTypeElement(JavaDynamicJdk_17.java:87)
    at manifold.internal.javac.ManAttr.getFragmentValueType(ManAttr.java:187)
    at manifold.internal.javac.ManAttr.handleFragmentStringLiteral(ManAttr.java:150)
    at manifold.internal.javac.ManAttr_17.visitLiteral(ManAttr_17.java:1090)
    at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCLiteral.accept(JCTree.java:2743)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:662)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:4400)
    at manifold.internal.javac.ManAttr_17.visitSelect(ManAttr_17.java:145)
    at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:2581)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:662)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.visitApply(Attr.java:2617)
    at manifold.internal.javac.ManAttr_17.visitApply(ManAttr_17.java:580)
    at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1816)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:662)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:715)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.visitExec(Attr.java:2326)
    at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1603)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:662)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStat(Attr.java:736)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStats(Attr.java:755)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.visitLambda(Attr.java:3223)
    at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCLambda.accept(JCTree.java:1993)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:662)
    at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredType.complete(DeferredAttr.java:316)
    at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:355)
    at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:339)
    at jdk.compiler/com.sun.tools.javac.comp.Resolve$MethodResultInfo.check(Resolve.java:1073)
    at jdk.compiler/com.sun.tools.javac.comp.Resolve$4.checkArg(Resolve.java:900)
    at jdk.compiler/com.sun.tools.javac.comp.Resolve$AbstractMethodCheck.argumentsAcceptable(Resolve.java:788)
    at jdk.compiler/com.sun.tools.javac.comp.Resolve$4.argumentsAcceptable(Resolve.java:909)
    at jdk.compiler/com.sun.tools.javac.comp.Resolve.rawInstantiate(Resolve.java:631)
    at jdk.compiler/com.sun.tools.javac.comp.Resolve.checkMethod(Resolve.java:657)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.checkMethod(Attr.java:4949)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.checkIdInternal(Attr.java:4741)
    at jdk.compiler/com.sun.tools.javac.comp.AttrRecover.basicMethodInvocationRecovery(AttrRecover.java:224)
    at jdk.compiler/com.sun.tools.javac.comp.AttrRecover.recoverMethodInvocation(AttrRecover.java:214)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.checkMethodIdInternal(Attr.java:4644)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.checkId(Attr.java:4634)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:4527)
    at manifold.internal.javac.ManAttr_17.visitSelect(ManAttr_17.java:145)
    at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:2581)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:662)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.visitApply(Attr.java:2617)
    at manifold.internal.javac.ManAttr_17.visitApply(ManAttr_17.java:580)
    at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1816)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:662)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:715)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.visitExec(Attr.java:2326)
    at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1603)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:662)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStat(Attr.java:736)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStats(Attr.java:755)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.visitLambda(Attr.java:3223)
    at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCLambda.accept(JCTree.java:1993)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:662)
    at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredType.complete(DeferredAttr.java:316)
    at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:355)
    at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:339)
    at jdk.compiler/com.sun.tools.javac.comp.Resolve$MethodResultInfo.check(Resolve.java:1073)
    at jdk.compiler/com.sun.tools.javac.comp.Resolve$4.checkArg(Resolve.java:900)
    at jdk.compiler/com.sun.tools.javac.comp.Resolve$AbstractMethodCheck.argumentsAcceptable(Resolve.java:788)
    at jdk.compiler/com.sun.tools.javac.comp.Resolve$4.argumentsAcceptable(Resolve.java:909)
    at jdk.compiler/com.sun.tools.javac.comp.Resolve.rawInstantiate(Resolve.java:631)
    at jdk.compiler/com.sun.tools.javac.comp.Resolve.checkMethod(Resolve.java:657)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.checkMethod(Attr.java:4949)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.checkIdInternal(Attr.java:4741)
    at jdk.compiler/com.sun.tools.javac.comp.AttrRecover.basicMethodInvocationRecovery(AttrRecover.java:224)
    at jdk.compiler/com.sun.tools.javac.comp.AttrRecover.recoverMethodInvocation(AttrRecover.java:214)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.checkMethodIdInternal(Attr.java:4644)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.checkId(Attr.java:4634)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:4527)
    at manifold.internal.javac.ManAttr_17.visitSelect(ManAttr_17.java:145)
    at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:2581)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:662)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.visitApply(Attr.java:2617)
    at manifold.internal.javac.ManAttr_17.visitApply(ManAttr_17.java:580)
    at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1816)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:662)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:715)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.visitExec(Attr.java:2326)
    at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1603)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:662)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStat(Attr.java:736)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStats(Attr.java:755)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.visitLambda(Attr.java:3223)
    at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCLambda.accept(JCTree.java:1993)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:662)
    at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredType.complete(DeferredAttr.java:316)
    at jdk.compiler/com.sun.tools.javac.comp.ArgumentAttr$ArgumentType.complete(ArgumentAttr.java:364)
    at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:355)
    at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredType.check(DeferredAttr.java:339)
    at jdk.compiler/com.sun.tools.javac.comp.Resolve$MethodResultInfo.check(Resolve.java:1073)
    at jdk.compiler/com.sun.tools.javac.comp.Resolve$4.checkArg(Resolve.java:900)
    at jdk.compiler/com.sun.tools.javac.comp.Resolve$AbstractMethodCheck.argumentsAcceptable(Resolve.java:788)
    at jdk.compiler/com.sun.tools.javac.comp.Resolve$4.argumentsAcceptable(Resolve.java:909)
    at jdk.compiler/com.sun.tools.javac.comp.Resolve.rawInstantiate(Resolve.java:631)
    at jdk.compiler/com.sun.tools.javac.comp.Resolve.checkMethod(Resolve.java:657)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.checkMethod(Attr.java:4949)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.checkIdInternal(Attr.java:4741)
    at jdk.compiler/com.sun.tools.javac.comp.AttrRecover.basicMethodInvocationRecovery(AttrRecover.java:224)
    at jdk.compiler/com.sun.tools.javac.comp.AttrRecover.recoverMethodInvocation(AttrRecover.java:214)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.checkMethodIdInternal(Attr.java:4644)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.checkId(Attr.java:4634)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:4527)
    at manifold.internal.javac.ManAttr_17.visitSelect(ManAttr_17.java:145)
    at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:2581)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:662)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.visitApply(Attr.java:2617)
    at manifold.internal.javac.ManAttr_17.visitApply(ManAttr_17.java:580)
    at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1816)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:662)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:708)
    at manifold.internal.javac.ManAttr_17.attribExpr(ManAttr_17.java:882)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.visitVarDef(Attr.java:1305)
    at manifold.internal.javac.ManAttr_17.visitVarDef(ManAttr_17.java:274)
    at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:1022)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:662)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStat(Attr.java:736)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStats(Attr.java:755)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1439)
    at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1092)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:662)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStat(Attr.java:736)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.visitMethodDef(Attr.java:1229)
    at manifold.internal.javac.ManAttr_17.visitMethodDef(ManAttr_17.java:216)
    at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:916)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:662)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStat(Attr.java:736)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:5655)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribClass(Attr.java:5543)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attribClass(Attr.java:5367)
    at manifold.internal.javac.ManAttr_17.attribClass(ManAttr_17.java:1111)
    at jdk.compiler/com.sun.tools.javac.comp.Attr.attrib(Attr.java:5306)
    at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1359)
    at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:976)
    at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.lambda$doCall$0(JavacTaskImpl.java:104)
    at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.invocationHelper(JavacTaskImpl.java:152)
    at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:100)
    at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:94)
    at org.gradle.internal.compiler.java.IncrementalCompileTask.call(IncrementalCompileTask.java:92)
    at org.gradle.api.internal.tasks.compile.AnnotationProcessingCompileTask.call(AnnotationProcessingCompileTask.java:94)
    at org.gradle.api.internal.tasks.compile.ResourceCleaningCompilationTask.call(ResourceCleaningCompilationTask.java:57)
    at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:59)
    at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:41)
    at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJavaCompiler.java:98)
    at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:52)
    at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:38)
    at org.gradle.api.internal.tasks.compile.AnnotationProcessorDiscoveringCompiler.execute(AnnotationProcessorDiscoveringCompiler.java:52)
    at org.gradle.api.internal.tasks.compile.AnnotationProcessorDiscoveringCompiler.execute(AnnotationProcessorDiscoveringCompiler.java:38)
    at org.gradle.api.internal.tasks.compile.ModuleApplicationNameWritingCompiler.execute(ModuleApplicationNameWritingCompiler.java:46)
    at org.gradle.api.internal.tasks.compile.ModuleApplicationNameWritingCompiler.execute(ModuleApplicationNameWritingCompiler.java:36)
    at org.gradle.jvm.toolchain.internal.DefaultToolchainJavaCompiler.execute(DefaultToolchainJavaCompiler.java:57)
    at org.gradle.api.tasks.compile.JavaCompile.lambda$createToolchainCompiler$3(JavaCompile.java:202)
    at org.gradle.api.internal.tasks.compile.CleaningJavaCompiler.execute(CleaningJavaCompiler.java:53)
    at org.gradle.api.internal.tasks.compile.incremental.IncrementalCompilerFactory.lambda$createRebuildAllCompiler$0(IncrementalCompilerFactory.java:52)
    at org.gradle.api.internal.tasks.compile.incremental.SelectiveCompiler.execute(SelectiveCompiler.java:70)
    at org.gradle.api.internal.tasks.compile.incremental.SelectiveCompiler.execute(SelectiveCompiler.java:44)
    at org.gradle.api.internal.tasks.compile.incremental.IncrementalResultStoringCompiler.execute(IncrementalResultStoringCompiler.java:66)
    at org.gradle.api.internal.tasks.compile.incremental.IncrementalResultStoringCompiler.execute(IncrementalResultStoringCompiler.java:52)
    at org.gradle.api.internal.tasks.compile.CompileJavaBuildOperationReportingCompiler$1.call(CompileJavaBuildOperationReportingCompiler.java:64)
    at org.gradle.api.internal.tasks.compile.CompileJavaBuildOperationReportingCompiler$1.call(CompileJavaBuildOperationReportingCompiler.java:48)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
    at org.gradle.api.internal.tasks.compile.CompileJavaBuildOperationReportingCompiler.execute(CompileJavaBuildOperationReportingCompiler.java:48)
    at org.gradle.api.tasks.compile.JavaCompile.performCompilation(JavaCompile.java:220)
    at org.gradle.api.tasks.compile.JavaCompile.performIncrementalCompilation(JavaCompile.java:161)
    at org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:146)
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
    at java.base/java.lang.reflect.Method.invoke(Method.java:580)
    at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125)
    at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:45)
    at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51)
    at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.execute(IncrementalTaskAction.java:26)
    at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:29)
    at org.gradle.api.internal.tasks.execution.TaskExecution$3.run(TaskExecution.java:244)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)
    at org.gradle.api.internal.tasks.execution.TaskExecution.executeAction(TaskExecution.java:229)
    at org.gradle.api.internal.tasks.execution.TaskExecution.executeActions(TaskExecution.java:212)
    at org.gradle.api.internal.tasks.execution.TaskExecution.executeWithPreviousOutputFiles(TaskExecution.java:195)
    at org.gradle.api.internal.tasks.execution.TaskExecution.execute(TaskExecution.java:162)
    at org.gradle.internal.execution.steps.ExecuteStep.executeInternal(ExecuteStep.java:105)
    at org.gradle.internal.execution.steps.ExecuteStep.access$000(ExecuteStep.java:44)
    at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:59)
    at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:56)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
    at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
    at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
    at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:56)
    at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:44)
    at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:41)
    at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:74)
    at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:55)
    at org.gradle.internal.execution.steps.PreCreateOutputParentsStep.execute(PreCreateOutputParentsStep.java:50)
    at org.gradle.internal.execution.steps.PreCreateOutputParentsStep.execute(PreCreateOutputParentsStep.java:28)
    at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:67)
    at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:37)
    at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:61)
    at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:26)
    at org.gradle.internal.execution.steps.CaptureOutputsAfterExecutionStep.execute(CaptureOutputsAfterExecutionStep.java:67)
    at org.gradle.internal.execution.steps.CaptureOutputsAfterExecutionStep.execute(CaptureOutputsAfterExecutionStep.java:45)
    at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:40)
    at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:29)
    at org.gradle.internal.execution.steps.BuildCacheStep.executeWithoutCache(BuildCacheStep.java:189)
    at org.gradle.internal.execution.steps.BuildCacheStep.lambda$execute$1(BuildCacheStep.java:75)
    at org.gradle.internal.Either$Right.fold(Either.java:175)
    at org.gradle.internal.execution.caching.CachingState.fold(CachingState.java:62)
    at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:73)
    at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:48)
    at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:46)
    at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:35)
    at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:76)
    at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$2(SkipUpToDateStep.java:54)
    at java.base/java.util.Optional.orElseGet(Optional.java:364)
    at
rsmckinney commented 6 months ago

Fix available with release 2024.1.15. Thanks for reporting this!