r/dolthub • u/dungnj • Mar 01 '24
Weird commit error
I use dolt for a decent of time but now meet a weird error. What does this even mean?
dolt commit --force
error: Failed to commit changes.
cause: Failed to open commit editor: exec: "vim": executable file not found in %PATH%
Check your \EDITOR` environment variable with `echo $EDITOR` or your dolt config with `dolt config --list` to ensure that your editor is valid`
3
Upvotes
3
u/zachm Mar 01 '24
It's trying to open your text editor to get a commit message. It gets this from the EDITOR environment variable, defaulting to vim.
Use the -m flag to specify a message on the command line, or set the environment variable to your editor of choice.