-
Notifications
You must be signed in to change notification settings - Fork 17
Qute debugging support inside Java file #1093
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Qute debugging support inside Java file #1093
Conversation
a1980b3 to
47fb5d7
Compare
|
Is it working wirh simple string? |
Do you mean as the parameter to the annotation, or something like |
|
I mean this sample redhat-developer/vscode-quarkus#1196 |
|
I double checked and debugging this template: @TemplateContents("{@java.lang.String name}\n" +
"hello\n" +
"{#if name == null or name.isEmpty}\n" +
"world\n" +
"{#else}\n" +
"{name}\n" +
"{/if}")works properly like that but not if multiline strings are used: @TemplateContents("""
{@java.lang.String name}
hello
{#if name == null or name.isEmpty}
world
{#else}
{name}
{/if}""") |
531116e to
3f00531
Compare
Please retry it should be fixed now. I am using ASTVisitor to get the line start. @datho7561 please note that it should work if you change the content of TemplateContents or add new lines before TemplateContents after doing a Java file save. When you save Java file, Quarkus app is restarted and debugger is reset to remove the start line cache. |
34f4a8d to
86ef3d4
Compare
641e3b1 to
6a01ff6
Compare
|
@datho7561 could your synchronize the 3 PRs and retest it again. I have managed TemplateContents in Java method which works with CheckedTemplate. Here the usecase: |
0ceaf79 to
16390c3
Compare
Signed-off-by: azerr <[email protected]>
16390c3 to
65e7ebb
Compare
datho7561
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks, Angelo!

Qute debugging support inside Java file