Giter VIP home page Giter VIP logo

Comments (5)

mocoso avatar mocoso commented on June 8, 2024 1

I can no longer reproduce this and so am closing the original issue.

@taralbass if you want to re-open it with the specific issue you found then please do.

from chruby-fish.

mocoso avatar mocoso commented on June 8, 2024

This looks like a more general issue, which occurs anytime chruby is switching to a directory where no ruby version is specified.

from chruby-fish.

JeanMertz avatar JeanMertz commented on June 8, 2024

I'm not seeing what you are seeing:

~ ❯ cd /
/ ❯
/ ❯ chruby
   ruby-2.4.1
/ ❯ chruby ruby
/ ❯ chruby
 * ruby-2.4.1
/ ❯ chruby --version
chruby: 0.3.9
chruby-fish: 0.8.1

Could you validate that this is also happening for you on the latest stable version?

Also, looking at the error, there seems to be something wrong with your PATH variable, since the script can't find grep or hostname, which should always be present on your machine.

If you can reproduce the error, can you report back what echo $PATH and grep --version and hostname return?

from chruby-fish.

taralbass avatar taralbass commented on June 8, 2024

I saw this happen as well, but only when my .bashrc (or .bash_profile) happened to echo something. You can probably easily reproduce it by adding echo "foo" to an otherwise empty .bashrc. Then it looked to me like chruby-fish's chruby_reset ended up setting the path to 'foo' instead of the proper path, since foo ends up coming before the proper path in the output of the underlying call to chruby's chruby_reset.

from chruby-fish.

mthadley avatar mthadley commented on June 8, 2024

I'm running into the same original issue you had @mocoso. Do you happen to know what changed in your environment?

from chruby-fish.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.