-
Notifications
You must be signed in to change notification settings - Fork 16
[HttpClient] Improve error when no client implementation found #678
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
Conversation
Add the: `3. Using JDK 23+, and need to set property <maven.compiler.proc>full</maven.compiler.proc>` ... just to be a bit more explicit. The `avaje-http-client-generator dependency was not available` is accurate but perhaps it's good to explicitly mention the maven.compiler.proc full issue.
| + "1. Missing @Client or @Client.Import annotation.\n" | ||
| + "2. The avaje-http-client-generator dependency was not available during compilation\n"); | ||
| + "2. The avaje-http-client-generator dependency was not available during compilation\n" | ||
| + "3. Using JDK 23+, and need to set property <maven.compiler.proc>full</maven.compiler.proc>\n"); |
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.
| + "3. Using JDK 23+, and need to set property <maven.compiler.proc>full</maven.compiler.proc>\n"); | |
| + (Runtime.version().feature() >= 23 | |
| ? "3. Maven property <maven.compiler.proc>full</maven.compiler.proc> was not set when compiling\n" | |
| : "")); |
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.
The suggested change wouldn't have helped for the actual case which was a bit weird - IDE generated the code, maven didn't, code was published and use on ANOTHER JDK (as part of an integration test that can't run locally yet) ... and failed there on a different JDK.
So the Runtime.version().feature() >= 23 wouldn't help for this scenario.
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.
Hmm
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.
Hmm
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.
Yeah, it feels like a pretty unique set of circumstances ... but I'm kinda feeling that it's better to have the reason in there anyway.
Add the:
3. Using JDK 23+, and need to set property <maven.compiler.proc>full</maven.compiler.proc>... just to be a bit more explicit. The
avaje-http-client-generator dependency was not availableis accurate but perhaps it's good to explicitly mention the maven.compiler.proc full issue.