Skip to content

Prettify + make actionable vp run error output (missing task) #200

@linear

Description

@linear

Context

Current behavior

  • Running vp run ship fails with an error like:
[Vite+] run error: [Error: Failed to plan tasks from `vp run build` in task @nkzw/fate-private#ship

Caused by:
    Task "build" not found] {
  code: 'GenericFailure'
}

Problem

  • Output is technically correct but hard to scan and not very actionable.

Proposal / UX goals

  • One-line, human-friendly summary up top (e.g. "Task 'build' not found")
  • Clearly show where the missing task was referenced (e.g. @nkzw/fate-private#ship depends on build)
  • Suggest next steps / commands (pick the real ones):
    • show available tasks (e.g. vp run --list / vp list)
    • hint where tasks come from (vite.config.ts / vp config / package.json scripts)
  • Keep the raw error + code available behind --verbose or as a secondary block.

Acceptance criteria

  • Improved formatting for missing-task errors (colors + structure)
  • Add actionable suggestions in default output
  • Preserve current debug info in verbose mode

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions