Terminal editor keeps running even when closed #17027

Closed
opened 2026-01-31 05:30:15 +00:00 by claunia · 4 comments
Owner

Originally created by @zuixalias on GitHub (Mar 17, 2022).

Windows Terminal version

1.12.10393.0

Windows build number

10.0.22000.556

Other Software

Helix 0.6.0 [Download from Github]

Steps to reproduce

Shown in video
Video showing the issue : wt_issue.mp4

Expected Behavior

[Everything shown in video]
'hx.exe' (helix) should close when terminal is closed

Actual Behavior

[Everything shown in video]

  • 'hx.exe' keeps running in background after terminal is closed
  • Happens only with helix, 'nvim.exe' (neovim) runs in background just like 'hx.exe' but it closes with terminal (then maybe a helix issue? Idk...)
Originally created by @zuixalias on GitHub (Mar 17, 2022). ### Windows Terminal version 1.12.10393.0 ### Windows build number 10.0.22000.556 ### Other Software Helix 0.6.0 [[Download from Github](https://github.com/helix-editor/helix/releases/tag/v0.6.0)] ### Steps to reproduce Shown in video Video showing the issue : [wt_issue.mp4](https://mega.nz/file/Q4liUTCD#Qyk-s5Oba0swJWuJmrLO6hdQvQpfjlvrPd5AoJOBgOU) ### Expected Behavior [Everything shown in video] 'hx.exe' (helix) should close when terminal is closed ### Actual Behavior [Everything shown in video] - 'hx.exe' keeps running in background after terminal is closed - Happens only with helix, 'nvim.exe' (neovim) runs in background just like 'hx.exe' but it closes with terminal (then maybe a helix issue? Idk...)
Author
Owner

@zadjii-msft commented on GitHub (Mar 17, 2022):

Huh, so when helix is started into a defterm connection, it doesn't close when the console does. Weird. Couldn't get this to repro with like cmd.exe or python, just as a simple test, so nothing to raise the alarm bells over, but still not good.

Happens only with helix, 'nvim.exe' (neovim) runs in background just like 'hx.exe' but it closes with terminal (then maybe a helix issue? Idk...)

That's an interesting observation indeed. For something like that I'd usually point at Helix as the root cause of the issue, but we can take a look.

Maybe helix is like, leaking a handle to the console somehow such that it doesn't tear down the console as well. There's probably a conhost.exe that leaks each time as well. Hopefully, there isn't also an openconsole.exe that leaks with it.

@zadjii-msft commented on GitHub (Mar 17, 2022): Huh, so when helix is started into a defterm connection, it doesn't close when the console does. Weird. Couldn't get this to repro with like cmd.exe or python, just as a simple test, so nothing to raise the alarm bells over, but still not good. > Happens only with helix, 'nvim.exe' (neovim) runs in background just like 'hx.exe' but it closes with terminal (then maybe a helix issue? Idk...) That's an interesting observation indeed. For something like that I'd usually point at Helix as the root cause of the issue, but we can take a look. Maybe helix is like, leaking a handle to the console somehow such that it doesn't tear down the console as well. There's probably a conhost.exe that leaks each time as well. Hopefully, there isn't _also_ an openconsole.exe that leaks with it.
Author
Owner

@zuixalias commented on GitHub (Mar 17, 2022):

Okay, actually it's working fine with other files. Just checked the logs and turns out that the issue is related to rust-analyzer being run when .rs files are opened and helix doing something with it...something is happening and something closes in between or something like that, i am not sure...

So i am guessing the issue is on helix's side...with open an issue there.

@zuixalias commented on GitHub (Mar 17, 2022): Okay, actually it's working fine with other files. Just checked the logs and turns out that the issue is related to `rust-analyzer` being run when .rs files are opened and helix doing something with it...something is happening and something closes in between or something like that, i am not sure... So i am guessing the issue is on helix's side...with open an issue there.
Author
Owner

@zadjii-msft commented on GitHub (Mar 18, 2022):

Well cool, thanks for following up!

/dup https://github.com/helix-editor/helix/issues/1828

@zadjii-msft commented on GitHub (Mar 18, 2022): Well cool, thanks for following up! /dup https://github.com/helix-editor/helix/issues/1828
Author
Owner

@ghost commented on GitHub (Mar 18, 2022):

Hi! We've identified this issue as a duplicate of one that exists on somebody else's Issue Tracker. Please make sure you subscribe to the referenced external issue for future updates. Thanks for your report!

@ghost commented on GitHub (Mar 18, 2022): Hi! We've identified this issue as a duplicate of one that exists on somebody else's Issue Tracker. Please make sure you subscribe to the referenced external issue for future updates. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#17027