erlang / otp

Erlang/OTP
http://erlang.org
Apache License 2.0
11.29k stars 2.94k forks source link

Open external editor doesn't work with Kakoune on Ubuntu #6866

Open ghost opened 1 year ago

ghost commented 1 year ago

Describe the bug C-o fails to open the terminal editor kak and instead adds what seems to be an error code to the shell:

1> 2026;4$y

To Reproduce run:

EDITOR=kak erl

Then invoke C-o

Expected behavior I expect the editor to open with the text from the current line of erl.

Affected versions OTP 26.0-rc1

Additional context This issue was discovered on Ubuntu 22.04.1 LTS.

frazze-jobb commented 1 year ago

I was not able to reproduce the error code. So I am not sure if its the same. But I got an error code when I ran kak file >> stdout.txt. I am not entirely sure if this is what causes it. For reference I am able to run nano file >> stdout.txt. A workaround is to run gnome-terminal --wait -- kak. Will look at this probably after OTP-26, while fixing EDITOR="emacs -nw".