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

Support for Cygwin/MSYS2 #440

Open
HuM4NoiD opened this issue Sep 15, 2023 · 0 comments
Open

Support for Cygwin/MSYS2 #440

HuM4NoiD opened this issue Sep 15, 2023 · 0 comments
Labels
🌊 enhancement New feature or request

Comments

@HuM4NoiD
Copy link

HuM4NoiD commented Sep 15, 2023

Is your feature request related to a problem? Please describe

I tried using tide with fish provided by MSYS2 on windows. when I tried activating a virtual environment created by poetry (python), everytime the prompt is shown some errors are also printed:

test: Missing argument at index 3
= virtualenvs
              ^
~/.config/fish/functions/_tide_item_virtual_env.fish (line 2):
    test -n "$VIRTUAL_ENV" && split_virtual_env=(string split / "$VIRTUAL_ENV") if test $split_virtual_env[-2] = virtualenvs
                                                                                   ^
in function '_tide_item_virtual_env'
        called on line 15 of file ~/.config/fish/functions/_tide_2_line_prompt.fish
in function '_tide_2_line_prompt'
in command substitution

I am guessing this is because it is trying to split the VIRTUAL_ENV variable and is expecting the value to be a unix style path with / as a seperator, but since MSYS2/cygwin is on windows, The VIRTUAL_ENV contains a path seperated with \.

Describe the solution you'd like

I don't have a solution, Maybe os specific path seperators could be used?

Additional context

I am running a manual installation of tide without fisher following the instructions in the readme
OS: Windows 11 with MSYS2
fish version: 3.6.1

I am guessing the context I have given and the fix is limited, but I wanted to ask if there is anything else that does not allow this to run on cygwin/MSYS2?

@HuM4NoiD HuM4NoiD added the 🌊 enhancement New feature or request label Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌊 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant