RubyMine 4.0.2 cannot use non-webrick web server

Despite having unicorn and thin installed and visible in the Ruby SDK and Gems listing for the selected SDK, the Edit Configurations tab indicates these servers are not available, nor will they run.

I am using rbenv, ruby1.9.3-p125, RubyMine 4.0.2, on OSX Lion.

4 comments
Comment actions Permalink

Hello Doug,

in order to run Rails >= 3.0 application you need to have appropriate gem in your Gemfile. Error message is not correct, this will be fixed

0
Comment actions Permalink

Thanks, but that works only intermittently. I'm presently on a project that reports the error even thought everything is fine in Gemfile and Gemfile.lock.

0
Comment actions Permalink

Works fine for me, could you please provide ouput of Tools | Show gem environment?

0
Comment actions Permalink

Thanks for helping, this is tough with the time difference. I'm answering this now at 2am, I'm hoping we might make some sort of progress for tomorrow's workday.

When I do "gem env" in the shell I see the same top section from Tools | Show gem environment. But gem list shows "thin", the server that is reported as unavailable.

It's the same for me on two macs running Lion, and two different projects. In this example, I'm using a recompiled version of ruby, on the other machine it's stock, but rbenv on both.

Perhaps you could try duplicating this with https://github.com/aceofspades/caloris, ref c2c43daa79ac88842882720f2baba85aa15bd323. The project is in test/test_app. In this case the test/test_app/Gemfile is what specifies the thin server, in the other example it's the root application, more normally.

Here's the gem environment:

RUBYGEMS VERSION: 1.8.11
RUBY VERSION: 1.9.3 (2012-02-16 patchlevel 125) [x86_64-darwin11.3.0]
INSTALLATION DIRECTORY: /Users/doug/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1
RUBY EXECUTABLE: /Users/doug/.rbenv/versions/1.9.3-p125-perf/bin/ruby
EXECUTABLE DIRECTORY: /Users/doug/.rbenv/versions/1.9.3-p125-perf/bin
RUBYGEMS PLATFORMS:
  ruby
  x86_64-darwin-11
GEM PATHS:
   /Users/doug/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1
   /Users/doug/.gem/ruby/1.9.1
GEM CONFIGURATION:
   :update_sources => true
   :verbose => true
   :benchmark => false
   :backtrace => false
   :bulk_threshold => 1000
   :sources => ["http://rubygems.org", "http://gems.rubyforge.org/", "http://gems.github.com", "http://gemcutter.org"]
   "install" => "--no-ri --no-rdoc"
   "update" => "--no-ri --no-rdoc"
REMOTE SOURCES:
   http://rubygems.org
   http://gems.rubyforge.org/
   http://gems.github.com
   http://gemcutter.org
----------------------
IDE: JetBrains RubyMine 4.0.2, build #RM-113.31
OS: Mac OS X 10.7.3[x86_64]
Java: 1.6.0_29-b11-402-11D50b
RubyMine SDK Environment:
Sdk: ruby-1.9.3-p125 (1)
Sdk Version: ver.1.9.3p125 ( revision 34643) p125
Ruby Interpreter: /Users/doug/.rbenv/versions/1.9.3-p125-perf/bin/ruby
RVM Sdk: no
RVM Home: [n/a]
Sdk Language Level: 1.9
Sdk Load Path:
     ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/site_ruby/1.9.1
     ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/site_ruby/1.9.1/x86_64-darwin11.3.0
     ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/site_ruby
     ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/vendor_ruby/1.9.1
     ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/vendor_ruby/1.9.1/x86_64-darwin11.3.0
     ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/vendor_ruby
     ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/1.9.1
     ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/1.9.1/x86_64-darwin11.3.0
     /Applications/RubyMine.app/rubystubs19
Sdk Gem paths:
     ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems
     ~/.gem/ruby/1.9.1/gems
     ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/bundler/gems
     ~/.gem/ruby/1.9.1/bundler/gems
Gems used for 'test_app':
     rspec (2.8.0)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/rspec-2.8.0
     mercury-rails (0.3.1)
         /Volumes/PenscoSecure/mercury
     rack (1.4.1)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/rack-1.4.1
     coffee-script (2.2.0)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/coffee-script-2.2.0
     ffi (1.0.11)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/ffi-1.0.11
     activerecord (3.2.2)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/activerecord-3.2.2
     polyglot (0.3.3)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/polyglot-0.3.3
     unicorn (4.2.0)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/unicorn-4.2.0
     actionmailer (3.2.2)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/actionmailer-3.2.2
     activesupport (3.2.2)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/activesupport-3.2.2
     builder (3.0.0)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/builder-3.0.0
     sprockets (2.1.2)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/sprockets-2.1.2
     mime-types (1.17.2)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/mime-types-1.17.2
     bundler (1.1.0)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/bundler-1.1.0
     tzinfo (0.3.32)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/tzinfo-0.3.32
     railties (3.2.2)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/railties-3.2.2
     activemodel (3.2.2)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/activemodel-3.2.2
     arel (3.0.2)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/arel-3.0.2
     rack-test (0.6.1)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/rack-test-0.6.1
     thor (0.14.6)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/thor-0.14.6
     uglifier (1.2.3)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/uglifier-1.2.3
     rdoc (3.12)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/rdoc-3.12
     rspec-mocks (2.8.0)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/rspec-mocks-2.8.0
     multi_json (1.1.0)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/multi_json-1.1.0
     rake (0.9.2.2)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2
     treetop (1.4.10)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/treetop-1.4.10
     activeresource (3.2.2)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/activeresource-3.2.2
     rack-ssl (1.3.2)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/rack-ssl-1.3.2
     tidy_ffi (0.1.4)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/tidy_ffi-0.1.4
     mail (2.4.3)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/mail-2.4.3
     rails (3.2.2)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/rails-3.2.2
     coderay (1.0.5)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/coderay-1.0.5
     json (1.6.5)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/json-1.6.5
     hike (1.2.1)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/hike-1.2.1
     tilt (1.3.3)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/tilt-1.3.3
     rspec-expectations (2.8.0)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/rspec-expectations-2.8.0
     actionpack (3.2.2)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/actionpack-3.2.2
     nokogiri (1.5.0)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/nokogiri-1.5.0
     erubis (2.7.0)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/erubis-2.7.0
     coffee-rails (3.2.2)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/coffee-rails-3.2.2
     execjs (1.3.0)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/execjs-1.3.0
     diff-lcs (1.1.3)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/diff-lcs-1.1.3
     method_source (0.7.0)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/method_source-0.7.0
     sass (3.1.15)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/sass-3.1.15
     grit (2.4.1)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/grit-2.4.1
     pry (0.9.8.2)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/pry-0.9.8.2
     cocaine (0.2.1)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/cocaine-0.2.1
     paperclip (2.7.0)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/paperclip-2.7.0
     raindrops (0.8.0)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/raindrops-0.8.0
     kgio (2.6.0)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/kgio-2.6.0
     coffee-script-source (1.2.0)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/coffee-script-source-1.2.0
     i18n (0.6.0)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/i18n-0.6.0
     sqlite3 (1.3.5)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/sqlite3-1.3.5
     slop (2.4.4)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/slop-2.4.4
     rack-cache (1.2)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/rack-cache-1.2
     jquery-rails (1.0.19)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/jquery-rails-1.0.19
     journey (1.0.3)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/journey-1.0.3
     sass-rails (3.2.4)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/sass-rails-3.2.4
     rspec-core (2.8.0)
         ~/.rbenv/versions/1.9.3-p125-perf/lib/ruby/gems/1.9.1/gems/rspec-core-2.8.0

0

Please sign in to leave a comment.