Comments (5)
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.
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.
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.
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.
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)
- Installing without brew HOT 1
- Fully set RUBIES doesn't match chruby output HOT 4
- "path component may not be valid" warning HOT 2
- wishlist: support for gem_home HOT 2
- Listing rubies also prints version
- Issue with GEM_PATH when using emacs robe HOT 1
- Add tests?
- Unknown commands with 0.7.1 HOT 9
- New release? HOT 2
- fish-specific PATH changes get lost when changing ruby versions HOT 6
- chruby-fish executing .bash_profile when changing ruby HOT 1
- My setup suddenly stopped working - won't update $PATH variable HOT 19
- Permission issues on macosx
- test suite no longer working on latest macOS releases HOT 2
- tracking against chruby/auto.sh: chruby-fish defaults to system ruby when moving to a non-project directory
- chruby cannot successfully switch to mruby-3.0.0 under Fish
- Replace Travis CI with GitHub Actions HOT 1
- Consider using an org for this repo.
- Ruby is unselected when cd'ing out of a directory with a .ruby-version file HOT 3
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 chruby-fish.