Open zzh1996 opened 1 month ago
I am unable to reproduce (though I am running a different version of docker compose up
).
Can you paste the output of stty -a
before and after running docker compose up
?
I am unable to reproduce (though I am running a different version of
docker compose up
).Can you paste the output of
stty -a
before and after runningdocker compose up
?
Before:
speed 38400 baud; rows 25; columns 80;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; dsusp = ^Y; rprnt = ^R;
werase = ^W; lnext = ^V; discard = ^O; status = ^T; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
ixany imaxbel iutf8
opost -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -tostop -echoprt echoctl
echoke -flusho -extproc
After:
speed 38400 baud; rows 25; columns 80;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; dsusp = ^Y; rprnt = ^R;
werase = ^W; lnext = ^V; discard = ^O; status = ^T; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff
ixany imaxbel iutf8
opost -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
-isig icanon -iexten echo echoe echok -echonl -noflsh -tostop -echoprt echoctl
echoke -flusho -extproc
Although the outputs of these two stty -a
commands are not identical, setting the tty state to match the latter manually using the stty
command does not trigger the previously mentioned bug.
Additionally, docker compose up
does not change the "Terminal State" displayed by iTerm2.
I have researched these aspects before, and I still haven't figured out what exactly docker compose up
changes in the terminal / tty state.
Hmm, what if you use stty
to update the state to what it was prior to running docker compose up
, then does jless
still crash?
A few more ideas:
reset
after running docker compose up
, does that fix it? (I hope so.)docker compose up
, you run jless
and don't use your mouse, then exit and then run jless
again, does that fix it? I.e., does jless
's shutdown behavior fix the problem?docker compose up
and jless
that fix it?Hmm, what if you use
stty
to update the state to what it was prior to runningdocker compose up
, then doesjless
still crash?
Still crash.
A few more ideas:
- If you run
reset
after runningdocker compose up
, does that fix it? (I hope so.)
Unfortunately, no. (both iTerm2 and Terminal)
- If, after running
docker compose up
, you runjless
and don't use your mouse, then exit and then runjless
again, does that fix it? I.e., doesjless
's shutdown behavior fix the problem?
No.
- Are there any other commands/scripts you've found that you can run in between
docker compose up
andjless
that fix it?
I did not find such a command. This is exactly the point of my curiosity. I really want to know what state docker compose up
actually modifies. If I could figure out the specific reason myself, I would directly state the more specific reason in the issue instead of just mentioning the docker compose up
command.
Additionally, I'm not familiar with Rust. Would you be willing to help me temporarily create a branch and modify the code to collect the raw data that jless receives from the terminal for debugging purposes? If so, I can help you run it and collect the data.
I encountered an issue with
jless
where it crashes when I use mouse interactions (clicking or scrolling) after having executed thedocker compose
command in the terminal. Below are the details:Steps to Reproduce:
docker compose up
in a directory withdocker-compose.yml
provided below. (docker compose
should be V2.)curl https://api.github.com/repos/PaulJuliusMartinez/jless/commits -o commits.json
.jless commits.json
.jless
.Expected Behavior:
jless
should function normally without crashing.Actual Behavior:
jless
crashes upon using the mouse for clicking or scrolling.Environment:
docker compose
version: Docker Compose version v2.27.0-desktop.2jless
version: jless 0.9.0 (installed via brew)Additional Information:
htop
andvim
work normally when using mouse interactions after runningdocker compose
.I have attached an asciinema recording showcasing the issue.
https://asciinema.org/a/WatTzwyRfqAWPqBykN6yyr0CA
Error message: