Install Rubymine on Mac

From Bonus Bits
Jump to: navigation, search

Purpose

This article gives the steps to install RubyMine on macOS.


Optional

Rubymine now comes with openJDK bundled.


Install RubyMine

  1. Download
    1. http://www.jetbrains.com/ruby/
  2. Run installer


User File Paths

Configuration Path

~/Library/Preferences/<PRODUCT><VERSION>

Caches

~/Library/Caches/<PRODUCT><VERSION>

Plugins

~/Library/Application Support/<PRODUCT><VERSION>

Logs

~/Library/Logs/<PRODUCT><VERSION>


Configure Memory

If you're like me you may have several projects open simultaneously and find Rubymine will use up the default 512-768 and crash. You can change the memory settings from the CLI.

  1. Copy the default rubymine.vmoptions file to your personal Preferences directory. Do not edit the files in the application, it will violate the application signature.
    sudo cp /Applications/RubyMine.app/Contents/bin/rubymine.vmoptions ~/Library/Preferences/RubyMine2016.3/
    
  2. Change Ownership of rubymine.vmoptions file
    sudo chown username:staff ~/Library/Preferences/RubyMine2016.3/rubymine.vmoptions
    
  3. Edit the rubymine.vmoptions file
    vim ~/Library/Preferences/RubyMine2016.3/rubymine.vmoptions
    
  4. Change the Xmx value to what you want.
    1. 1 or 2 GB should be good, but to really know I recommend enabling Show memory indicator in settings to see how much memory you're actually using.
  5. Restart Rubymine

Example

-Xms256m
-Xmx1024m
-XX:MaxPermSize=250m
-XX:+UseCompressedOops


Force JDK Version Used by Rubymine

If you want the IDE to run a specific (maybe newer) installed JDK instead of it's bundled version. This is usually not necessary.

  1. Create a rubymine.jdk file in your app preferences folder
    vim ~/Library/Preferences/RubyMine2016.3/idea.jdk
    
  2. Add path to JDK
    /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk
    
  3. Write and Quit
    :wq
    
  4. Restart Rubymine

Sources