Report terminal command failures #654
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
fugitive
good first issue
help wanted
invalid
question
v0.1.0
v0.2.0
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/forge.nvim!654
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/641-terminal-failures"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #641
Summary
termopen().on_exitcallback for live terminal views and reports nonzero exits in the terminal buffer.startinsertbehavior.Messaging
failed to start terminal command: terminal job did not startterminal command exited unsuccessfully: code 2The wording keeps the stack rule: context plus detail, no raw command disclosure, no
(exit 1), and nostdout/stderrlabel syntax. For real terminal output, existing CLI output remains in the terminal buffer and the exit-status line is appended after it.Repro
SPAWN_OPTS=nil,SPAWN_LINES=,HAS_ON_EXIT=false, andEXIT_LINES=.SPAWN_OPTS=table,SPAWN_LINES=failed to start terminal command: terminal job did not start,HAS_ON_EXIT=true, andEXIT_LINES=terminal command exited unsuccessfully: code 2.sh -c "echo authentication failed; exit 2"preservedauthentication failedand appendedterminal command exited unsuccessfully: code 2.Verification
just test spec/term_spec.luanix develop .#ci --command just ci