Windows: `uru TAG` doesn't switch to the ruby

Issue #63 closed
Former user created an issue

uru TAG runs ruby instead of switching. Command-line output:

PS C:\Open\path> uru list
    ruby2       : ruby 2.1.4p265 (2014-10-27 revision 48166) [x64-mingw32]

From the uru install location:

PS C:\Open\path> uru ruby2
ruby 2.1.4p265 (2014-10-27 revision 48166) [x64-mingw32]

But ruby runs (as an interpreter?) and doesn't terminate, so I have to interrupt, and it's still not switched:

PS C:\Open\path> ruby: Interrupt
uru list
    ruby2       : ruby 2.1.4p265 (2014-10-27 revision 48166) [x64-mingw32]

If I attempt to switch outside the uru install location, it indicates an attempt to run ruby (that fails):

PS C:\Users\Luis\git\wintersmith\ctsi> uru ruby2
ruby 2.1.4p265 (2014-10-27 revision 48166) [x64-mingw32]
---> unable to run `ruby `

Comments (6)

  1. Jon repo owner

    I'm guessing your tag name of ruby2 confuses uru since I cannot replicate your failure using "normally" named tags.

    Instead of using ruby2 please try choosing another tag label (that doesn't contain ruby) and see if the problem persists.

    PS Documents> $PSVersionTable.PSVersion
    
    Major  Minor  Build  Revision
    -----  -----  -----  --------
    4      0      -1     -1
    
    PS Documents> uru ver
    uru v0.7.6.alpha.1 (go1.3.3)
    
    PS Documents> uru ls
        1715        : jruby 1.7.15 (1.9.3p392) 2014-09-03 82b5cc3 on Java HotSpot(TM) ...
        200p595-x32 : ruby 2.0.0p595 (2014-10-28 revision 48173) [i386-mingw32]
        215p267-x32 : ruby 2.1.5p267 (2014-10-28 revision 48177) [i386-mingw32]
    
    PS Documents> uru 21
    ---> Now using ruby 2.1.5-p267 tagged as `215p267-x32`
    
    PS Documents> uru ls --verbose
        1715        : jruby 1.7.15 (1.9.3p392) 2014-09-03 82b5cc3 on Java HotSpot(TM) ...
                      ID: 1.7.15
                      Home: C:\Apps\rubies\jruby\bin
                      GemHome:
    
        200p595-x32 : ruby 2.0.0p595 (2014-10-28 revision 48173) [i386-mingw32]
                      ID: 2.0.0-p595
                      Home: C:\Apps\rubies\ruby-2.0.0\bin
                      GemHome:
    
     => 215p267-x32 : ruby 2.1.5p267 (2014-10-28 revision 48177) [i386-mingw32]
                      ID: 2.1.5-p267
                      Home: C:\Apps\rubies\ruby-2.1\bin
                      GemHome:
    
  2. Luis Marsano

    Much better!

    PS C:\Users\Luis> uru ls
        ruby2       : ruby 2.1.4p265 (2014-10-27 revision 48166) [x64-mingw32]
    PS C:\Users\Luis> uru ruby2
    ---> Now using ruby 2.1.4-p265 tagged as `ruby2`
    PS C:\Users\Luis> uru ls
     => ruby2       : ruby 2.1.4p265 (2014-10-27 revision 48166) [x64-mingw32]
    
  3. Log in to comment