-
Notifications
You must be signed in to change notification settings - Fork 418
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
picocli-shell throws StackOverflowError #1310
Comments
This warning is a sign that there may be missing dependencies:
Only the
|
This still doesn't work. dependencies {
compile 'info.picocli:picocli-shell-jline3:4.6.1'
compile 'org.jline:jline:3.17.1'
compile 'org.jline:jline-console:3.17.1'
compile 'org.fusesource.jansi:jansi:2.1.0'
compile "info.picocli:picocli-spring-boot-starter:4.6.1"
// implementation 'org.springframework.shell:spring-shell-starter:2.0.0.RELEASE'
// console progress
// compile 'me.tongfei:progressbar:0.9.0'
// compile group: 'org.javassist', name: 'javassist', version: '3.27.0-GA'
}
|
Ok, I will try to reproduce this. |
This is my command line, I tried different JDK
|
Thanks, the problem was solved after I upgraded the Jline version to 3.18.0. |
@vicasong Great, glad to hear that! Enjoy using picocli! |
PS. don't hesitate to give picocli a star ⭐ on GitHub if you like the project! 😉 |
Environment
How
I am using shell in a spring-boot project, I completely copied the sample code to run the demo program, but the program throws an exception when I enter any command.
Explain
At first, I used
SpringApplicationRunner
to start the shell. In the example, it seems that only one top-level class can describe the commands. So I usedjavaassist
to generate this top-level class with Bean scanning. Everything is fine, but the shell cannot run normally, and then I completely copied the sample code into the main method, but it still does not work.The text was updated successfully, but these errors were encountered: