-
Notifications
You must be signed in to change notification settings - Fork 426
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
Unmappable character for encoding ASCII #717
Comments
I've added the following to the build:
Thanks for raising this! |
@leliamesteban Did this solve the problem? |
Unfortunately not. It fails with the same output:
I'll show what I'm running so you can see if I'm doing something wrong
|
…setting compiler encoding and javadoc encoding to UTF8 explicitly.
@leliamesteban Thanks for the detailed response. Either of these should enable you to build with gradle, the first fix should also enable running the |
Can I ask you a favor? What do you see when you run this program on your system? public class NegatableTest {
@Option(names = "-X:-option", negatable = true, description = "java-style option")
private String option;
public static void main(String[] args) {
new CommandLine(new NegatableTest()).usage(System.out);
}
} I suspect that the usage help may not show correctly on systems that have ascii as the platform encoding, but I would like to confirm. |
I managed to compile CommandLine.java individually, although it complains about unchecked or unsafe operations.
I can't get NegatableTest to compile because it can't find the symbol for the "@option" annotation, even when I use the jar.
I also had to change this line
Sorry to respond with a compilation error different to the one you expected but I can't figure out how to get java to recognise the annotations, even when CommandLine compiles |
Sorry my bad, I should have also pasted the import statements... import picocli.CommandLine;
import picocli.CommandLine.Option;
public class NegatableTest {
@Option(names = "-X:-option", negatable = true, description = "java-style option")
private String option;
public static void main(String[] args) {
new CommandLine(new NegatableTest()).usage(System.out);
}
} (To compile the |
The issue is the I have tested and it appears that the I am changing this to use the Thanks for raising this! |
FYI, 4.0.0-beta-2 has been released with the fix for this issue. It may take a few hours for Maven mirrors to update. |
picocli won't compile
The text was updated successfully, but these errors were encountered: