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 error on let-defined variable #993

Open
fbricon opened this issue Sep 5, 2024 · 0 comments
Open

False-positive error on let-defined variable #993

fbricon opened this issue Sep 5, 2024 · 0 comments
Labels
bug Something isn't working qute validation

Comments

@fbricon
Copy link
Collaborator

fbricon commented Sep 5, 2024

Given the following Qute template:

{#let name=http:param('name', 'Qute')}
<!DOCTYPE html>
<html>
<body>
<h1>Hello {name}</h1>
</body>
</html>

{name} is underlined as an error:

name cannot be resolved to a type.qute(UnknownType)

If you make a change in the file (add space), then a new error is displayed on param on the first line:

The method param(String) in the type QuteWebExtensions is not applicable for the arguments (String, String).qute(InvalidMethodParameter)

When navigating to QuteWebExtension, you can notice 2 param methods:
https://github.com/quarkiverse/quarkus-qute-web/blob/a6ea2371af5971154f016b9b74e928ec8c185ee7/runtime/src/main/java/io/quarkiverse/qute/web/runtime/QuteWebExtensions.java#L19-L25

@fbricon fbricon added bug Something isn't working validation qute labels Sep 5, 2024
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

1 participant