-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Unable to compile qute codestart to native on windows #40055
Comments
This is a problem with your config. Try either two backslashes (to escape the backslash), or a forward slash? Path separators on windows are confusing. The OS uses backslash, but not much else does. |
TBH as this is what was generated by code.quarkus.io I would expect it work out of the box without any modification. + just tested it again and 3.8.2 work and 3.8. not working. So I think it's not wrong config. Looking at commits between these version it's possible that this is caused by #39434 but not sure |
Yes, I agree that it should work.
The problem with However, the |
What is it you are unsure about exactly? |
I'm not sure this error is caused by the |
I would bet the problem is that you have an unescaped Either you need to escape it (together with any control character if you expect your path to not contain any so maybe a |
I should have another go at re-writing it using |
That's not redundant, sorry. @mkouba can we trust our current testsuite if I suggest a refactoring of this scanning impl? I already made an attempt yesterday and the CI is green. |
I mean with the Windows paths and case-sensitive paths. I think previously it caught these issues. Just to be sure. |
I had a closer look and I think that I think we should have had a specific method for the glob -> pattern thing and that by default it should have considered the path as is. It's too late for that as this build item is massively used. Now two things:
|
Our test suite does not have a lot of tests covering the native image 🤷. Also there's only one test that asserts the produced What is this refactoring about? I mean, does it solve a particular problem, is it worth the risk? |
Hm, the javadoc of |
Well, I think it's worse than that because it somehow evolved along the way because GraalVM changed their inputs. Thus why we have something to translate globs to regexps as I think it used to be supporting globs... For pattern and globs, Problem is I don't think we can change I wonder if we should mark it as deprecated and have:
|
Sorry for hijacking the native issue discussion.
Here is the change I tried main...aloubyansky:quarkus:qute-template-scan |
I think this might be relevant here, but I've been doing some fiddling with the resource patterns as part of my work in #36826. In particular, I had to this to the JSON builder:
I did this because the native image agent can generate resource patterns like this:
And I don't want those being escaped when filtering resources to produce a new Also, seems like this resource format might be changing sometime soon, see oracle/graal#7487 |
@aloubyansky Ok, pls send a PR. |
Describe the bug
When I try compile resteasy-qute and rest-qute (resteasy-reactive-qute) codestart to native on windows the compilation fail with this error:
Expected behavior
Finish build without any error.
Actual behavior
How to Reproduce?
mvn.cmd install -Dnative
Output of
uname -a
orver
Windows
Output of
java -version
No response
Mandrel or GraalVM version (if different from Java)
GraalVM 23.1 JDK 21.0.2+13-LTS-jvmci-23.1-b30
Quarkus version or git rev
3.8.3+, 3.9.0.CR2+
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache maven 3.8.8
Additional information
Latest version where this is working are 3.8.2 and 3.9.0.CR1 (just tested if all 3.9 is affected)
Tried it on Windows 10 but this happening also on github runners. Tested it on Linux and build fine.
The text was updated successfully, but these errors were encountered: