redhat-developer / redhat-developer/vscode-quarkus

qute template creation issue

Open
#1,006 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug qute
Dominant language
TypeScript
Stars
79
Forks
31
Avg merge
12h 51m
Merged PRs (30d)
6

Description

writing this code:

 @CheckedTemplate
    public static class Templates {
        public static native TemplateInstance markdown(String name); 
    }   

it shows "hint" where I can click create .html - though i'm not creating .html but anyhow its nice.

but when clicking I get this:

Apr 16, 2025 9:08:33 AM com.redhat.qute.ls.QuteLanguageServer initialize
INFO: Initializing Qute server 0.21.2-20250412-0803 with /Users/manderse/.cursor/extensions/redhat.java-1.41.1-darwin-arm64/jre/21.0.6-macosx-aarch64
[Error - 9:52:27 AM] Request textDocument/codeLens failed.
  Message: Request qute/java/codeLens failed with message: Cannot invoke "org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.isCompactConstructor()" because "methodDeclaration" is null
  Code: -32603 
[Error - 6:48:53 PM] Request workspace/executeCommand failed.
  Message: Cannot findproject with the uri 'qmcp-cli'.
  Code: -32001 
[object Object]
[Error - 6:49:04 PM] Request workspace/executeCommand failed.
  Message: Cannot findproject with the uri 'qmcp-cli'.
  Code: -32001 
[object Object]

screen shot showing it:

Image

maybe issue is that I have two projects/folders in the workspace?

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 example in a workspace with the Qute language server and inspect the codeLens and workspace/executeCommand request paths mentioned in the logs. Determine why the @CheckedTemplate case produces a null method declaration and why the qmcp-cli project cannot be found; done means both requests complete without the reported errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.