title: VSCode solargraph provider failed on Ruby 2.2.2
body: <p>Can I get Ruby code navigation to work with VSCode and Ruby 2.2.2? I've installed the latest VSCode (1.51.1), but I'm trying to edit code in a project that's still on Ruby 2.2.2. I'm able to get code completion and docs working for built-in classes like <code>String</code>, but I can't get it working for code in the project.</p>
  <p>To diagnose the problem, I type <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> and choose <code>Developer: Show Logs...</code>, followed by <code>Extension Host</code>. Then when I hover over a project method, I see this repeated several times in the output window:</p>
  <pre><code>[2020-11-30 15:08:33.198] [exthost] [error] [castwide.solargraph] provider FAILED
  [2020-11-30 15:08:33.198] [exthost] [error] undefined
  </code></pre>
  <p>I've installed three VSCode extensions:</p>
  <ol>
  <li>Ruby 0.27.0 by Peng Lv</li>
  <li>Ruby Solargraph 0.12.0 by Castwide</li>
  <li>VSCode Ruby 0.27.0 by Stafford Brunk</li>
  </ol>
  <p>I tried installing newer versions of Solargraph, but their dependencies didn't work on Ruby 2.2.2.</p>
  <p>As an experiment, I tried creating a minimal project to navigate through. I see the error above when I open <code>myproject.rb</code> and hover over the call to <code>get_other_name()</code> on line 5.</p>
  <h3>myproject.rb</h3>
  <pre><code>require 'sinatra'
  require_relative 'helper'
  
  get '/' do
      'Hello, ' + get_other_name()
  end
  
  def get_name()
      return 'Bob'
  end
  </code></pre>
  <h3>helper.rb</h3>
  <pre><code>def get_other_name()
      return 'Alice'
  end
  </code></pre>
  <h3>Gemfile</h3>
  <pre><code>source 'https://rubygems.org'
  ruby '2.2.2'
  
  # To install all these gems, run &quot;gem install bundler&quot;, then &quot;bundle install&quot;.
  
  gem 'thin', '1.7.2'
  gem 'sinatra', '2.0.1'
  
  group :devtools, optional: true do
      gem 'rubocop', '~&gt; 0.52'
      gem 'solargraph', '0.12.2'
  end
  </code></pre>
  <h3>.vscode/settings.json</h3>
  <pre><code>{
      &quot;solargraph.useBundler&quot;: true
  }
  </code></pre>
  <p>I'm running on Ubuntu 20.04, and I used <code>rvm</code> to install Ruby 2.2.2. I also tried turning off bundler in the solargraph settings and setting the command path to solargraph, but I get the same error.</p>