Skip to content

qute template creation issue #1006

@maxandersen

Description

@maxandersen

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingqute

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions