mill icon indicating copy to clipboard operation
mill copied to clipboard

Interrupting Mill bash-completion with `^C` closes the shell

Open lefou opened this issue 1 month ago • 2 comments

I recognized it for some time now. I first thought, I accidentally closed the window, but I can reproduce it pretty easily. This is annoying since I loose my session state. It's not what I'm used to or what I would expect from any CLI tool, so I think this is a bug.

Reproduction:

> bash # Start a new sub-shell
> mill <TAB> # Start Mill auto-complete process but abort it before it finishes with '^C'
^C
exit

The last exit seem to come for the bash process, as can be seen also, when the bash is closed with ^D (end of file).

> bash
^D
exit

lefou avatar Nov 02 '25 13:11 lefou

I don't see this behavior on my Macbook, either Bash and Zsh, either default Terminal.app or iTerm2. In all four cases, when I Ctrl-C the tab-completion leaves me back in the shell

Image

lihaoyi avatar Nov 09 '25 09:11 lihaoyi

The reason I pressed ^C was, that I saw some output lines coming from Mill rebuilding the meta-build, so maybe it happens only in such cases.

Image

In the screenshot, I pressed ^C after mill libs<TAB>.

lefou avatar Nov 10 '25 07:11 lefou