Skip to content

fix: Show what a failed serverpod create or tool install actually said, and make it copyable - #11

Merged
vlidholt merged 1 commit into
mainfrom
SandPod/fix-new-project-error-display
Nov 26, 2026
Merged

vlidholt merged 1 commit into
mainfrom
SandPod/fix-new-project-error-display

Conversation

@SandPod

@SandPod SandPod commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

What changed

Where Before After
New Project, serverpod create failed Message cut off at the first line of the "Yikes" text; the log showed only the bottom of the stack Message is the actual exception; the log shows the exception and the top of the stack
Tool install failed (setup and Settings → Tools) Only "Serverpod could not be installed." The command's output, starting at the first error line
Error banner Text could not be selected Selectable text, plus a copy button that copies the full output for a GitHub issue

Screenshots

New Project: CLI crash New Project: plain error
First-run setup: install failed Settings → Tools: install failed

Testing

  • flutter analyze is clean, and flutter test -x process passes all 947 tests.
  • New tests cover the error parsing, copying from the banner, and that ⌘W, typing and Tab still reach the form.

Notes

  • Low risk: UI only, nothing is stored, and a revert is clean.
  • The CLI crash itself is being fixed in the Serverpod repo.
  • The screenshots are on the branch pr-assets/fix-new-project-error-display. Deleting it after merge breaks the images in this description.

🤖 Generated with Claude Code

…aid, and make it copyable.

- New Project: a failed `serverpod create` is read rather than tailed. An
  internal CLI error ("Yikes! …") shows the exception as the message and the
  exception plus the top of the stack as the log; a plain `ERROR:` that wraps
  is shown whole. The full output is kept for copying.
- Tool installs (first-run setup and Settings → Tools): a failed step now shows
  its command's output, from the first error line on, instead of only "could
  not be installed". The full output goes to the copy button and, on Windows,
  setup.log.
- ErrorBanner: message and log are selectable (SelectionArea, so ⌘C/⌘A work
  and other keys reach the form), and a banner with a log has a copy button
  that puts the message and the full output, fenced, on the clipboard.
- Widgetbook: New Project → CLI crashed, and the install-failed use cases use
  realistic output.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@SandPod
SandPod requested a review from vlidholt November 26, 2026 15:26
@vlidholt
vlidholt merged commit b4f93b1 into main Nov 26, 2026
3 checks passed
@vlidholt vlidholt mentioned this pull request Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants