Skip to content

Report missing project venv without a fatal trace - #1885

Merged
codeforester merged 1 commit into
mainfrom
bug/1884-20260806-activate-missing-venv-ux
Aug 6, 2026
Merged

Report missing project venv without a fatal trace#1885
codeforester merged 1 commit into
mainfrom
bug/1884-20260806-activate-missing-venv-ux

Conversation

@codeforester

Copy link
Copy Markdown
Collaborator

Fixes #1884

What changed

  • Report a missing project virtual environment through the normal error logger during activation.
  • Preserve the nonzero exit status and uv-specific remediation.
  • Add regression assertions that the expected missing-venv path emits no fatal marker or stack-trace header.

Root cause

Activation used the shared fatal helper for a user-actionable first-run prerequisite. That helper intentionally emits a Bash stack trace, making a missing uv environment look like an internal failure.

Validation

  • BASE_BASH_LIBS_DIR=/Users/rameshhp/work/base-bash-libs/lib/bash bats cli/bash/commands/basectl/tests/activate.bats
  • BASE_BASH_LIBS_DIR=/Users/rameshhp/work/base-bash-libs/lib/bash bats cli/bash/commands/basectl/tests/project-command-helpers.bats
  • BASE_BASH_LIBS_DIR=/Users/rameshhp/work/base-bash-libs/lib/bash ./bin/base-test (944 passed, 1 skipped; 852 BATS passed)
  • Real missing-venv activation repro

@codeforester
codeforester marked this pull request as ready for review August 6, 2026 15:07
@codeforester
codeforester requested a review from a team as a code owner August 6, 2026 15:07
@codeforester
codeforester merged commit 3aa5934 into main Aug 6, 2026
28 checks passed
@codeforester
codeforester deleted the bug/1884-20260806-activate-missing-venv-ux branch August 6, 2026 15:07
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.

Report missing project virtualenv without a fatal stack trace during activation

1 participant