Giter Site home page Giter Site logo

No version set for ... about asdf HOT 7 CLOSED

asdf-vm avatar asdf-vm commented on May 6, 2024
No version set for ...

from asdf.

Comments (7)

henrik avatar henrik commented on May 6, 2024 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.

HashNuke avatar HashNuke commented on May 6, 2024 1

@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.

bxt avatar bxt commented on May 6, 2024 1

For me the problem was that the .ruby-version file in my current directory had a version I did not install before.

from asdf.

gaelant avatar gaelant commented on May 6, 2024 1

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.

HashNuke avatar HashNuke commented on May 6, 2024

@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.

maarek avatar maarek commented on May 6, 2024

@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.

maarek avatar maarek commented on May 6, 2024

@HashNuke That was it. Didn't realize it was something that needed to be done (at least globally).

from asdf.

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.