redhat-developer / redhat-developer/quarkus-ls
Deleteing a Java file from the project doesn't refresh Qute validation
Open
Nobody has claimed this yet.
bug
qute
validation
- Dominant language
- Java
- Stars
- 50
- Forks
- 18
- Avg merge
- 22h 11m
- Merged PRs (30d)
- 3
Description
To reproduce the issue:
- Create a template extensions file that defines a template extension for
java.lang.Stringcalledsandwich()
eg.
@io.quarkus.qute.TemplateExtension
public class TemplateExtensions {
public static String sandwich(String str) {
return str + "!";
}
}
- Create the following template in the templates folder:
{@String myString}
{myString.sandwich}
- Delete the file that declares the template extension
Expected: the qute template validation refreshes, and {myString.sandwich} is marked as invalid
Actual: {myString.sandwich} is still marked as valid, and doesn't update until you modify one of the Java files.
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.
Research direction
Start with the template extensions file and the Qute validation refresh triggered by changes to Java files. Reproduce the issue using the template in the templates folder, delete the file declaring the String extension, and verify that {myString.sandwich} becomes invalid without modifying another Java file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100