Comments (8)
@zalom i found a solution, just the space from this path ~/.gvm/scripts/function/munge_path line 51.
Something like this
IFS=':' path_in_ary=( $(printf "%s" "${path_in}") ) IFS="$defaultIFS"
from gvm.
I'm seeing the same behaviour, but in this case it's mangling the path for VS Code:
In GVM_PATH_BACKUP
:
/mnt/c/Users/bearps/AppData/Local/Programs/Microsoft VS Code/bin
In PATH
:
/mnt/c/Users/bearps/AppData/Local/Programs/Microsoft:VS:Code/bin
The version I'm running:
$ gvm version
Go Version Manager v1.0.22 installed at /home/bevan/.gvm
from gvm.
This works for me. Thanks @caioreix !
Is this a typo or for some reason it is meant to be ': '? If its just a mistake maybe somebody can make a quick PR and fix it permanently?
from gvm.
Same problem here, gvm is replacing spaces with :
from gvm.
Ditto. I spent a day debugging to see why code
does not work when called from the terminal on WSL.
The conclusion is the same, colon (:
) replaces spaces.
Also, it replaces cd
as well.
(before gvm scripts mod)
❯ type cd
cd is a shell builtin
(after gvm scripts mod)
❯ type cd
cd is a shell function from /home/zlatko/.gvm/scripts/env/cd
from gvm.
@zalom i found a solution, just the space from this path ~/.gvm/scripts/function/munge_path line 51.
Something like this
IFS=':' path_in_ary=( $(printf "%s" "${path_in}") ) IFS="$defaultIFS"
Thanks man!
from gvm.
Installed gvm today and had the same problem.
Windows 10
WSL2 (Ubuntu 22.04)
Go Version Manager v1.0.22
Removing the extra space in line 51 of ~/.gvm/scripts/function/munge_path
does not work for me.
Also further to what was already reported (replacement of spaces with a colon), Looking closely at the changes made to the PATH. I can see that many of my paths were simply chopped off. Here are some examples
FROM:
/mnt/c/Program Files/Eclipse Adoptium/jdk-8.0.382.5-hotspot/bin
/mnt/c/Program Files/nodejs
TO:
Adoptium/jdk-8.0.382.5-hotspot/bin
Files/nodejs
So the problem is not limited with replacing spaces with colon. Some paths simply get chopped off at a space.
from gvm.
Related Issues (20)
- Why GVM always install `darwin/arm64`
- Overriden cd fails to switch to paths with spaces HOT 11
- panic: invalid path: 'css/bootstrap.min.css'
- Cannot install Go 1.4 HOT 6
- Significant ZSH Performance Slowdown After Adding gvm to PATH
- Startup error when having `cd` already set as alias HOT 3
- Failed install go1.22 HOT 2
- how to instal specific tmp folder on mac ?
- Message 'sed: first RE may not be empty' when using gvm switch version
- ERROR: Looks like the .git directory is present. Please reinstall GVM. HOT 3
- gvm use command causes GVM_ROOT to change
- gvm cd fails with Unrecognized command line argument: ''
- several gvm commands failing HOT 1
- `cd` command is slow HOT 2
- gvm requires go to compile go HOT 1
- GVM use go.mod file HOT 1
- gvm install failed in mac m3 pro HOT 8
- go mod init fail
- `__gvm_munge_path` incorrectly reformats path incorrectly. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gvm.