You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use nushell as my shell, and have recently decided to give helix a try for a month. I've run into a weird issue, and I'm not sure where the problem lies.
Helix and nushell installed from nixpkgs (nix-darwin).
The problem
This morning when I went to do a git pull - I got this error when git was prompting me with an editor to edit/save my merge commit message:
hint: Waiting for your editor to close the file... error: cannot run hx: No such file or directory
error: unable to start editor 'hx'
Additionally, if I try to open a text file in yazi, I get this error:
/Users/rykugur/.dotfiles/flake.nix: line 1: hx: command not found
/Users/rykugur/.dotfiles/flake.nix: line 1: hx: command not found
/Users/rykugur/.dotfiles/README.md: line 1: hx: command not found
/Users/rykugur/.dotfiles/README.md: line 1: hx: command not found
hx is definitely on my path:
~
❯ : which -a hx | to text
command: hx
path: /Users/rykugur/.nix-profile/bin/hx
type: external
and I can launch/use hx normally.
I also have hx exported as my EDITOR:
$env.EDITOR = "hx"
and can run evaluate it, e.g. this works: ^($env.EDITOR) README.md will open README.md in helix without issue.
Does anybody have any thoughts/has experienced this before?
EDIT:
Things work fine if I use nvim e.g.: EDITOR=nvim sops nixos/secrets.yaml
EDIT2:
I tested this out on my desktop PC (running nixOS) and everything appears fine. Seems to be some strange interplay between macOS/nushell/helix.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I use nushell as my shell, and have recently decided to give helix a try for a month. I've run into a weird issue, and I'm not sure where the problem lies.
Context
Host: Macbook Pro (M2 Pro) 14.7.1 Sonoma
Helix version:
helix 25.01.1 (e7ac2fcd)
Nushell version:
0.101.0
Helix and nushell installed from nixpkgs (nix-darwin).
The problem
This morning when I went to do a
git pull
- I got this error when git was prompting me with an editor to edit/save my merge commit message:Additionally, if I try to open a text file in
yazi
, I get this error:hx
is definitely on my path:and I can launch/use hx normally.
I also have
hx
exported as myEDITOR
:and can run evaluate it, e.g. this works:
^($env.EDITOR) README.md
will open README.md in helix without issue.Does anybody have any thoughts/has experienced this before?
EDIT:
Things work fine if I use
nvim
e.g.:EDITOR=nvim sops nixos/secrets.yaml
EDIT2:
I tested this out on my desktop PC (running nixOS) and everything appears fine. Seems to be some strange interplay between macOS/nushell/helix.
Beta Was this translation helpful? Give feedback.
All reactions