tmux-python / tmux-python/tmuxp

`before_script` cannot start headless kakoune

Open
#692 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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:
  1. Have before_script: kak -s -d mykaksession in a config.
  2. Run tmuxp load mytmuxp.yml
Observed Results:
  • One Loading log line is printed, and then nothing happens ever.
Expected Results:
  • The tmuxp session to load correctly.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.