redhat-developer / redhat-developer/quarkus-ls

Deleteing a Java file from the project doesn't refresh Qute validation

Open
#833 1 comment 0 reactions 0 assignees View on GitHub

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:

  1. Create a template extensions file that defines a template extension for java.lang.String called sandwich()

eg.

@io.quarkus.qute.TemplateExtension
public class TemplateExtensions {
	public static String sandwich(String str) {
		return str + "!";
	}
}
  1. Create the following template in the templates folder:
{@String myString}

{myString.sandwich}
  1. 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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.