gvm icon indicating copy to clipboard operation
gvm copied to clipboard

Source `$HOME/.gvm/scripts/gvm` and gets`code` command not found

Open ducminhgd opened this issue 6 months ago • 3 comments

What I use

  • Windows WSL2 Ubuntu
  • Go Version Manager v1.0.22
  • zsh 5.9 (x86_64-ubuntu-linux-gnu)
  • Oh-My-Zsh version master (a6beb0f)
  • VSCode
    • Version: 1.102.3 (user setup)
    • Commit: 488a1f239235055e34e673291fb8d8c810886f81
    • Date: 2025-07-29T03:00:23.339Z
    • Electron: 35.6.0
    • ElectronBuildId: 11847422
    • Chromium: 134.0.6998.205
    • Node.js: 22.15.1
    • V8: 13.4.114.21-electron.0
    • OS: Windows_NT x64 10.0.26100

Issue

In my ~/.zshrc, if I add source $HOME/.gvm/scripts/gvm line in, and I use code command in a terminal, I get this error

code .
zsh: command not found: code

ducminhgd avatar Aug 07 '25 13:08 ducminhgd

could be some issue in ~/.gvm/scripts/gvm-default that's the main thing I know. wish I had the time to investigate more.

update - https://github.com/moovweb/gvm/issues/457#issuecomment-3181026134

ket395 avatar Nov 20 '25 11:11 ket395

could be some issue in ~/.gvm/scripts/gvm-default that's the main thing I know. wish I had the time to investigate more.

update - #457 (comment)

@ket395 https://github.com/moovweb/gvm/pull/482 I think this can solve this problem

ducminhgd avatar Nov 29 '25 03:11 ducminhgd

Thanks that good news. When it gets merged, let me know. Thanks again.

ket395 avatar Dec 01 '25 09:12 ket395