redhat-developer / redhat-developer/quarkus-ls

Validation should not report error for {size.or(20)}

Open
#836 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug qute template-file validation
Dominant language
Java
Stars
50
Forks
18
Avg merge
22h 11m
Merged PRs (30d)
3

Description

Given

{size.or(20)}

The Qute LS report a warning and an error

image

although this expression is valid because when or is used, size can be not defined.

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.

Research direction

No file or test is named. Start by locating Qute language-server validation for expressions using or, then reproduce {size.or(20)} and trace why an undefined size produces diagnostics. Done means this valid expression produces neither a warning nor an error, with regression coverage if the existing test structure supports it.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.