air-verse / air

☁️ Live reload for Go apps
GNU General Public License v3.0
17.62k stars 804 forks source link

Air process doesn't exit when CTRL+C is pressed on WSL #480

Closed Infinituum17 closed 11 months ago

Infinituum17 commented 11 months ago

Using Air (v1.47.0) with Go (v1.21.3).

When I try to exit using CTRL+C on WSL, Air stops working and is stuck on "cleaning...".

I tried running Air in debug mode and it gets stuck on "waiting for exit".

The only way I know to get out of the app is to press CTRL+Z and kill the process manually.

[debug] mode
CWD: /...
watching .
!exclude tmp
building...
running...
running process pid 6190
...
^Cexit in start
cleaning...
wating for      close watchers..
waiting for buildRun...
waiting for clean ...
waiting for exit...
Oudwins commented 11 months ago

I am also seeing this on arch linux

edjw commented 11 months ago

Also on macOS