Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix conda environment shell output capture #1117

Closed
wants to merge 1 commit into from

Conversation

jasonkneen
Copy link

@jasonkneen jasonkneen commented Feb 6, 2025

Fixes #1060

Update the bash method in DeveloperRouter to handle conda environments.

  • Detect if the command is to be run within a conda environment by checking the CONDA_DEFAULT_ENV environment variable.
  • Modify the command to use conda run -n <env> if a conda environment is detected, ensuring proper output capture.
  • Redirect stderr to stdout for interleaving outputs.

For more details, open the Copilot Workspace session.

Fixes block#1060

Update the `bash` method in `DeveloperRouter` to handle conda environments.

* Detect if the command is to be run within a conda environment by checking the `CONDA_DEFAULT_ENV` environment variable.
* Modify the command to use `conda run -n <env>` if a conda environment is detected, ensuring proper output capture.
* Redirect stderr to stdout for interleaving outputs.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/block/goose/issues/1060?shareId=XXXX-XXXX-XXXX-XXXX).
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.

Developer shell fails in conda environments
2 participants