Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[macOS M1] Terminal closing does not shut down helix process #4267

Open
nicholasjng opened this issue Oct 14, 2022 · 1 comment
Open

[macOS M1] Terminal closing does not shut down helix process #4267

nicholasjng opened this issue Oct 14, 2022 · 1 comment
Labels
A-helix-term Area: Helix term improvements C-bug Category: This is a bug O-macos Operating system: macOS

Comments

@nicholasjng
Copy link

Summary

Thanks for making this! I just took a first look at helix early this week, I like it so far. But I noticed that when opening tutor mode and closing the terminal, the hx process survives, and proceeds to max out a single CPU core.

As a consequence, I need to kill it separately after terminal shutdown. Is this known / intended behavior? Thanks in advance.

Reproduction Steps

hx --tutor
# close iTerm by clicking red button and reopen
top

results in:

PID    COMMAND      %CPU  TIME     #TH    #WQ  #PORT MEM    PURG   CMPRS  PGRP  PPID  STATE    BOOSTS
93204  hx           100.0 00:18.99 12/1   0    32    5169K  0B     0B     93204 1     running  *0[1]

Helix log

~/.cache/helix/helix.log
2022-10-11T15:31:12.794 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2022-10-12T10:05:28.255 helix_view::editor [ERROR] Failed to initialize the LSP for `source.cmake` { cannot find binary path }
2022-10-12T21:43:56.235 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-10-13T13:52:39.516 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-10-13T13:55:45.176 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }
2022-10-13T15:09:57.499 helix_view::editor [ERROR] Failed to initialize the LSP for `source.cmake` { cannot find binary path }
2022-10-13T17:06:22.140 helix_view::editor [ERROR] Failed to initialize the LSP for `git.commitmsg` { LSP not defined }

Platform

macOS

Terminal Emulator

iTerm2

Helix Version

helix 22.08.1 (66276ce)

@nicholasjng nicholasjng added the C-bug Category: This is a bug label Oct 14, 2022
@the-mikedavis the-mikedavis added O-macos Operating system: macOS A-helix-term Area: Helix term improvements labels Oct 14, 2022
@st3fan
Copy link

st3fan commented Oct 23, 2022

What is the expectation here? Should helix periodically check if it's parent process still exist?

I see that vim still hangs around after closing a terminal window but then after a little while it exits. Maybe interesting to find out what logic is used there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements C-bug Category: This is a bug O-macos Operating system: macOS
Projects
None yet
Development

No branches or pull requests

3 participants