tmux-python / tmux-python/tmuxp
`before_script` cannot start headless kakoune
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 248
- Avg merge
- 2h 13m
- Merged PRs (30d)
- 1
Description
Attempting to start a headless Kakoune session in a before_script causes tmuxp loading to hang forever. The Kakoune session is started correctly (so the script "completed" successfully), and an empty tmux session is started, so it looks like tmuxp is somehow waiting for before_script to complete even though it already has. This probably has something directly to do with the exact mechanism that Kakoune uses to "daemonize" itself, but nevertheless since running the command in a shell completes successfully, it should work as a before_script.
Steps to reproduce:
- Have
before_script: kak -s -d mykaksessionin a config. - Run
tmuxp load mytmuxp.yml
Observed Results:
- One
Loadinglog line is printed, and then nothing happens ever.
Expected Results:
- The tmuxp session to load correctly.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with a tmuxp configuration containing before_script: kak -s -d mykaksession and tmuxp load mytmuxp.yml; then trace how before_script processes are started and awaited. Done means the Kakoune command can daemonize successfully without blocking, and the tmuxp session loads normally.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100