anaconda / anaconda-project

Tool for encapsulating, running, and reproducing data science projects
https://anaconda-project.readthedocs.io/en/latest/
Other
221 stars 88 forks source link

[BUG] Certain environments in windows result in mangled prompts #367

Open mxava opened 2 years ago

mxava commented 2 years ago

Software version info:

(anaconda-project version, conda version, etc.) Anaconda=2021.11 conda=4.11.0 anaconda-project=0.10.1

Expected behavior is for the environment to activate and display the appropriate output or prompt. Actual behavior is a mangled prompt.

Relevant configuration files

anaconda-project.yml:

name: name
description: description
packages: [ python=3.6.3 ]
channels: [main]
platforms: [win-64]
env_specs:
  new_py36: {}

Complete, minimal, self-contained example code that reproduces the issue.

anaconda-project run conda list
# or alternatively
anaconda-project run python

Command output and/or screenshots of the bug in action

On one user's machine, running python ends up with a broken double-prompt, shown in screenshot below (with username/directory redacted.) On my test machine, python breaks in a different way, and conda list will output the installed packages and then proceed to overwrite the output with new lines as I hit enter. double-prompt