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

false-positive for it parameter in Qute template #1001

Open
datho7561 opened this issue Oct 10, 2024 · 2 comments
Open

false-positive for it parameter in Qute template #1001

datho7561 opened this issue Oct 10, 2024 · 2 comments
Labels
bug Something isn't working qute validation

Comments

@datho7561
Copy link
Contributor

See https://github.com/FroMage/quarkus-renarde-todo/blob/main/src/main/resources/templates/tags/user.html

The validator treats it as a java.lang.Object, so it marks all the method invocations as errors.

It makes more sense to skip validating method invocations and field accesses on this object, since its actual type is not know.

@datho7561 datho7561 added bug Something isn't working validation qute labels Oct 10, 2024
@angelozerr
Copy link
Contributor

In this usecase , the user tag is called here https://github.com/FroMage/quarkus-renarde-todo/blob/d03d71f6b41b14b228fe8ad782b32800dcb9b6f0/src/main/resources/templates/main.html#L19

{#user inject:user img=true size=20/}

As I have implemented Qute closed template, my plan is to provide a smart inference to say that it must be an User object instead of Object only.

@angelozerr
Copy link
Contributor

See issue #913

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 validation
Projects
None yet
Development

No branches or pull requests

2 participants