redhat-developer / redhat-developer/quarkus-ls

Arithmetic operations not supported in Qute templates

Open
#857 1 comment 0 reactions 1 assignee View on GitHub

@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 method plus in the type StringTemplateExtensions is not applicable for the base object int type.",
    "source": "qute",
    "startLineNumber": 1,
    "startColumn": 18,
    "endLineNumber": 1,
    "endColumn": 19
    }]

But Quarkus/Qute runs fine with it:

Screenshot 2023-04-05 at 12 27 35

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.