Closed wouter-intveld closed 1 month ago
@wouter-intveld does it also occur when you remove the secondary prompt from the configuration and restart the shell?
BTW, I can't reproduce this at all using up-to-date tools:
@JanDeDobbeleer Thanks for your reply. Tried your suggestion, but had the same error occur. I realized I did not list the full error, forgot to paste the last few characters that were present on the new line. Here's the full output:
❯ cd py-test-dev
❯ pipenv shell
Launching subshell in virtual environment...
. /home/abcde/.local/share/virtualenvs/abcde-tR1vbTAD/bin/activate
❯ 1vbTAD/bin/activate
zsh: no such file or directory: 1vbTAD/bin/activate
~
❯ ;1R
I just run the command on my MacBook and there was no issue there, using the same config.
linux:
pipenv, version 2024.0.1
zsh 5.9 (x86_64-pc-linux-gnu)
wezterm 20240203-110809-5046fc22
macbook:
pipenv, version 2024.0.1
zsh 5.9 (x86_64-apple-darwin23.0)
wezterm 20240203-110809-5046fc22
@wouter-intveld next check. What happens when you add disable_cursor_positioning = true
to your profile, restart the shell and try again?
@JanDeDobbeleer, I've added disable_cursor_positioning = true
and that resolves the issue with pipenv shell
giving an error. It doesn't stay in the directory where I invoked the command, but instead sends me to my home dir.
@wouter-intveld that last issue can't be oh-my-posh, as we don't set anything to influence the environment. All we do is print a string and set it to the prompt variable.
The original issue is because we print an escape sequence to fetch the cursor position and that one influences the python command. I do think that's also a bug on their end, as this shouldn't influence how this works.
Code of Conduct
What happened?
When running
pipenv shell
, pipenv attempts to activate the virtual environment but encounters an error. This issue does not occur when Oh My Posh is disabled or when using the default theme configuration.Steps to Reproduce
pipenv shell
.Expected Behavior
Pipenv should successfully activate the virtual environment without errors.
Actual Behavior
Pipenv attempts to activate the virtual environment but fails with the following error message:
Theme
What OS are you seeing the problem on?
Linux
Which shell are you using?
zsh
Log output