Closed colemickens closed 2 years ago
runInTerminal
still needs some work, I had it hardcoded to use tmux split-window
while testing: https://github.com/helix-editor/helix/blob/e1a92fd3998aca2a313d4cbf0aca3157eca0b53f/helix-term/src/application.rs#L505-L509
We should make this configurable in config.toml
: editor.terminal = { cmd = "tmux", args = ["split-window"] }
I just tried out the debugging adapter and got always the error No such file or directory
. It took me some time to find out, that not the debug executable is meant by that, but tmux
😆
I would also prefer to use my usual multiplexer (zellij), but for now it should be atleast somewhere in the docs, that tmux
is required for debug. Or maybe catch the unwrap()
in https://github.com/helix-editor/helix/blob/master/helix-view/src/handlers/dap.rs#L314.
Reproduction steps
I'm testing head of Helix on NixOS with
codelldb
. I'm making some progress, and I think I even "have it working" when I runhelix
undertmux
.However, when I run
hx
underzellij
and start the debug process, when the DAP calls to run in terminal, it tries to execute tmux, and fails with this getting dumped into the open zellij buffer:Strangely, if I execute
hx
outside of zellij and tmux, it seems to work (the process just seems to open in the background [or maybe another buffer, I'm not sure]).My tmux config is: