Skip to content
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 does not tell me which file has an error #20567

Closed
FroMage opened this issue Oct 6, 2021 · 3 comments · Fixed by #20587
Closed

Qute does not tell me which file has an error #20567

FroMage opened this issue Oct 6, 2021 · 3 comments · Fixed by #20587
Assignees
Labels
area/qute The template engine kind/bug Something isn't working
Milestone

Comments

@FroMage
Copy link
Member

FroMage commented Oct 6, 2021

Describe the bug

I'm porting some templates from a Play 1 app to Quarkus/Qute and I get the following exception:

2021-10-06 16:10:49,740 ERROR [io.qua.dep.dev.IsolatedDevModeMain] (vert.x-worker-thread-0) Failed to start quarkus: java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.qute.deployment.QuteProcessor#analyzeTemplates threw an exception: java.lang.IllegalArgumentException: Not a virtual method: )(/
	at io.quarkus.qute.Expressions.parseVirtualMethodParams(Expressions.java:39)
	at io.quarkus.qute.Parser.createPart(Parser.java:761)
	at io.quarkus.qute.Parser.parseExpression(Parser.java:743)
	at io.quarkus.qute.Parser.createPart(Parser.java:764)
	at io.quarkus.qute.Parser.parseExpression(Parser.java:743)
	at io.quarkus.qute.Parser.apply(Parser.java:817)
	at io.quarkus.qute.Parser.flushTag(Parser.java:486)
	at io.quarkus.qute.Parser.tag(Parser.java:293)
	at io.quarkus.qute.Parser.processCharacter(Parser.java:200)
	at io.quarkus.qute.Parser.parse(Parser.java:132)
	at io.quarkus.qute.EngineImpl.load(EngineImpl.java:138)

And it doesn't tell me which file it is, and I have dozens of them, so no idea where the error is :(

Can we make sure we always display the error location?

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.3.0.Final

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@FroMage FroMage added kind/bug Something isn't working area/qute The template engine labels Oct 6, 2021
@quarkus-bot
Copy link

quarkus-bot bot commented Oct 6, 2021

/cc @mkouba

@mkouba
Copy link
Contributor

mkouba commented Oct 7, 2021

Ah yes, this part of the parser (virtual methods) is probably the last part which is missing the "standard error reporting". Let's fix that!

@FroMage
Copy link
Member Author

FroMage commented Oct 7, 2021

Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/qute The template engine kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants