Permission Issue Rails 7.0.3.1 - postgresql

I am getting this error while Building New Rails App with PostgreSQL please help:
Fetching gem metadata from https://rubygems.org/...........
Resolving dependencies...
Using rake 13.0.6
Using concurrent-ruby 1.1.10
Using websocket-extensions 0.1.5
Using marcel 1.0.2
Using mini_mime 1.1.2
Using digest 3.1.0
Using timeout 0.3.0
Using minitest 5.16.2
Using public_suffix 4.0.7
Using crass 1.0.6
Using rack 2.2.4
Using bundler 2.3.17
Using erubi 1.11.0
Using racc 1.6.0
Using strscan 3.0.4
Using bindex 0.8.1
Using io-console 0.5.11
Using nio4r 2.5.8
Using builder 3.2.4
Using matrix 0.4.2
Using regexp_parser 2.5.0
Using childprocess 4.1.0
Using method_source 1.0.0
Using msgpack 1.5.4
Using thor 1.2.1
Using zeitwerk 2.6.0
Using redis 4.7.1
Using rexml 3.2.5
Using net-protocol 0.1.3
Using addressable 2.8.0
Using i18n 1.12.0
Using tzinfo 2.0.5
Using websocket-driver 0.7.5
Using mail 2.7.1
Using rubyzip 2.3.2
Using websocket 1.2.9
Using rack-test 2.0.2
Using sprockets 4.1.1
Using nokogiri 1.13.8 (x86_64-linux)
Using net-smtp 0.3.1
Using reline 0.3.1
Using bootsnap 1.13.0
Using net-imap 0.2.3
Using xpath 3.2.0
Using irb 1.4.1
Using puma 5.6.4
Using debug 1.6.1
Using loofah 2.18.0
Using net-pop 0.1.1
Using activesupport 7.0.3.1
Using capybara 3.37.1
Using globalid 1.0.0
Using rails-html-sanitizer 1.4.3
Using selenium-webdriver 4.3.0
Using rails-dom-testing 2.0.3
Using webdrivers 5.0.0
Using actionview 7.0.3.1
Using activemodel 7.0.3.1
Using activejob 7.0.3.1
Using activerecord 7.0.3.1
Using jbuilder 2.11.5
Using actionpack 7.0.3.1
Using activestorage 7.0.3.1
Using actionmailer 7.0.3.1
Using actionmailbox 7.0.3.1
Using actiontext 7.0.3.1
Using sprockets-rails 3.4.2
Using actioncable 7.0.3.1
Using railties 7.0.3.1
Using rails 7.0.3.1
Using turbo-rails 1.1.1
Using importmap-rails 1.1.5
Using web-console 4.2.0
Using stimulus-rails 1.1.0
Installing pg 1.4.2 with native extensions
Bundler::DirectoryRemovalError: Could not delete previous installation of
`/var/lib/gems/2.7.0/gems/pg-1.4.2`.
The underlying error was Errno::EACCES: Permission denied # dir_s_rmdir -
/var/lib/gems/2.7.0/gems/pg-1.4.2/sample, with backtrace:
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/vendor/fileutils/lib/fileutils.rb:1459:in
`rmdir'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/vendor/fileutils/lib/fileutils.rb:1459:in
`block in remove_dir1'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/vendor/fileutils/lib/fileutils.rb:1470:in
`platform_support'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/vendor/fileutils/lib/fileutils.rb:1458:in
`remove_dir1'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/vendor/fileutils/lib/fileutils.rb:1451:in
`remove'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/vendor/fileutils/lib/fileutils.rb:780:in
`block in remove_entry'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/vendor/fileutils/lib/fileutils.rb:1503:in
`block (2 levels) in postorder_traverse'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/vendor/fileutils/lib/fileutils.rb:1508:in
`ensure in postorder_traverse'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/vendor/fileutils/lib/fileutils.rb:1508:in
`postorder_traverse'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/vendor/fileutils/lib/fileutils.rb:1502:in
`block in postorder_traverse'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/vendor/fileutils/lib/fileutils.rb:1501:in
`each'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/vendor/fileutils/lib/fileutils.rb:1501:in
`postorder_traverse'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/vendor/fileutils/lib/fileutils.rb:778:in
`remove_entry'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/vendor/fileutils/lib/fileutils.rb:698:in
`remove_entry_secure'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler.rb:331:in `rm_rf'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/rubygems_gem_installer.rb:104:in
`strict_rm_rf'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/rubygems_gem_installer.rb:19:in
`install'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/source/rubygems.rb:209:in
`install'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/installer/gem_installer.rb:54:in
`install'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/installer/gem_installer.rb:16:in
`install_from_spec'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/installer/parallel_installer.rb:186:in
`do_install'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/installer/parallel_installer.rb:177:in
`block in worker_pool'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/worker.rb:62:in
`apply_func'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/worker.rb:57:in `block in
process_queue'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/worker.rb:54:in `loop'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/worker.rb:54:in
`process_queue'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/worker.rb:91:in `block (2
levels) in create_threads'
Bundler Error Backtrace:
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/rubygems_gem_installer.rb:106:in
`rescue in strict_rm_rf'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/rubygems_gem_installer.rb:103:in
`strict_rm_rf'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/rubygems_gem_installer.rb:19:in
`install'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/source/rubygems.rb:209:in
`install'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/installer/gem_installer.rb:54:in
`install'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/installer/gem_installer.rb:16:in
`install_from_spec'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/installer/parallel_installer.rb:186:in
`do_install'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/installer/parallel_installer.rb:177:in
`block in worker_pool'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/worker.rb:62:in
`apply_func'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/worker.rb:57:in `block in
process_queue'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/worker.rb:54:in `loop'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/worker.rb:54:in
`process_queue'
/var/lib/gems/2.7.0/gems/bundler-2.3.17/lib/bundler/worker.rb:91:in `block (2
levels) in create_threads'
An error occurred while installing pg (1.4.2), and Bundler cannot
continue.
In Gemfile:
pg

Related

What should I do to use local development?

When I clone the project from https://github.com/daattali/beautiful-jekyll.git on my computer, I use jekyll serve to start the project, but it will some error, what should I do if I want to Local development using jekyll?
the error is:
WARN: Unresolved specs during Gem::Specification.reset:
jekyll-watch (~> 1.1)
rouge (< 3, >= 1.7)
rb-fsevent (>= 0.9.4, ~> 0.9)
rb-inotify (>= 0.9.7, ~> 0.9)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/runtime.rb:313:in `check_for_activated_spec!': You have already activated public_suffix 3.0.1, but your Gemfile requires public_suffix 2.0.5. Prepending `bundle exec` to your command may solve this. (Gem::LoadError)
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/runtime.rb:31:in `block in setup'
from C:/Ruby24-x64/lib/ruby/2.4.0/forwardable.rb:229:in `each'
from C:/Ruby24-x64/lib/ruby/2.4.0/forwardable.rb:229:in `each'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/runtime.rb:26:in `map'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-`enter code here`1.16.0/lib/bundler/runtime.rb:26:in `setup'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler.rb:107:in `setup'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/jekyll-3.6.2/lib/jekyll/plugin_manager.rb:50:in `require_from_bundler'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/jekyll-3.6.2/exe/jekyll:11:in `<top (required)>'
from C:/Ruby24-x64/bin/jekyll:23:in `load'
from C:/Ruby24-x64/bin/jekyll:23:in `<main>'
I have solved my question.
First: you should add the code to your Gemfile file.
the code is
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]
Then: you use bundle exec jekyll serve to start. After that you can use local development.

Can't deploy a Middleman project on Github... I don't see the repo

Several days I try to deploy Middleman on Github.
When I want to create a repo to have a personnal URL [website].github.io
I write in the console : middleman deploy
I have this message...
➜ newone git:(master) ✗ middleman deploy
WARN: Unresolved specs during Gem::Specification.reset:
thor (< 2.0, >= 0.17.0)
rack (< 3, >= 1.4.5)
tilt (~> 2.0)
activesupport (< 5.1, >= 4.2)
padrino-helpers (~> 0.13.0)
addressable (~> 2, ~> 2.3)
listen (~> 3.0.0)
sass (>= 3.4)
uglifier (~> 3.0)
execjs (~> 2.0)
hashie (~> 3.4)
concurrent-ruby (~> 1.0)
backports (~> 3.6)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
/Users/baptiste/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:40:in `block in setup': You have already activated middleman-core 4.2.0, but your Gemfile requires middleman-core 3.3.12. Prepending `bundle exec` to your command may solve this. (Gem::LoadError)
from /Users/baptiste/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:25:in `map'
from /Users/baptiste/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:25:in `setup'
from /Users/baptiste/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/bundler-1.13.6/lib/bundler.rb:99:in `setup'
from /Users/baptiste/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/bundler-1.13.6/lib/bundler/setup.rb:10:in `<top (required)>'
from /Users/baptiste/.rbenv/versions/2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:119:in `require'
from /Users/baptiste/.rbenv/versions/2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:119:in `require'
from /Users/baptiste/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/middleman-core-4.2.0/lib/middleman-core/load_paths.rb:34:in `setup_bundler'
from /Users/baptiste/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/middleman-core-4.2.0/lib/middleman-core/load_paths.rb:15:in `setup_load_paths'
from /Users/baptiste/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/middleman-cli-4.2.0/bin/middleman:10:in `<top (required)>'
from /Users/baptiste/.rbenv/versions/2.2.3/bin/middleman:23:in `load'
from /Users/baptiste/.rbenv/versions/2.2.3/bin/middleman:23:in `<main>'
I really don't know what to do with this error message. Thank you for your help mates.

watir-webdriver error using chrome browser

I am using watir-webdriver and getting this error message when opening a chrome browser:
C:\chromeDriver>irb
DL is deprecated, please use Fiddle
irb(main):001:0> require "watir-webdriver"
=> true
irb(main):002:0> a = Watir::Browser.new (:chrome)
Started ChromeDriver
port=9515
version=0.8
log=C:\chromeDriver\chromedriver.log
Selenium::WebDriver::Error::UnknownError: unknown error: unrecognized chrome option:
detach
(Driver info: chromedriver=0.8,platform=Windows NT 6.2 x86_64)
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/remote/response.rb:51:in `assert_ok'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/remote/response.rb:15:in `initialize'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/remote/http/common.rb:59:in `new'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/remote/http/common.rb:59:in `create_response'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/remote/http/default.rb:66:in `request'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/remote/http/common.rb:40:in `call'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/remote/bridge.rb:629:in `raw_execute'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/remote/bridge.rb:98:in `create_session'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/remote/bridge.rb:68:in `initialize'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/chrome/bridge.rb:29:in `initialize'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/common/driver.rb:37:in `new'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/common/driver.rb:37:in `for'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver.rb:67:in `for'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/watir-webdriver-0.6.4/lib/watir-webd river/browser.rb:46:in `initialize'
from (irb):2:in `new'
from (irb):2
Environment:
Windows 8
Ruby version = ruby 2.0.0p247 (2013-06-27) [i386-mingw32]
Based on the exception, you are using selenium-webdriver version 2.33.0. My guess is there is an incompatibility between this version and your chromedriver.
Assuming you are using the latest chromedriver, you likely need to update to the latest selenium-webdriver, which is version 2.35.1.
Try a:
gem install selenium-webdriver
Download the new chrome driver
http://chromedriver.storage.googleapis.com/index.html?path=2.4/
I was having the same issue and updated the chrome driver, and the issue was resolved. I also updated my gems.

RubyMine error of No Rails Found in the SDK

I updated to Ruby 2.0 and Rails 4.0 and RubyMine stopped working.
If I do my Rails commands through command line tool, they work just fine but if I want to run my project through RubyMine (the latest version) I get error 134 and No Rails Founds in the SDK error.
So I am sure it is not a big deal and it is just some minor setting that needs to be updated in the IDE but can't figure it out yet. And not sure what kind of details do I need to provide so here is Tools -> Show Gem Environment info from the IDE:
RUBYGEMS VERSION: 2.0.3
RUBY VERSION: 2.0.0 (2013-07-05 patchlevel 251) [x86_64-darwin12.4.0]
INSTALLATION DIRECTORY: /Users/Jony/.rvm/gems/ruby-2.0.0-head
RUBY EXECUTABLE: /Users/Jony/.rvm/rubies/ruby-2.0.0-head/bin/ruby
EXECUTABLE DIRECTORY: /Users/Jony/.rvm/gems/ruby-2.0.0-head/bin
RUBYGEMS PLATFORMS:
ruby
x86_64-darwin-12
GEM PATHS:
/Users/Jony/.rvm/gems/ruby-2.0.0-head
/Users/Jony/.rvm/gems/ruby-2.0.0-head#global
GEM CONFIGURATION:
:update_sources => true
:verbose => true
:backtrace => false
:bulk_threshold => 1000
REMOTE SOURCES:
https://rubygems.org/
----------------------
IDE: JetBrains RubyMine 5.4.3.2.1, build #RM-129.861
OS: Mac OS X 10.8.4[x86_64]
Java: 1.6.0_51-b11-456-11M4508
RubyMine SDK Environment:
Sdk: RVM: ruby-2.0.0-head
Sdk Version: ver.2.0.0p251 p251
Ruby Interpreter: /Users/Jony/.rvm/rubies/ruby-2.0.0-head/bin/ruby
RVM Sdk: yes, gemset:[default]
RVM Home: /Users/Jony/.rvm
Sdk Language Level: 1.9
Sdk Load Path:
~/.rvm/rubies/ruby-2.0.0-head/lib/ruby/site_ruby/2.0.0
~/.rvm/rubies/ruby-2.0.0-head/lib/ruby/site_ruby/2.0.0/x86_64-darwin12.4.0
~/.rvm/rubies/ruby-2.0.0-head/lib/ruby/site_ruby
~/.rvm/rubies/ruby-2.0.0-head/lib/ruby/vendor_ruby/2.0.0
~/.rvm/rubies/ruby-2.0.0-head/lib/ruby/vendor_ruby/2.0.0/x86_64-darwin12.4.0
~/.rvm/rubies/ruby-2.0.0-head/lib/ruby/vendor_ruby
~/.rvm/rubies/ruby-2.0.0-head/lib/ruby/2.0.0
~/.rvm/rubies/ruby-2.0.0-head/lib/ruby/2.0.0/x86_64-darwin12.4.0
/Applications/RubyMine.app/rubystubs20
Sdk Gem paths:
~/.rvm/gems/ruby-2.0.0-head/bundler/gems
~/.rvm/gems/ruby-2.0.0-head/gems
~/.rvm/gems/ruby-2.0.0-head#global/gems
Gems used for 'untitled4':
sprockets-rails (2.0.0)
~/.rvm/gems/ruby-2.0.0-head/gems/sprockets-rails-2.0.0
activerecord (4.0.0)
~/.rvm/gems/ruby-2.0.0-head/gems/activerecord-4.0.0
rack-test (0.6.2)
~/.rvm/gems/ruby-2.0.0-head/gems/rack-test-0.6.2
activesupport (4.0.0)
~/.rvm/gems/ruby-2.0.0-head/gems/activesupport-4.0.0
coffee-script-source (1.6.3)
~/.rvm/gems/ruby-2.0.0-head/gems/coffee-script-source-1.6.3
turbolinks (1.2.0)
~/.rvm/gems/ruby-2.0.0-head/gems/turbolinks-1.2.0
bundler (1.3.5)
~/.rvm/gems/ruby-2.0.0-head#global/gems/bundler-1.3.5
activemodel (4.0.0)
~/.rvm/gems/ruby-2.0.0-head/gems/activemodel-4.0.0
mail (2.5.4)
~/.rvm/gems/ruby-2.0.0-head/gems/mail-2.5.4
rack (1.5.2)
~/.rvm/gems/ruby-2.0.0-head/gems/rack-1.5.2
json (1.8.0)
~/.rvm/gems/ruby-2.0.0-head/gems/json-1.8.0
minitest (4.7.5)
~/.rvm/gems/ruby-2.0.0-head/gems/minitest-4.7.5
tzinfo (0.3.37)
~/.rvm/gems/ruby-2.0.0-head/gems/tzinfo-0.3.37
sass-rails (4.0.0)
~/.rvm/gems/ruby-2.0.0-head/gems/sass-rails-4.0.0
actionmailer (4.0.0)
~/.rvm/gems/ruby-2.0.0-head/gems/actionmailer-4.0.0
hike (1.2.3)
~/.rvm/gems/ruby-2.0.0-head/gems/hike-1.2.3
coffee-script (2.2.0)
~/.rvm/gems/ruby-2.0.0-head/gems/coffee-script-2.2.0
activerecord-deprecated_finders (1.0.3)
~/.rvm/gems/ruby-2.0.0-head/gems/activerecord-deprecated_finders-1.0.3
thread_safe (0.1.0)
~/.rvm/gems/ruby-2.0.0-head/gems/thread_safe-0.1.0
sqlite3 (1.3.7)
~/.rvm/gems/ruby-2.0.0-head/gems/sqlite3-1.3.7
sdoc (0.3.20)
~/.rvm/gems/ruby-2.0.0-head/gems/sdoc-0.3.20
actionpack (4.0.0)
~/.rvm/gems/ruby-2.0.0-head/gems/actionpack-4.0.0
tilt (1.4.1)
~/.rvm/gems/ruby-2.0.0-head/gems/tilt-1.4.1
jquery-rails (3.0.2)
~/.rvm/gems/ruby-2.0.0-head/gems/jquery-rails-3.0.2
mime-types (1.23)
~/.rvm/gems/ruby-2.0.0-head/gems/mime-types-1.23
railties (4.0.0)
~/.rvm/gems/ruby-2.0.0-head/gems/railties-4.0.0
sprockets (2.10.0)
~/.rvm/gems/ruby-2.0.0-head/gems/sprockets-2.10.0
arel (4.0.0)
~/.rvm/gems/ruby-2.0.0-head/gems/arel-4.0.0
polyglot (0.3.3)
~/.rvm/gems/ruby-2.0.0-head/gems/polyglot-0.3.3
thor (0.18.1)
~/.rvm/gems/ruby-2.0.0-head/gems/thor-0.18.1
rdoc (3.12.2)
~/.rvm/gems/ruby-2.0.0-head/gems/rdoc-3.12.2
rake (10.1.0)
~/.rvm/gems/ruby-2.0.0-head#global/gems/rake-10.1.0
coffee-rails (4.0.0)
~/.rvm/gems/ruby-2.0.0-head/gems/coffee-rails-4.0.0
i18n (0.6.4)
~/.rvm/gems/ruby-2.0.0-head/gems/i18n-0.6.4
multi_json (1.7.7)
~/.rvm/gems/ruby-2.0.0-head/gems/multi_json-1.7.7
sass (3.2.9)
~/.rvm/gems/ruby-2.0.0-head/gems/sass-3.2.9
rails (4.0.0)
~/.rvm/gems/ruby-2.0.0-head/gems/rails-4.0.0
execjs (1.4.0)
~/.rvm/gems/ruby-2.0.0-head/gems/execjs-1.4.0
treetop (1.4.14)
~/.rvm/gems/ruby-2.0.0-head/gems/treetop-1.4.14
atomic (1.1.10)
~/.rvm/gems/ruby-2.0.0-head/gems/atomic-1.1.10
erubis (2.7.0)
~/.rvm/gems/ruby-2.0.0-head/gems/erubis-2.7.0
uglifier (2.1.1)
~/.rvm/gems/ruby-2.0.0-head/gems/uglifier-2.1.1
jbuilder (1.4.2)
~/.rvm/gems/ruby-2.0.0-head/gems/jbuilder-1.4.2
builder (3.1.4)
~/.rvm/gems/ruby-2.0.0-head/gems/builder-3.1.4
And also a screen shot of my SDK settings just in case:
I solved this issue of No Rails SDK found by following.
Step 1.
Figure out Ruby version and bundle version of your project.
Step 2.
Add correct Ruby SDK and GEMs from preferences in Rubymine.
Preferences > Languages & Framework > Ruby SDK and Gems > [Select your RVM version] > [Select correct gem version of bundle] > Apply
I solved this problem by deleting the project from RubyMine's history (close project and then hit the x for the project on the left side) and deleting the .idea directory of my project. After I opened the project in RubyMine again, it worked.
I solved this by installed another Ruby version ,and it installed in Global file
/user/share/rvm/rubies/ruby-2.5.1
The first time I installed the latest Ruby version in my local rvm file, all gem files didn't add in Rubymine which only contains some base ruby files.
~/.rvm/rubies/ruby-2.6.3
I don't know why is that,but I don't think I need to know the reason, at least now.
If the answer by #atul_vaibhai doesn't work.
Close any open terminals and your project and open your project
Uninstall any new versions of ruby than the one that your application requires.
rvm remove <other versions>
If this solves your problem, then you need to figure out how to parallely keep another version without affecting any other application. You must be doing something wrong in configuring the application.
Had the same error message without updating anything.
Invalidating the Cache / Restart worked for me.

chromedriver crashing on Windows 7

Problem: When I run my tests, I get the following message in the command prompt
Started ChromeDriver
port=9515
version=21.0.1180.4
log=C:\Users\jhomer\Desktop\Workspace\WebAutomationTesting\Tests\chromedriver.log
Chrome then starts, after which I get a windows error message stating the chromedriver has stopped working.
Additional Information:
I just recently switched from a mac (osx) to windows 7. I'm using the same IDE (Aptana 3) and I have installed the same gems:
addressable (2.2.8)
bigdecimal (1.1.0)
builder (3.0.0)
childprocess (0.3.2)
commonwatir (3.0.0)
ffi (1.0.11)
hoe (3.0.6)
io-console (0.3)
json (1.7.3, 1.5.4)
json_pure (1.7.3)
libwebsocket (0.1.3)
minitest (3.2.0, 3.1.0, 2.5.1
multi_json (1.3.6)
nokogiri (1.5.5 x86-mingw32)
rake (0.9.2.2)
rautomation (0.7.2)
rdoc (3.12, 3.9.4)
rubygems-update (1.8.24)
rubyzip (0.9.9)
s4t-utils (1.0.4)
selenium-webdriver (2.24.0)
user-choices (1.1.6.1)
watir (3.0.0)
watir-classic (3.0.0)
watir-webdriver (0.6.1)
win32-api (1.4.8 x86-mingw32)
win32-process (0.6.5)
windows-api (0.4.1)
windows-pr (1.2.1)
xml-simple (1.1.1)
I have run gem update, gem pristine --all, none of which have helped.
** update **
The error I was getting on the prompt after the tests "completed" is as follows:
So before I used the version you suggested I was getting this error:
Error:
test_UserRoles(UserRolesTest):
Errno::ECONNREFUSED: No connection could be made because the target machine actively refused it. - connect(2)
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.24.0/lib/selenium/w ebdriver/remote/http/default.rb:76:in `response_for'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.24.0/lib/selenium/w ebdriver/remote/http/default.rb:38:in 'request'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.24.0/lib/selenium/w ebdriver/remote/http/common.rb:40:in `call'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.24.0/lib/selenium/w ebdriver/remote/bridge.rb:598:in 'raw_execute'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.24.0/lib/selenium/w ebdriver/remote/bridge.rb:576:in `execute'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.24.0/lib/selenium/w ebdriver/remote/bridge.rb:189:in 'quit'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.24.0/lib/selenium/w ebdriver/chrome/bridge.rb:48:in 'quit'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.24.0/lib/selenium/w ebdriver/common/driver.rb:166:in `quit'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.6.1/lib/watir-webdrive r/browser.rb:87:in 'close'
UserRolesTest.rb:48:in 'teardown'
Let me know if there is any additional information you may require.
Thanks.
I had the same problem and had to downgrade the chromedriver to version 20 (May 23). It works fine for me now on Windows 7 x64. Here's the download link.
It seems that the windows version of chromedriver crashes when the .close method is called on the browser. That was the problem. Is there another method for closing the browser upon finishing the tests?