justinmayer / virtualfish

Fish shell tool for managing Python virtual environments
MIT License
1.06k stars 100 forks source link

"Unsupported use of '&&' " during installation #169

Closed collinarnett closed 4 years ago

collinarnett commented 4 years ago

I'm trying to install vf and after I run exec fish I get the following error:

~/.local/lib/python3.6/site-packages/virtualfish/virtual.fish (line 305): Unsupported use of '&&'. In fish, please use 'COMMAND; and COMMAND'.
    pushd $VIRTUALFISH_HOME && set -e dirprev[-1]
                             ^
from sourcing file ~/.local/lib/python3.6/site-packages/virtualfish/virtual.fish
    called on line 3 of file ~/.config/fish/conf.d/virtualfish-loader.fish

from sourcing file ~/.config/fish/conf.d/virtualfish-loader.fish
    called on line 250 of file /usr/share/fish/config.fish

from sourcing file /usr/share/fish/config.fish
    called during startup

source: Error while reading file โ€œ/home/collin/.local/lib/python3.6/site-packages/virtualfish/virtual.fishโ€
justinmayer commented 4 years ago

Hi Collin. What version of Fish shell are you running?

collinarnett commented 4 years ago

version is 2.7. Fixed it by updating to fish 3.1 using the ppa on ubuntu server 18.04. Sorry for wasting your time ๐Ÿ™‡

justinmayer commented 4 years ago

No worries, Collin! I'm sorry you encountered that error. I'm happy to hear you are now on Fish 3.1, which is a great release. ๐ŸŸ

Nonetheless, I took the liberty of trying to address the source of that problem in the above-linked PR. Cheers! ๐Ÿ’ซ