Skip to content

fix: adjust doctor script severity levels#2734

Merged
tusharmath merged 2 commits intoantinomyhq:mainfrom
majiayu000:fix/issue-2612-doctor-severity-levels
Mar 29, 2026
Merged

fix: adjust doctor script severity levels#2734
tusharmath merged 2 commits intoantinomyhq:mainfrom
majiayu000:fix/issue-2612-doctor-severity-levels

Conversation

@majiayu000
Copy link
Copy Markdown
Contributor

Fixes #2612

print_result fail was used for optional features (oh-my-zsh, nerd fonts, forge theme) which made forge doctor exit non-zero even when the core setup was fine. Changed these to print_result warn so only actually-broken things (like missing zsh or forge binary) cause failures.

Changes in shell-plugin/doctor.zsh:

  • oh-my-zsh not found: fail → warn (line 123)
  • nerd font disabled: fail → warn for both NERD_FONT and USE_NERD_FONT (lines 532, 540)
  • theme not set / wrong theme: fail → warn (lines 198, 202)
  • section header renamed from "ZSH Theme RPROMPT" to "FORGE RIGHT PROMPT" (line 190)
  • added forge zsh setup as alternative instruction when plugin isn't loaded (line 155)

Exit-code-0-on-warnings-only was already implemented correctly, no change needed there.

Tested with cargo build and cargo test --all-features --workspace — both pass.

- oh-my-zsh missing: fail → warn (not required, only zsh itself is)
- theme not set / wrong theme: fail → warn (non-critical)
- nerd font disabled: fail → warn (cosmetic preference)
- rename section header "ZSH Theme RPROMPT" → "FORGE RIGHT PROMPT"
- add "forge zsh setup" as alternative plugin install instruction

Closes antinomyhq#2612

Signed-off-by: majiayu000 <1835304752@qq.com>
@majiayu000 majiayu000 marked this pull request as ready for review March 29, 2026 09:21
@tusharmath
Copy link
Copy Markdown
Collaborator

@majiayu000 I have deleted the bounty for this issue. Let me know if you are ok with merging this PR.

@majiayu000
Copy link
Copy Markdown
Contributor Author

@tusharmath Plz merge if it slove the issue.

@tusharmath tusharmath enabled auto-merge (squash) March 29, 2026 12:54
@tusharmath tusharmath merged commit d4574a2 into antinomyhq:main Mar 29, 2026
14 of 15 checks passed
@tusharmath tusharmath added the type: fix Iterations on existing features or infrastructure. label Mar 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Iterations on existing features or infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: [ERROR] NERD_FONT: disabled (0) on forge zsh setup

2 participants