Rails server launcher wasn't found in project Follow
Hi RubyMiners,
After importing an existing project into RubyMine, I encountered "Rails server launcher wasn't found in the project" when I Run/Edit Configuration.
I've checked this Cannot start the debugger in Rubymine. Rails server launcher wasn't found in project, but deleting the .idea directory and re-open is not helpful.
I can
rails serverin the Terminal successfully and the rails server runs. So I guess it's likely a RubyMine related thing.
Essentially, what does rails server launcher mean in RubyMine?
Thanks, Allen
Please sign in to leave a comment.
Hi,
rails launcher is the executable (rails) you use to run server.
Is what version of rails are you using?
Regards, Oleg.
Thanks to your reply, Oleg!
This is my `gem which rails` result
/Users/allenlin/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails.rb
That's interesting since I could `rails server` in the Terminal when I am under the project directory.
Please let me know if you need further information!
Thanks
Allen
'gem which' reports file which you can require, to find the executable use plain old 'which' in shell.
Regards, Oleg.
Oh! I don't know the differences... Thanks for telling me that!
Here is the `which rails` result
/Users/allenlin/.rbenv/shims/rails
Is that something correct?
Thanks
Allen
Yes, it is.
Now the question is what rails version is listed in external dependencies of the project in RubyMine?
Regards, Oleg.
Oleg, sorry that I am pretty new to Ruby and not so familiar with the Ruby's file structure. Where should I look for this information? I've attached the .gemspec file and Gemfile and .Gemfile.lock
Please let me know if you need something else!
Thanks
Allen
/**.gemspec**/
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'geoblacklight/version'
Gem::Specification.new do |spec|
spec.name = 'geoblacklight'
spec.version = Geoblacklight::VERSION
spec.authors = ['Mike Graves', 'Darren Hardy', 'Eliot Jordan', 'Jack Reed']
spec.email = ['mgraves@mit.edu', 'drh@stanford.edu', 'eliotj@princeton.edu', 'pjreed@stanford.edu']
spec.summary = 'A discovery platform for geospatial holdings'
spec.description = 'GeoBlacklight provides a world-class discovery platform for geospatial (GIS) holdings. It is an open collaborative project aiming to build off of the successes of the Blacklight Solr-powered discovery interface and the multi-institutional OpenGeoportal federated metadata sharing communities.'
spec.homepage = 'http://github.com/geoblacklight/geoblacklight'
spec.license = 'Apache 2.0'
spec.files = `git ls-files -z`.split(%Q{\x0})
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ['lib']
spec.add_dependency 'blacklight', '~> 5.8.2'
spec.add_dependency 'leaflet-rails', '~> 0.7.3'
spec.add_dependency 'blacklight_range_limit', '~> 5.0.3'
spec.add_dependency 'font-awesome-rails', '~> 4.1.0.0'
spec.add_dependency 'rails_config'
spec.add_dependency 'faraday'
spec.add_development_dependency 'bundler', '~> 1.5'
spec.add_development_dependency 'rake', '~> 10.3.2'
spec.add_development_dependency 'rspec-rails', '~> 3.0.1'
spec.add_development_dependency 'jettywrapper', '~> 1.8.3'
spec.add_development_dependency 'engine_cart', '~> 0.4.0'
spec.add_development_dependency 'capybara', '~> 2.3.0'
spec.add_development_dependency 'poltergeist', '~> 1.5.0'
spec.add_development_dependency 'factory_girl_rails'
spec.add_development_dependency 'database_cleaner'
end
\**Gemfile**\
# Specify your gem's dependencies in geoblacklight.gemspec
gemspec
# If we don't specify 2.11.0 we'll end up with sprockets 2.12.0 in the main
# Gemfile.lock but since sass-rails gets generated (rails new) into the test app
# it'll want sprockets 2.11.0 and we'll have a conflict
gem 'sprockets', '2.11.0'
# If we don't specify 3.2.15 we'll end up with sass 3.3.2 in the main
# Gemfile.lock but since sass-rails gets generated (rails new) into the test app
# it'll want sass 3.2.0 and we'll have a conflict
gem 'sass', '~> 3.2.0'
gem 'bootstrap-sass', ">= 3.2"
group :test do
# Peg simplecov to < 0.8 until this is resolved:
# https://github.com/colszowka/simplecov/issues/281
gem 'simplecov', '~> 0.7.1', require: false
gem 'coveralls', require: false
end
# load local rails test instance Gemfile
file = File.expand_path("Gemfile", ENV['ENGINE_CART_DESTINATION'] || ENV['RAILS_ROOT'] || File.expand_path("../spec/internal", __FILE__))
if File.exists?(file)
puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
instance_eval File.read(file)
end
\**Gemfile.lock**\
remote: .
specs:
geoblacklight (0.6.2)
blacklight (~> 5.8.2)
blacklight_range_limit (~> 5.0.3)
faraday
font-awesome-rails (~> 4.1.0.0)
leaflet-rails (~> 0.7.3)
rails_config
GEM
remote: https://rubygems.org/
remote: https://rails-assets.org/
specs:
actionmailer (4.2.1)
actionpack (= 4.2.1)
actionview (= 4.2.1)
activejob (= 4.2.1)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 1.0, >= 1.0.5)
actionpack (4.2.1)
actionview (= 4.2.1)
activesupport (= 4.2.1)
rack (~> 1.6)
rack-test (~> 0.6.2)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.1)
actionview (4.2.1)
activesupport (= 4.2.1)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.1)
activejob (4.2.1)
activesupport (= 4.2.1)
globalid (>= 0.3.0)
activemodel (4.2.1)
activesupport (= 4.2.1)
builder (~> 3.1)
activerecord (4.2.1)
activemodel (= 4.2.1)
activesupport (= 4.2.1)
arel (~> 6.0)
activesupport (4.2.1)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
arel (6.0.0)
autoprefixer-rails (5.1.11)
execjs
json
bcrypt (3.1.10)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
blacklight (5.8.2)
bootstrap-sass (~> 3.2)
deprecation
kaminari (~> 0.13)
nokogiri (~> 1.6)
rails (>= 3.2.6, < 5)
rsolr (~> 1.0.6)
blacklight_range_limit (5.0.4)
blacklight (>= 5.0.0.pre4, < 6)
jquery-rails
rails (>= 3.0, < 5.0)
bootstrap-sass (3.3.4.1)
autoprefixer-rails (>= 5.0.0.1)
sass (>= 3.2.19)
builder (3.2.2)
byebug (4.0.5)
columnize (= 0.9.0)
capybara (2.3.0)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
xpath (~> 2.0)
childprocess (0.5.6)
ffi (~> 1.0, >= 1.0.11)
cliver (0.3.2)
coffee-rails (4.1.0)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.9.1.1)
columnize (0.9.0)
coveralls (0.7.2)
multi_json (~> 1.3)
rest-client (= 1.6.7)
simplecov (>= 0.7)
term-ansicolor (= 1.2.2)
thor (= 0.18.1)
database_cleaner (1.4.1)
debug_inspector (0.0.2)
deprecation (0.2.2)
activesupport
devise (3.4.1)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 3.2.6, < 5)
responders
thread_safe (~> 0.1)
warden (~> 1.2.3)
devise-guests (0.3.3)
devise
diff-lcs (1.2.5)
engine_cart (0.4.1)
rails
erubis (2.7.0)
execjs (2.5.2)
factory_girl (4.5.0)
activesupport (>= 3.0.0)
factory_girl_rails (4.5.0)
factory_girl (~> 4.5.0)
railties (>= 3.0.0)
faraday (0.9.1)
multipart-post (>= 1.2, < 3)
ffi (1.9.8)
font-awesome-rails (4.1.0.0)
railties (>= 3.2, < 5.0)
globalid (0.3.5)
activesupport (>= 4.1.0)
hike (1.2.3)
i18n (0.7.0)
jbuilder (2.2.13)
activesupport (>= 3.0.0, < 5)
multi_json (~> 1.2)
jettywrapper (1.8.3)
activesupport (>= 3.0.0)
childprocess
i18n
logger
jquery-rails (4.0.3)
rails-dom-testing (~> 1.0)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json (1.8.2)
kaminari (0.16.3)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
leaflet-rails (0.7.4)
logger (1.2.8)
loofah (2.0.2)
nokogiri (>= 1.5.9)
mail (2.6.3)
mime-types (>= 1.16, < 3)
mime-types (2.5)
mini_portile (0.6.2)
minitest (5.6.1)
multi_json (1.11.0)
multipart-post (2.0.0)
nokogiri (1.6.6.2)
mini_portile (~> 0.6.0)
orm_adapter (0.5.0)
poltergeist (1.5.1)
capybara (~> 2.1)
cliver (~> 0.3.1)
multi_json (~> 1.0)
websocket-driver (>= 0.2.0)
rack (1.6.1)
rack-test (0.6.3)
rack (>= 1.0)
rails (4.2.1)
actionmailer (= 4.2.1)
actionpack (= 4.2.1)
actionview (= 4.2.1)
activejob (= 4.2.1)
activemodel (= 4.2.1)
activerecord (= 4.2.1)
activesupport (= 4.2.1)
bundler (>= 1.3.0, < 2.0)
railties (= 4.2.1)
sprockets-rails
rails-assets-leaflet-iiif (0.0.5)
rails-assets-readmore (2.0.5)
rails-deprecated_sanitizer (1.0.3)
activesupport (>= 4.2.0.alpha)
rails-dom-testing (1.0.6)
activesupport (>= 4.2.0.beta, < 5.0)
nokogiri (~> 1.6.0)
rails-deprecated_sanitizer (>= 1.0.1)
rails-html-sanitizer (1.0.2)
loofah (~> 2.0)
rails_config (0.4.2)
activesupport (>= 3.0)
railties (4.2.1)
actionpack (= 4.2.1)
activesupport (= 4.2.1)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.3.2)
rdoc (4.2.0)
responders (2.1.0)
railties (>= 4.2.0, < 5)
rest-client (1.6.7)
mime-types (>= 1.16)
rsolr (1.0.12)
builder (>= 2.1.2)
rspec-core (3.0.4)
rspec-support (~> 3.0.0)
rspec-expectations (3.0.4)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.0.0)
rspec-mocks (3.0.4)
rspec-support (~> 3.0.0)
rspec-rails (3.0.2)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec-core (~> 3.0.0)
rspec-expectations (~> 3.0.0)
rspec-mocks (~> 3.0.0)
rspec-support (~> 3.0.0)
rspec-support (3.0.4)
sass (3.2.19)
sass-rails (5.0.3)
railties (>= 4.0.0, < 5.0)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (~> 1.1)
sdoc (0.4.1)
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
simplecov (0.7.1)
multi_json (~> 1.0)
simplecov-html (~> 0.7.1)
simplecov-html (0.7.1)
sprockets (2.11.0)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sprockets-rails (2.3.0)
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (>= 2.8, < 4.0)
sqlite3 (1.3.10)
term-ansicolor (1.2.2)
tins (~> 0.8)
thor (0.18.1)
thread_safe (0.3.5)
tilt (1.4.1)
tins (0.13.2)
turbolinks (2.5.3)
coffee-rails
tzinfo (1.2.2)
thread_safe (~> 0.1)
uglifier (2.7.1)
execjs (>= 0.3.0)
json (>= 1.8.0)
warden (1.2.3)
rack (>= 1.0)
web-console (2.1.2)
activemodel (>= 4.0)
binding_of_caller (>= 0.7.2)
railties (>= 4.0)
sprockets-rails (>= 2.0, < 4.0)
websocket-driver (0.5.4)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.2)
xpath (2.0.0)
nokogiri (~> 1.3)
PLATFORMS
ruby
DEPENDENCIES
blacklight (~> 5.8.2)
bootstrap-sass (>= 3.2)
bundler (~> 1.5)
byebug
capybara (~> 2.3.0)
coffee-rails (~> 4.1.0)
coveralls
database_cleaner
devise
devise-guests (~> 0.3)
engine_cart (~> 0.4.0)
factory_girl_rails
geoblacklight!
jbuilder (~> 2.0)
jettywrapper (~> 1.8.3)
jquery-rails
poltergeist (~> 1.5.0)
rails (= 4.2.1)
rails-assets-leaflet-iiif (~> 0.0.3)!
rails-assets-readmore!
rake (~> 10.3.2)
rspec-rails (~> 3.0.1)
sass (~> 3.2.0)
sass-rails (~> 5.0)
sdoc (~> 0.4.0)
simplecov (~> 0.7.1)
sprockets (= 2.11.0)
sqlite3
turbolinks
uglifier (>= 1.3.0)
web-console (~> 2.0)
Hi,
it looks like you have rails 4 but do not have bin/rails in the project, but RubyMine expect to use it.
This is a bug so please file one in our tracker (https://youtrack.jetbrains.com/issues/RUBY) do not forget to provide a link to the project.
The only option I can suggest is add rake task which will run the server.
Regards, Oleg.