Comments (7)
I got the error
asdf: No version set for command bundle
trying to run bundle
after upgrading Ruby via asdf. The error message was confusing, suggesting versions earlier than the one I had installed (2.5.5):
$ bundle
asdf: No version set for command bundle
you might want to add one of the following in your .tool-versions file:
ruby 1.9.3-p551
ruby 2.2.5
ruby 2.4.1
ruby 2.4.4
ruby 2.5.1
What fixed it for me was simply to gem install bundle
.
from asdf.
@maarek can you get me the following info?
- path where you have the
.tool-versions
file - contents of the
.tool-versions
file - command you tried to run
- any errors you get
Incase you don't have a .tool-versions
file, that's how you set versions (globally or in the project directory). Here's some info about it https://github.com/HashNuke/asdf#the-tool-versions-file
from asdf.
For me the problem was that the .ruby-version
file in my current directory had a version I did not install before.
from asdf.
I got the error
asdf: No version set for command bundle
trying to run
bundle
after upgrading Ruby via asdf. The error message was confusing, suggesting versions earlier than the one I had installed (2.5.5):$ bundle asdf: No version set for command bundle you might want to add one of the following in your .tool-versions file: ruby 1.9.3-p551 ruby 2.2.5 ruby 2.4.1 ruby 2.4.4 ruby 2.5.1
What fixed it for me was simply to
gem install bundle
.
Also for people who recently upgraded Ruby, don't forget to run bundle install
after @henrik 's suggestion.
from asdf.
@maarek Checked with zsh and pushed a fix.
-
Please run
git pull origin master
within your$HOME/.asdf
dir -
In your
.zshrc
, change the following:source $HOME/asdf/.asdf.sh
to
. $HOME/asdf/.asdf.sh
I changed the installation instructions too. In short, use the dot operator instead of source
. Let me know how it goes.
from asdf.
@HashNuke I modified to you instructions and it's still not finding a version set for the install. I tried wiping the .asdf directory and starting over as well without any luck.
from asdf.
@HashNuke That was it. Didn't realize it was something that needed to be done (at least globally).
from asdf.
Related Issues (20)
- Support things like Brewfile HOT 1
- bug: "which" parameter cannot find
- recursive upward search HOT 2
- bug: getting "You have configured asdf to preserve downloaded files" when I don't HOT 5
- Allow running tools from one another without passing `ASDF_DATA_DIR` around
- Add the ability to track which versions are in use HOT 1
- bug: The terminal in VS Code cannot find the ruby version installed by asdf (again)
- bug: tool installed in global nodejs are not available in project with a different nodejs version HOT 2
- It is recommended to add a -g parameter to the install command.
- The startup guide doesn't mention how to set the PATH HOT 1
- bug: Sporadic X Plugin Not Installed Errors - ASDF Install
- bug: `No version is set for command shasum` on Mac
- Support version requirements in tool-versions
- bug: ASDF_DEFAULT_TOOL_VERSIONS_FILENAME env variable works so wired
- Add command line flag that prevents `asdf install` from ascending to parent directories
- bug: AUR package wants to use python but does not find any preset version
- bug: ASDF_DEBUG: unbound variable HOT 1
- bug: No times executable found for ruby 3.3.0
- Install should have `--local` and `--global` optional flags
- Completion that supports split subcommands(plugin-add -> plugin add)
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 asdf.