redhat-developer / redhat-developer/quarkus-ls

"Insert required input forms" overwrites existing content of `{#form}` section

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

Nobody has claimed this yet.

bug code action qute renarde
Dominant language
Java
Stars
50
Forks
18
Avg merge
22h 11m
Merged PRs (30d)
3

Description

To reproduce the bug:

  1. Open https://github.com/FroMage/quarkus-renarde-todo/blob/7784cba6de7f31e937726eec6725df3c95eca1f6/src/main/resources/templates/Login/login.html#L22
  2. Open quick fixes for the {#form} on line 22
  3. Select "Insert required input forms"

Expected: I don't expect the "Missing expected input(s): userName" warning to appear at all, since the <input> tag is declared in one of the included user tags. However, I understand this is a complex to detect. In the case that the <input> was actually not included, I would expect the <input> tag to be appended at the end of the section.

Actual: the entire content of the {#form} section is replaced with one <input></input> HTML tag.

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

Reproduce the quick fix on src/main/resources/templates/Login/login.html at line 22, using the referenced repository revision. Start with the "Insert required input forms" action and inspect how it handles the existing {#form} section and included user tags. Done means missing inputs are appended without replacing existing section content, while included inputs do not produce a warning.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.