Questions tagged [asdf-vm]

Use this tag for questions relating to asdf, the extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more, via a simple plugin system.

asdf is an extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more, via a simple plugin system.

https://github.com/asdf-vm/asdf

98 questions
34
votes
7 answers

Install older Ruby versions on a M1 MacBook?

Installing Ruby 3.0.x works fine on M1 MacBooks using rbenv or asdf. But older versions like 2.7.x and 2.6.x are having various issues. How do I fix them, without installing both x86 and ARM versions of homebrew at the same time?
orthodoX
  • 992
  • 1
  • 8
  • 17
14
votes
11 answers

Asdf wont switch local version based on tool-versions or using the local command

I downloaded asdf the other day and am trying to use it with a ruby on rails project I downloaded from Github. When I run asdf install, I get this response: firebase 9.10.0 is already installed ruby 2.7.2 is already installed Then I run rails s…
user15395591
  • 153
  • 1
  • 1
  • 7
13
votes
4 answers

How to get asdf's version to be the version

Explained in terminal, I have installed a version of nodejs using asdf, but the terminal only sees the other version: > asdf list nodejs 12.18.3 > nodejs --version v8.10.0 > asdf global nodejs 12.18.3 > nodejs --version v8.10.0 Have…
xxjjnn
  • 14,591
  • 19
  • 61
  • 94
12
votes
2 answers

asdf message "No version set for command rails" when running Rails server

I am trying to run my rails server (rails s) in my Rails 3.2.13 application after having updated my Ruby version in /.ruby-version and /.tools-versions, but get the following message: asdf: No version set for command rails you might want to add…
8
votes
1 answer

Is it possible to install Homebrew packages with dependencies managed by asdf?

I've recently moved over to asdf to manage runtimes (specifically Node, Ruby and Python). However, I've got a lot of packages installed via Homebrew that depend on a version of one of these runtimes that was installed by Homebrew itself. I'd like to…
zeitchef
  • 204
  • 2
  • 8
7
votes
2 answers

How to use NodeJS debugging in Visual Studio Code with asdf? (cannot find runtime 'node')

Unfortunately Visual Studio Code doesn't find the runtime executable node. But the integrated terminal knows about node: $ which node /home/user/.asdf/shims/node How can I introduce node to Visual Studio Code without adding the runtime executable…
Robin
  • 8,162
  • 7
  • 56
  • 101
7
votes
1 answer

Pipenv not picking up Python version from asdf

Trying to create a Pipfile for a specific Python version, but pipenv fails to detect that the installed Python version is present. Using asdf to install and manage Python versions. ↪ python --version Python 3.6.6 ↪ pipenv --python 3.6.6 Warning:…
Dennis
  • 56,821
  • 26
  • 143
  • 139
6
votes
2 answers

Unable to Install Erlang using asdf on OSX 10.15.4

I am running into an issue that I haven't previously had with over 6+ months of using asdf on osx. I need to install Erlang 21.3.7.1 and when I do I get this error output from the console that I honestly don't know how to…
user3236418
  • 67
  • 1
  • 5
6
votes
1 answer

Can't install gems using asdf

So I'm switching to a project that is using ruby. They use asdf as a package manager I’m having trouble installing the gems, I’m using zsh and I’m thinking there might be an issue with the paths Running gem install bundler outputs: You don't have…
CarlosG90
  • 165
  • 1
  • 9
5
votes
3 answers

asdf commands not working even though it's installed

Does anyone have much experience setting up asdf with zsh? I'm installing it via git. It appears to be installed as typing "asdf" in terminal returns a list of asdf commands, however, if I go to use one of those commands like "asdf version" or "asdf…
Jaredar1232
  • 69
  • 1
  • 1
  • 5
5
votes
1 answer

unable to locate pip packages using asdf in VSC

I have just installed a fresh install of BigSur and Python (using asdf) when installing pip packages they seem to end up in: ./.asdf/installs/python/3.9.2/lib/python3.9/site-packages when typing which flake8 for example I get flake8 not found but…
mrpbennett
  • 1,527
  • 15
  • 40
4
votes
1 answer

ElixirLS compiles without OTP EEP48 docs

Recently I had problem that I can't solve. It's about Elixir LS, when I run language server, it displays this message: {"jsonrpc":"2.0","method":"window/logMessage","params":{"message":"Started ElixirLS…
4
votes
1 answer

Debugging Rails under ASDF in VSCode

I'm trying to set a breakpoint in a Rails application from VSCode on a Mac. I'm using ASDF to install Ruby etc. The default launch configuration in VSCode for Rails looks like this: { "name": "Rails server", "type": "Ruby", "request":…
dumbledad
  • 16,305
  • 23
  • 120
  • 273
4
votes
4 answers

How to use asdf as root user?

I need to read some hardware data with privileges permissions, so I need to use the asdf plugin as root. How can I do that? I tried to start the root user sudo su but I cannot access asdf
fvarj
  • 205
  • 1
  • 3
  • 9
4
votes
1 answer

asdf install [warning] /usr/bin/fop Fop is missing. Using fakefop to generate placeholder PDF files

When installing Erlang using asdf version manager, the above build warning indicates that the apache fop library has either not been installed on the system, or has not been recognised by the asdf version manager. The result is that the Erlang…
Matt G
  • 1,332
  • 2
  • 13
  • 25
1
2 3 4 5 6 7