Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClassCastException seen in textDocument/codelens #859

Closed
fbricon opened this issue Apr 5, 2023 · 2 comments
Closed

ClassCastException seen in textDocument/codelens #859

fbricon opened this issue Apr 5, 2023 · 2 comments
Labels
bug Something isn't working qute
Milestone

Comments

@fbricon
Copy link
Collaborator

fbricon commented Apr 5, 2023

No idea what caused it, but basically I opened https://github.com/FroMage/RivieraDEV-Quarkus/blob/main/src/main/resources/templates/tags/fullSchedule.html

[Error - 14:08:17] Request textDocument/codeLens failed.
  Message: Internal error.
  Code: -32603 
java.util.concurrent.CompletionException: java.lang.ClassCastException: class com.redhat.qute.parser.expression.MethodPart cannot be cast to class com.redhat.qute.parser.expression.ObjectPart (com.redhat.qute.parser.expression.MethodPart and com.redhat.qute.parser.expression.ObjectPart are in unnamed module of loader 'app')
	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.services.QuteCodeLens.getCodelens(QuteCodeLens.java:64)
	at com.redhat.qute.services.QuteLanguageService.getCodeLens(QuteLanguageService.java:115)
	at com.redhat.qute.ls.template.TemplateFileTextDocumentService.lambda$codeLens$6(TemplateFileTextDocumentService.java:162)
	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)
Caused by: java.lang.ClassCastException: class com.redhat.qute.parser.expression.MethodPart cannot be cast to class com.redhat.qute.parser.expression.ObjectPart (com.redhat.qute.parser.expression.MethodPart and com.redhat.qute.parser.expression.ObjectPart are in unnamed module of loader 'app')
	at com.redhat.qute.parser.expression.Parts.getObjectPart(Parts.java:60)
	at com.redhat.qute.parser.template.Expression.getObjectPart(Expression.java:109)
	at com.redhat.qute.utils.UserTagUtils.collectUserTagParameters(UserTagUtils.java:129)
	at com.redhat.qute.utils.UserTagUtils.collectUserTagParameters(UserTagUtils.java:117)
	at com.redhat.qute.utils.UserTagUtils.collectUserTagParameters(UserTagUtils.java:123)
	at com.redhat.qute.utils.UserTagUtils.collectUserTagParameters(UserTagUtils.java:123)
	at com.redhat.qute.utils.UserTagUtils.collectUserTagParameters(UserTagUtils.java:101)
	at com.redhat.qute.services.QuteCodeLens.collectUserTagCodeLenses(QuteCodeLens.java:225)
	at com.redhat.qute.services.QuteCodeLens.lambda$getCodelens$0(QuteCodeLens.java:80)
	... 14 more
@fbricon fbricon added bug Something isn't working qute labels Apr 5, 2023
@fbricon fbricon changed the title ClassCastExcception seen in textDocument/codelens ClassCastException seen in textDocument/codelens Apr 7, 2023
@fbricon
Copy link
Collaborator Author

fbricon commented Apr 7, 2023

@fbricon fbricon closed this as completed Apr 7, 2023
@fbricon fbricon added this to the 0.15.0 milestone Apr 7, 2023
@angelozerr
Copy link
Contributor

Indeed it should be fixed with this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working qute
Projects
None yet
Development

No branches or pull requests

2 participants