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

GVM does not function correctly in WSL #445

Open
orhpeus opened this issue Sep 11, 2023 · 7 comments
Open

GVM does not function correctly in WSL #445

orhpeus opened this issue Sep 11, 2023 · 7 comments

Comments

@orhpeus
Copy link

orhpeus commented Sep 11, 2023

I am using gvm under WSL2. When the following script was added to the .bashrc,
[[ -s "/home/m2m/.gvm/scripts/gvm" ]] && source "/home/m2m/.gvm/scripts/gvm"

I noticed that VS Code did not start properly.
After looking at $PATH, it is found that the spaces in the path become colons.
As shown in the following figure:

When GVM disabled:
image

When GVM enabled:
image

@andot
Copy link

andot commented Sep 13, 2023

I fix it in this pr: #443

@bamaas
Copy link

bamaas commented Sep 19, 2023

Also facing this issue over here. Tried your fix @andot but still facing the same problem.

@orhpeus
Copy link
Author

orhpeus commented Sep 22, 2023

I temporarily used the following method to disable the resolution of Windows paths.

  1. Create a new /etc/wsl.conf configuration file under wsl and edit the following:

[interop]
appendWindowsPath=false

@ankitcharolia
Copy link

@andot @orhpeus @bamaas kindly try this out. I am using this goenv: https://github.com/ankitcharolia/goenv.

@k0b3rIT
Copy link

k0b3rIT commented Nov 28, 2023

I am facing the same issue on an ARM MAC with zsh.

@k0b3rIT
Copy link

k0b3rIT commented Nov 28, 2023

@andot 's solution solves the problem THX!

@goFrendiAsgard
Copy link

For anyone who comes here because of this problem:
@andot PR has been there since September 2023, and I don't think the maintainer (@moovops) will merge the PR in the near time.

You can always rollback to the point when the defect has not been introduced, or you can add this at the end of your ~/.zshrc or ~/.bashrc

export PATH=$(echo $PATH | sed 's/:\([^/]\)/ \1/g')

This workaround simply looks for any colon character that is not followed by a slash and replaces it with a space.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants