redhat-developer / redhat-developer/quarkus-ls

Invalid identifier causes "Generate missing Java member" to fail

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

Nobody has claimed this yet.

bug code action qute
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.