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
venv bug: Function “_old_fish_prompt” does not exist when activating venv in child process #93858
Comments
Please do, and thanks for the report. |
vsajip
pushed a commit
that referenced
this issue
Jun 27, 2022
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Oct 18, 2022
…tances (pythonGH-93931) (cherry picked from commit 1172172) Co-authored-by: Thomas B. Brunner <thomasbbrunner@gmail.com>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Oct 18, 2022
…tances (pythonGH-93931) (cherry picked from commit 1172172) Co-authored-by: Thomas B. Brunner <thomasbbrunner@gmail.com>
vsajip
pushed a commit
that referenced
this issue
Oct 18, 2022
vsajip
pushed a commit
that referenced
this issue
Oct 18, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thomasbbrunner commentedJun 15, 2022
•
edited
Bug report
Looked for similar issues and could not find any.
Steps to reproduce bug:
Should output:
functions: Function “_old_fish_prompt” does not existCause
I think I've identified the reason for the bug:
activate.fishare exported to child processes (script usesset -gxto set the variables)._old_fish_promptis not exported to child processes.So, when we run fish from another fish session (such as in tmux), the variables set in
activate.fishare present in the child process, but the functions are not.Fix
I've written a fix for this, which is to test if the
_old_fish_promptfunction exists before attempting to delete it. I can make a PR with this fix.Also, the implementation from virtualenv does not suffer from this bug. They check if the function exists before deleting it.
Your environment
Ubuntu 22.04 amd64
Python 3.10.4
Python and venv packages installed from apt
The text was updated successfully, but these errors were encountered: