redhat-developer / redhat-developer/quarkus-ls
Arithmetic operations not supported in Qute templates
Open
@angelozerr is already working on this.
Since Apr 5, 2023.
bug
qute
- Dominant language
- Java
- Stars
- 50
- Forks
- 18
- Avg merge
- 22h 11m
- Merged PRs (30d)
- 3
Description
eg. {extensions.size + 1} reports a couple errors,
- [{
"resource": "/Users/fbricon/Dev/projects/marketplace-stats/marketplace-stats/src/main/resources/templates/index.html",
"owner": "quarkus",
"severity": 8,
"message": "Property/method [size+1] not found on class [java.util.Collection<org.fred.vsc.marketplace.statistics.models.Extension>] nor handled by an extension method",
"startLineNumber": 1,
"startColumn": 1,
"endLineNumber": 1,
"endColumn": 1
}]
[{
"resource": "/Users/fbricon/Dev/projects/marketplace-stats/marketplace-stats/src/main/resources/templates/index.html",
"owner": "generated_diagnostic_collection_name#6",
"code": "InvalidVirtualMethod",
"severity": 8,
"message": "The virtual methodplusin the typeStringTemplateExtensionsis not applicable for the base objectinttype.",
"source": "qute",
"startLineNumber": 1,
"startColumn": 18,
"endLineNumber": 1,
"endColumn": 19
}]
But Quarkus/Qute runs fine with it:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.