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

ANSI escape codes display in usage text #5869

Closed
BillSchumacher opened this issue Aug 25, 2023 · 2 comments · Fixed by #5872
Closed

ANSI escape codes display in usage text #5869

BillSchumacher opened this issue Aug 25, 2023 · 2 comments · Fixed by #5872
Labels
Type: Duplicate This issue is a duplicate of an already-existing issue.

Comments

@BillSchumacher
Copy link

Be sure to check the existing issues (both open and closed!), and make sure you are running the latest version of Pipenv.

Check the diagnose documentation for common issues before posting! We may close your issue if it is very similar to one of them. Please be considerate, or be on your way.

Make sure to mention your debugging experience if the documented solution failed.

Issue description

The color escape codes display when using a Mac and zsh.

image

Expected result

The colors to appear and not show color codes.

Actual result

Only some of the colors are working.

Steps to replicate

Install latest on a Mac with zsh.

$ pipenv --support

Pipenv version: '2023.8.23'

Pipenv location: '/Users/billschumacher/.local/lib/python3.10/site-packages/pipenv'

Python location: '/Users/billschumacher/.pyenv/versions/3.10.6/bin/python3.10'

OS Name: 'posix'

User pip version: '23.2.1'

user Python installations found:

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '3.10.6',
 'os_name': 'posix',
 'platform_machine': 'arm64',
 'platform_python_implementation': 'CPython',
 'platform_release': '22.5.0',
 'platform_system': 'Darwin',
 'platform_version': 'Darwin Kernel Version 22.5.0: Thu Jun  8 22:22:23 PDT '
                     '2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T6020',
 'python_full_version': '3.10.6',
 'python_version': '3.10',
 'sys_platform': 'darwin'}

System environment variables:

  • NVM_INC
  • MANPATH
  • TERM_PROGRAM
  • NVM_CD_FLAGS
  • PYENV_ROOT
  • SHELL
  • TERM
  • PIPX_BIN_DIR
  • PIPENV_VENV_IN_PROJECT
  • HOMEBREW_REPOSITORY
  • TMPDIR
  • TERM_PROGRAM_VERSION
  • TERM_SESSION_ID
  • PYENV_VERSION
  • NVM_DIR
  • USER
  • SSH_AUTH_SOCK
  • PYENV_DIR
  • PYENV_VIRTUALENV_INIT
  • PATH
  • LaunchInstanceID
  • __CFBundleIdentifier
  • PWD
  • LANG
  • PYENV_HOOK_PATH
  • XPC_FLAGS
  • XPC_SERVICE_NAME
  • PYENV_SHELL
  • SHLVL
  • HOME
  • HOMEBREW_PREFIX
  • LOGNAME
  • NVM_BIN
  • INFOPATH
  • HOMEBREW_CELLAR
  • SECURITYSESSIONID
  • __CF_USER_TEXT_ENCODING
  • PIP_DISABLE_PIP_VERSION_CHECK
  • PYTHONDONTWRITEBYTECODE
  • PYTHONFINDER_IGNORE_UNSUPPORTED

Pipenv–specific environment variables:

  • PIPENV_VENV_IN_PROJECT: 1

Debug–specific environment variables:

  • PATH: /Users/billschumacher/.pyenv/versions/3.10.6/bin:/opt/homebrew/Cellar/pyenv/2.3.22/libexec:/opt/homebrew/Cellar/pyenv/2.3.22/plugins/python-build/bin:/Users/billschumacher/.pyenv/shims:/Users/billschumacher/.local/bin:/Users/billschumacher/.pyenv/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/homebrew/opt/openssl@3/bin:/opt/homebrew/opt/[email protected]/bin:/opt/homebrew/opt/libpq/bin:/Users/billschumacher/Library/Python/3.11/bin:/opt/homebrew/Cellar/pyenv-virtualenv/1.2.1/shims:/Users/billschumacher/.nvm/versions/node/v18.15.0/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/billschumacher/Library/Application Support/JetBrains/Toolbox/scripts
  • SHELL: /bin/zsh
  • LANG: en_US.UTF-8
  • PWD: /Users/billschumacher

@BillSchumacher
Copy link
Author

If you provide --help the colors show up as expected, but without help they do not.

@matteius matteius added the Type: Duplicate This issue is a duplicate of an already-existing issue. label Aug 25, 2023
@matteius
Copy link
Member

Duplicates: #5850

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Duplicate This issue is a duplicate of an already-existing issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants