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
Describe the bug
Launching a terminal-based editor isn't working from within Kart 0.12.x on macos or linux where the helper mode is enabled. GUI-based editors are unaffected. This is the editor launched in the function run_editor_cmd, that runs $EDITOR
To Reproduce
Steps to reproduce the behaviour:
Make sure you are using Kart 0.12 or later
Make an uncommitted edit to a kart repo - eg, connect to the working copy and change a dataset's title / add a new feature
Run kart commit to commit the edit
Editor fails to open, with error message a something like the following: Error: There was a problem with the editor 'nano': Command 'nano /Users/olsen232/mykart/repo123/.kart/COMMIT_EDITMSG' returned non-zero exit status 1.
Expected behaviour
An editor should open, in order that you can write the commit message.
Workaround
Disable the helper by running kart like so: KART_USE_HELPER=0 kart commit
Or, avoid the need to use the editor by specifying a message up front like so: kart commit -m "commit message"
Version Info
OS: macOS or linux
Kart version - 0.12.x
The text was updated successfully, but these errors were encountered:
This is due to the helper itself being disconnected from the terminal by the double fork done - there are a couple of cases where this can happen, I believe if GIT_ASKPASS is set and required you will get a similar error. I had considered making a list of commands in the calling process which would automatically skip using the helper as appropriate.
Describe the bug
Launching a terminal-based editor isn't working from within Kart 0.12.x on macos or linux where the helper mode is enabled. GUI-based editors are unaffected. This is the editor launched in the function
run_editor_cmd
, that runs$EDITOR
To Reproduce
Steps to reproduce the behaviour:
kart commit
to commit the editError: There was a problem with the editor 'nano': Command 'nano /Users/olsen232/mykart/repo123/.kart/COMMIT_EDITMSG' returned non-zero exit status 1.
Expected behaviour
An editor should open, in order that you can write the commit message.
Workaround
Disable the helper by running kart like so:
KART_USE_HELPER=0 kart commit
Or, avoid the need to use the editor by specifying a message up front like so:
kart commit -m "commit message"
Version Info
The text was updated successfully, but these errors were encountered: