pik icon indicating copy to clipboard operation
pik copied to clipboard

gems unavailable in git bash

Open mxriverlynn opened this issue 14 years ago • 9 comments

i installed and configured v0.2.8 in my git bash shell, and it basically works... except gems are not available.

i can call 'pik use 187' and it changes to v1.8.7... then when i call 'gem list' it shows there are no gems available.

if i do the same thing from a standard command windows, it shows the gems i have installed, correctly.

mxriverlynn avatar Jun 24 '10 15:06 mxriverlynn

I see this too. I'll look into it.

vertiginous avatar Jun 24 '10 15:06 vertiginous

pik's not unsetting $GEM_HOME and $GEM_PATH properly.

~/Work/repo/pik > pik 1.9.2

~/Work/repo/pik > gem list

*** LOCAL GEMS ***



~/Work/repo/pik > unset GEM_HOME

~/Work/repo/pik > unset GEM_PATH

~/Work/repo/pik > gem list

*** LOCAL GEMS ***

abstract (1.0.0)
  ... all my gems ... 
ZenTest (4.3.2, 4.3.1)

I'll have this fixed in the next release. Sorry about that.

vertiginous avatar Jun 24 '10 15:06 vertiginous

cool... easy work around for now is to add

unset GEM_HOME
unset GEM_PATH

to my .bashrc file.

mxriverlynn avatar Jun 24 '10 16:06 mxriverlynn

Yeah, if you're not using GEM_HOME at all, the best way to fix it would probably be to modify ~/.pik/.pikrc to

#!/bin/sh
pik_path=/c/bin

function pik  {
  $pik_path/pik_runner.exe pik.sh $@
  [[ -s $USERPROFILE/.pik/pik.sh ]] && source $USERPROFILE/.pik/pik.sh
  unset GEM_HOME
  unset GEM_PATH
} 

vertiginous avatar Jun 24 '10 17:06 vertiginous

I'm seeing this same issue and I just installed the pik gem today. Is this fixed in a release, and if so, how can I install the fix?

Thanks!

briandonahue avatar Apr 13 '11 16:04 briandonahue

@briandonahue did you modify ~/.pik/.pikrc file as described by Gordon?

luislavena avatar Dec 22 '11 10:12 luislavena

same issue.. did the ~/.pik/.pikrc thing and that fixed it.. make sure you source that back in or exit git bash and come back..

cuzic4n avatar Apr 20 '12 22:04 cuzic4n

worked for me too edited .pikrc and its working like a charm.

jwebcat avatar Jan 18 '13 01:01 jwebcat

Gordon's workaround was exactly what I needed, too. Thanks.

spccdt avatar Jul 13 '13 16:07 spccdt