spring-projects / spring-shell

Spring based shell
http://projects.spring.io/spring-shell/
Apache License 2.0
733 stars 396 forks source link

The "flow" component lacks interactivity on IntelliJ Idea #986

Open cherl opened 9 months ago

cherl commented 9 months ago

On macOS systems with the M1 chip, the "flow" component of the spring-shell 2.1.15 version may not have interactive functionality. This issue occurs when using the 2022.2.3 version of the IDE. However, executing the command line (java -jar xxx.jar) directly does not cause any problems. image image image The following is the output when executing the command line: image

cherl commented 9 months ago

Version 2022.2.3 of IntelliJ IDEA.

jvalkeal commented 9 months ago

See more https://github.com/spring-projects/spring-shell/discussions/534#discussioncomment-3662477

jvalkeal commented 9 months ago

We could leave this open for others to find the issue. Hopefully things get better on idea side.

Veitor commented 2 weeks ago

same problem

My temporary solution is to copy the complete command string from the Debug panel, paste it into the Terminal panel and run.

If you also need to use IDEA for debugging, open the Run/Debug Configurations panel, create a new Remote JVM Debug, Choose Attach to remote JVM mode and Socket transport , and finally copy the following command line options string to the java command. Such as:

java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 <other options> --class-path ... <Your main class>

After the application is running, just click debug button in IDEA. image