asdf-ruby | Ruby plugin for asdf version manager | Plugin library
kandi X-RAY | asdf-ruby Summary
kandi X-RAY | asdf-ruby Summary
Ruby plugin for asdf version manager
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of asdf-ruby
asdf-ruby Key Features
asdf-ruby Examples and Code Snippets
Community Discussions
Trending Discussions on asdf-ruby
QUESTION
Edit 1: Another person reported similar issue with asdf.
Edit 2: Another reported similar issue.
Edit 3: I uninstalled rvm
, installed rvm
, installed ruby
and rails
, and attempted some activities.
Edit 4: Another person mentioned that it's caused by the line I put into .zshrc
(or .bash_profile/.bashrc
):
RUBYOPT: "-W:no-deprecated -W:no-experimental"
.
Problem: I have two projects, one using ruby-2.7.0
, the other using ruby-2.6.5
.
Every time I installed over two versions of ruby, only one version ends up working (2.7.0). The bundle
as well as gem
commands on the other will no longer work but give a Traceback....(RuntimeError)
.
Most Recent Attempt and Console Outputs: Console output flow is roughly:
- Uninstall
rvm
- Install
rvm
- Install
ruby-2.7.0
- Install
ruby-2.6.5
- For
ruby-2.7.0
, installrails
- For
ruby-2.6.5
, installrails
- Everything working alright so far
- Append
export PATH="$PATH:$HOME/.rvm/bin"
to ~/.zshrc - Still working alright
- Did
echo "export RUBYOPT='-W:no-deprecated -W:no-experimental'" >> ~/.zshrc
;source ~/.zshrc
- Started noticing the problem again
ruby-2.6.5
does not work;ruby-2.7.0
still works
ANSWER
Answered 2020-Feb-15 at 17:01I had the exact same issue, except using rbenv with bash.
The perpetrator seems to be the echo "export RUBYOPT='-W:no-deprecated -W:no-experimental'" line in your .zsh file, I'm not sure if Ruby 2.6.5 understands it.
Remove echo "export RUBYOPT='-W:no-deprecated -W:no-experimental'" from your .zsh / .bashrc / .profile and restart your shell.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install asdf-ruby
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page