jline / jline3

JLine is a Java library for handling console input.
Other
1.49k stars 218 forks source link

unable to parse columns when running inside docker container #1091

Closed waffel closed 1 month ago

waffel commented 1 month ago

When I try to debug my simple spring boot based commandline application in gitlab debug console, I get:

Caused by: java.io.IOException: Unable to parse columns
        at org.jline.terminal.impl.exec.ExecPty.doGetInt(ExecPty.java:281) ~[jline-terminal-3.26.3.jar!/:na]
        at org.jline.terminal.impl.exec.ExecPty.doGetSize(ExecPty.java:268) ~[jline-terminal-3.26.3.jar!/:na]
        at org.jline.terminal.impl.exec.ExecPty.getSize(ExecPty.java:172) ~[jline-terminal-3.26.3.jar!/:na]
        at org.jline.terminal.impl.AbstractPosixTerminal.getSize(AbstractPosixTerminal.java:63) ~[jline-terminal-3.26.3.jar!/:na]
        ... 32 common frames omitted

stty -a says:

stty -a
speed 38400 baud;stty: standard input
 line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd -cmspar cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc -ixany -imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke -flusho -extproc

How can I avoid this error?

Using line 3.26.3 in an "amazoncorretto:21-alpine" docker image.