redhat-developer / redhat-developer/quarkus-ls
Invalid identifier causes "Generate missing Java member" to fail
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 50
- Forks
- 18
- Avg merge
- 22h 11m
- Merged PRs (30d)
- 3
Description
If you include a invalid identifier (eg. a keyword) as part of a reference in a Qute template, an error is logged, since the "Generate missing Java member" CodeAction fails.
To reproduce this issue, do the following in a Quarkus project with the Qute extension installed:
Make a class:
package org.acme;
public class Book {
private String title;
public Book() {}
}
then a template:
{@org.acme.Book book}
{book.short}
The error should appear
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
Reproduce the failure in a Quarkus project with the Qute extension using the Book class and template shown in the issue. Start at the “Generate missing Java member” CodeAction and trace how the invalid identifier short is handled; done means the CodeAction no longer fails or logs an error for this template.
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
- 45/100