The most popular way to install Ruby on Linux or macOS is using a version manager, for example, RVM or rbenv. Version managers allow you to install several Ruby versions on your machine and quickly switch between them. IntelliJ IDEA automatically detects interpreters installed on a local machine and maintained by the following version managers:
- The Software Development Kit Manager. Is a tool for managing parallel versions of multiple Software Development Kits on most Unix based systems. It provides a convenient Command Line Interface (CLI) and API for installing, switching, removing and listing Candidates.
- After 1,5 years of developing FM Version we have decided to release the first version manager made specifically for FileMaker. We are excited to introduce other developers to FM Version and help them do what we like the most, building awesome software for great clients in a fun and controlled way while learning new skills along the way.
Public interface VersionManager. The VersionManager object is accessed via Workspace.getVersionManager.It provides methods for: Version graph functionality (version history, base version, successors predecessors). Nvm - Node Version Manager. It is a tool that allows you to download and install Node.js. It allows you to pick and choose the Node.js version that you wish to use. Node.js - It is a platform for running JavaScript applications. Download iskysoft for mac.
rbenv with the rbenv-gemsets plugin for gemsets
asdf with the asdf-ruby plugin
You can switch between Ruby interpreters (and gemsets for RVM and rbenv) on the Ruby SDK & Gems page for existing projects, and choose the desired interpreter when creating a new project.
IntelliJ IDEA also allows you to work with version managers installed on Windows 10 through WSL.
Auto-switch a Ruby interpreter/gemset
Version managers support various types of configuration files used to auto-switch a project's Ruby version and gemset. For example, you can set the Ruby interpreter version to 2.6.3 and the gemset to sample_rails_app in one of the following ways:
Using the .ruby-version/ .ruby-gemset files
Using the .versions.conf file
If the corresponding Ruby version is installed and the gemset exists, IntelliJ IDEA automatically switches the project interpreter and gemset on the project opening.
Remote Ruby interpreters
IntelliJ IDEA allows you to use remote Ruby interpreters maintained using version manages. In this case, you have to specify a path to the version manager executable when configuring a remote interpreter. For instance, the following table lists typical paths for Linux.
Version manager | Executable path |
---|---|
RVM | Single-user mode: /home/jetbrains/.rvm/bin/rvm (for the jetbrains user) Multi-user mode: /usr/local/rvm/bin/rvm Mixed mode: /usr/share/rvm/bin/rvm |
rbenv | /home/jetbrains/.rbenv/bin/rbenv (for the jetbrains user) /usr/bin/rbenv |
chruby | /usr/local/share/chruby/chruby.sh |
asdf | /home/jetbrains/.asdf/bin/asdf (for the jetbrains user) |
How to: Debug detecting of Ruby interpreters
If you have issues with detecting local Ruby interpreters maintained by your version manager, follow the steps below to help us determine the cause of the problem:
Open IntelliJ IDEA and go to Help | Diagnostic Tools | Debug Log Settings.
In the invoked dialog, specify a logger identifier for your version manager:
RVM:
#org.jetbrains.plugins.ruby.version.management.rvm.RvmSdkRefresher
rbenv:
#org.jetbrains.plugins.ruby.version.management.rbenv.RbenvSdkRefresher
chruby:
#org.jetbrains.plugins.ruby.version.management.chruby.ChrubySdkRefresher
asdf:
#org.jetbrains.plugins.ruby.version.management.asdf.AsdfSdkRefresher
Click OK.
Restart IntelliJ IDEA.
Open a and make sure it contains entries corresponding to your version manager, for example:
2018-07-30 16:57:18,237 [7350] DEBUG - management.asdf.AsdfSdkRefresher - Refreshing sdksCreate an issue and attach the logs.
Characteristic
Single file, not dependent on any environment.
Direct use, no configuration.
Color stdout.
Support multiple download.
Built-in TAOBAO, convenient switching, also support custom.
Support NPM download / install.
Download
32-bit | 64-bit Host by Box.com
32-bit | 64-bit Host by Github.com
- For go user, please usage
go get github.com/Kenshin/gnvm
- For git user, please usage
git clone git@github.com:Kenshin/gnvm-bin.git
- For curl user, usage
curl -L https://github.com/Kenshin/gnvm-bin/blob/master/32-bit/gnvm.exe?raw=true -o gnvm.exe
curl -L https://github.com/Kenshin/gnvm-bin/blob/master/64-bit/gnvm.exe?raw=true -o gnvm.exe
Installation
Not exist Node.js Environment
Download and unzip gnvm.exe save to any local folder and add this folder to Environment Path.
Exist Node.js Environment
Download and unzip gnvm.exe save to the same Node.js folder.
Validation
- Run cmd and input gnvm version, if output print gnvm version, configuration is successful.
Definitions
global current Node.js version.
latest latest Node.js version.
session current cmd Environment( temporary environment ).
.gnvmrcgnvm.exe configure file, can be auto created and it saved local/remote Node.js version information.
registrynode.exe download URL, default is DEFAULT, can be choose TAOBAO, and support custom url.
noderoot global Node.js path.
Getting Started
gnvm.exe is a single exe file, don't need to configure, direct usage.
.gnvmrc
Change fast registry
gnvm.exe built-in DEFAULT and TAOBAO two registry.
Install multiple Node.js
Install any Node.js version include: automatic recognition of latest version, io.js version and specified arch, e.g. x.xx.xx-x64.
Uninstall local Node.js version
Usage any local Node.js version
List all local Node.js versions
Update local Node.js latest version
Install npm
gnvm support install npm, download npm latest version, usage gnvm npm latest.
Search Node.js version from .gnvmrc registry
you can usage * or /regxp/, e.g. gnvm search 5.*.* or gnvm search /.10./ .
Example
1. Not exist Node.js Environment and download Node.js latest version and usage it.
2. Update local Node.js latest version.
3. See Node.js global and latest version.
4. Verify config registry.
5. Local not exist npm and install local Node.js version matching npm version.
Install latest npm version.
TO-DO
Add HTTP_PROXY.
Auto Upgrade, usage gnvm upgrad.
Add gnvm.exe to Chocolatey.
Thanks
Version Manager Asdf
Icon http://www.easyicon.net.
Theme reference You-Get.