After switching to the release version (18) of the plugin today I started getting these errors in my Qute templates.
This happens in a template that uses a PageData wrapper which holds the things I need.
If the passed argument is a primitive it works fine.
[Error - 5:14:15 PM] Request textDocument/inlayHint failed.
Message: Internal error.
Code: -32603
java.util.concurrent.CompletionException: java.lang.IllegalStateException: Duplicate key data (attempted merging values ExtendedDataModelParameter [
key = "data"
sourceType = "...source"
dataMethodInvocation = false
] and ExtendedDataModelParameter [
key = "data"
sourceType = "...source"
dataMethodInvocation = false
])
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source)
at java.base/java.util.concurrent.CompletableFuture.uniApplyNow(Unknown Source)
at java.base/java.util.concurrent.CompletableFuture.uniApplyStage(Unknown Source)
at java.base/java.util.concurrent.CompletableFuture.thenApply(Unknown Source)
at com.redhat.qute.parser.template.Template.getParameterDataModel(Template.java:222)
at com.redhat.qute.parser.template.Template.findInInitialDataModel(Template.java:195)
at com.redhat.qute.parser.expression.ObjectPart.resolveJavaType(ObjectPart.java:126)
at com.redhat.qute.project.JavaDataModelCache.resolveJavaType(JavaDataModelCache.java:470)
at com.redhat.qute.project.JavaDataModelCache.resolveJavaType(JavaDataModelCache.java:362)
at com.redhat.qute.project.JavaDataModelCache.resolveJavaType(JavaDataModelCache.java:127)
at com.redhat.qute.project.JavaDataModelCache.resolveJavaType(JavaDataModelCache.java:111)
at com.redhat.qute.project.QuteProject.resolveJavaType(QuteProject.java:651)
at com.redhat.qute.services.inlayhint.InlayHintASTVistor.getJavaType(InlayHintASTVistor.java:366)
at com.redhat.qute.services.inlayhint.InlayHintASTVistor.createJavaTypeInlayHint(InlayHintASTVistor.java:322)
at com.redhat.qute.services.inlayhint.InlayHintASTVistor.visit(InlayHintASTVistor.java:113)
at com.redhat.qute.parser.template.sections.ForSection.accept0(ForSection.java:50)
at com.redhat.qute.parser.template.Node.accept(Node.java:338)
at com.redhat.qute.parser.template.Node.acceptChildren(Node.java:405)
at com.redhat.qute.parser.template.sections.IncludeSection.accept0(IncludeSection.java:141)
at com.redhat.qute.parser.template.Node.accept(Node.java:338)
at com.redhat.qute.parser.template.Node.acceptChildren(Node.java:405)
at com.redhat.qute.parser.template.Template.accept0(Template.java:312)
at com.redhat.qute.parser.template.Node.accept(Node.java:338)
at com.redhat.qute.services.QuteInlayHint.lambda$getInlayHint$0(QuteInlayHint.java:74)
at java.base/java.util.concurrent.CompletableFuture.uniApplyNow(Unknown Source)
at java.base/java.util.concurrent.CompletableFuture.uniApplyStage(Unknown Source)
at java.base/java.util.concurrent.CompletableFuture.thenApply(Unknown Source)
at com.redhat.qute.services.QuteInlayHint.getInlayHint(QuteInlayHint.java:59)
at com.redhat.qute.services.QuteLanguageService.getInlayHint(QuteLanguageService.java:216)
at com.redhat.qute.ls.template.TemplateFileTextDocumentService.lambda$inlayHint$23(TemplateFileTextDocumentService.java:298)
at com.redhat.qute.ls.commons.ModelTextDocuments.lambda$computeModelAsyncCompose$1(ModelTextDocuments.java:144)
at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(Unknown Source)
at java.base/java.util.concurrent.CompletableFuture$Completion.exec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool.scan(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
After switching to the release version (18) of the plugin today I started getting these errors in my Qute templates.
This happens in a template that uses a PageData wrapper which holds the things I need.
If the passed argument is a primitive it works fine.