Skip to content

Fail clearly when an explicitly requested environment cannot activate #14

Description

@protostatis

Summary

activate_venv() returns False for an invalid environment, but startup ignores that result and continues. session.json can then report the requested environment even though activation failed and code is running under a different interpreter.

Also, the current if venv_path is None and not args.no_conda branch means --no-conda suppresses explicit --conda, not only automatic fallback.

Expected

  • An invalid explicit --venv or --conda should fail startup.
  • session.json and status should report only a successfully activated environment.
  • --no-conda should disable automatic conda fallback without overriding an explicit --conda request.

Priority context

This is mainly a configuration-error path, but silent fallback is difficult to diagnose and can run code with the wrong dependencies.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions