I have just installed the latest RubyMine (2018.1.1) and I created a Rails 5.2 application using the wizard in RubyMine. I then generated a single scaffold so that I would have something to test with.
If I set a breakpoint inside a unit test, the breakpoint works. However, if I run the web server (I tried both - the default Puma and WEBrick), no breakpoints work. I can see the print statements from my controller, but the breakpoint is never triggered.
What am I doing wrong?
Here's the list of my gems:
actioncable (5.2.0)
actionmailer (5.2.0)
actionpack (5.2.0)
actionview (5.2.0)
activejob (5.2.0)
activemodel (5.2.0)
activerecord (5.2.0)
activestorage (5.2.0)
activesupport (5.2.0)
addressable (2.5.2)
archive-zip (0.11.0)
arel (9.0.0)
bigdecimal (default: 1.3.4)
bindex (0.5.0)
bootsnap (1.3.0)
builder (3.2.3)
bundler (1.16.1)
byebug (10.0.2)
capybara (3.0.3)
childprocess (0.9.0)
chromedriver-helper (1.2.0)
cmath (default: 1.0.0)
coffee-rails (4.2.2)
coffee-script (2.4.1)
coffee-script-source (1.12.2)
concurrent-ruby (1.0.5)
crass (1.0.4)
csv (default: 1.0.0)
date (default: 1.0.0)
debase (0.2.2)
debase-ruby_core_source (0.10.3)
erubi (1.7.1)
etc (default: 1.0.0)
execjs (2.7.0)
fcntl (default: 1.0.0)
ffi (1.9.23)
fiddle (default: 1.0.0)
fileutils (default: 1.0.2)
globalid (0.4.1)
i18n (1.0.1)
io-console (default: 0.4.6)
io-like (0.3.0)
ipaddr (default: 1.2.0)
jbuilder (2.7.0)
json (default: 2.1.0)
listen (3.1.5)
loofah (2.2.2)
mail (2.7.0)
marcel (0.3.2)
method_source (0.9.0)
mimemagic (0.3.2)
mini_mime (1.0.0)
mini_portile2 (2.3.0)
minitest (5.11.3)
msgpack (1.2.4)
multi_json (1.13.1)
nio4r (2.3.0)
nokogiri (1.8.2)
openssl (default: 2.1.0)
psych (default: 3.0.2)
public_suffix (3.0.2)
puma (3.11.4)
rack (2.0.5)
rack-test (1.0.0)
rails (5.2.0)
rails-dom-testing (2.0.3)
rails-html-sanitizer (1.0.4)
railties (5.2.0)
rake (12.3.1)
rb-fsevent (0.10.3)
rb-inotify (0.9.10)
rdoc (default: 6.0.1)
ruby-debug-ide (0.7.0.beta4)
ruby_dep (1.5.0)
rubyzip (1.2.1)
sass (3.5.6)
sass-listen (4.0.0)
sass-rails (5.0.7)
scanf (default: 1.0.0)
sdbm (default: 1.0.0)
selenium-webdriver (3.11.0)
spring (2.0.2)
spring-watcher-listen (2.0.1)
sprockets (3.7.1)
sprockets-rails (3.2.1)
sqlite3 (1.3.13)
stringio (default: 0.0.1)
strscan (default: 1.0.0)
thor (0.20.0)
thread_safe (0.3.6)
tilt (2.0.8)
turbolinks (5.1.1)
turbolinks-source (5.1.0)
tzinfo (1.2.5)
uglifier (4.1.10)
web-console (3.6.2)
webrick (default: 1.4.2)
websocket-driver (0.7.0)
websocket-extensions (0.1.3)
xpath (3.0.0)
zlib (default: 1.0.0)
I am using ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]
This problem is documented here: https://youtrack.jetbrains.com/issue/RUBY-20684
There's also a workaround specified: comment bootsnap requiring in the Gemfile and in the boot.rb
Commenting out bootsnap worked for me - breakpoints now work.
So this time I did my research because of the downvoters...
My question is following.
I am using "Rubymine IDE" for development of Rails application on Win 10 PC, but I can't connect to rails server. I have tried connecting through console, and localhost:3000 and 127.0.0.3000 and 127.0.0.1.3000 but none of them do not work. I have tried creating the project file through console and then running server and it still doesn't work. I have XAMPP installed and that works perfectly fine. I have tried Firefox, Chrome and Edge for browsers. I am using commands such as ruby -s and rails -s and start rails server or ruby server, on the command rails -s I just get list of commands in the console and no results. I really need to get this thing working. I do not know if I need some extra commands to be typed or something else???
I can't add images to my posts yet, bu here is the list of gems I have on my PC
* LOCAL GEMS *
actioncable (5.1.4)
actionmailer (5.1.4)
actionpack (5.1.4)
actionview (5.1.4)
activejob (5.1.4)
activemodel (5.1.4)
activerecord (5.1.4)
activesupport (5.1.4, 4.2.5)
addressable (2.5.2)
arel (8.0.0)
bigdecimal (default: 1.3.0)
bindex (0.5.0)
builder (3.2.3)
bundler (1.16.0)
byebug (9.1.0)
capybara (2.15.4)
childprocess (0.8.0)
coffee-rails (4.2.2)
coffee-script (2.4.1)
coffee-script-source (1.12.2)
concurrent-ruby (1.0.5)
crass (1.0.2)
did_you_mean (1.1.0)
erubi (1.7.0)
erubis (2.7.0)
execjs (2.7.0)
ffi (1.9.18 x64-mingw32)
globalid (0.4.1)
i18n (0.9.1, 0.8.1)
io-console (default: 0.4.6)
jbuilder (2.7.0)
json (default: 2.0.4, 1.8.6)
loofah (2.1.1)
mail (2.7.0)
method_source (0.9.0)
mini_mime (0.1.4)
mini_portile2 (2.3.0, 2.1.0)
minitest (5.10.3, 5.10.1)
multi_json (1.12.2)
net-telnet (0.1.1)
nio4r (2.1.0)
nokogiri (1.8.1 x64-mingw32)
openssl (default: 2.0.5)
power_assert (0.4.1)
psych (default: 2.2.2)
public_suffix (3.0.0)
puma (3.10.0)
rack (2.0.3)
rack-test (0.7.0)
rails (5.1.4)
rails-dom-testing (2.0.3)
rails-html-sanitizer (1.0.3)
railties (5.1.4)
rake (12.2.1, 12.0.0)
rb-fsevent (0.10.2)
rb-inotify (0.9.10)
rdoc (default: 5.0.0)
rubyzip (1.2.1)
sass (3.5.3)
sass-listen (4.0.0)
sass-rails (5.0.6)
selenium-webdriver (3.7.0)
sprockets (3.7.1)
sprockets-rails (3.2.1)
sqlite3 (1.3.13 x64-mingw32)
test-unit (3.2.3)
thor (0.20.0)
thread_safe (0.3.6)
tilt (2.0.8)
turbolinks (5.0.1)
turbolinks-source (5.0.3)
tzinfo (1.2.4, 1.2.3)
tzinfo-data (1.2017.3)
uglifier (3.2.0)
web-console (3.5.1)
websocket-driver (0.6.5)
websocket-extensions (0.1.2)
xmlrpc (0.2.1)
xpath (2.1.0)
Do you have a specific versions of gems installed for Ruby and Rails to work? If not try to install using
gem install ruby #This will install latest version of ruby
and for reference, can you post an image or something which specifies what is happening when you type rails s
Update:
bundle install
This should install all the missing gems and your server should be up and running!
I'm trying to debug my rails application on rubymine 8.0.1 and but when I put a breakpoint it's interrupted with exit code -1.
I use a remote server with vagrant I set in rubymine debug config the host and the port that I use.
My workspace
ruby 2.2.1
rails 4.2
rubymine 8.0.1
vagrant
Gem file
actionmailer (4.2.5, 4.2.0)
actionpack (4.2.5, 4.2.0)
actionview (4.2.5, 4.2.0)
activejob (4.2.5, 4.2.0)
activemodel (4.2.5, 4.2.0)
activerecord (4.2.5, 4.2.0)
activesupport (4.2.5, 4.2.0)
arel (6.0.3)
aws-sdk (2.2.1)
aws-sdk-core (2.2.1)
aws-sdk-resources (2.2.1)
bcrypt (3.1.10)
bigdecimal (1.2.6)
builder (3.2.2)
bundler (1.8.4)
bundler-unload (1.0.2)
capistrano (3.4.0)
capistrano-bundler (1.1.4)
capistrano-rails (1.1.5)
coffee-rails (4.1.0)
coffee-script (2.4.1)
coffee-script-source (1.10.0)
colorize (0.7.7)
debase (0.2.1)
debase-ruby_core_source (0.8.1)
erubis (2.7.0)
execjs (2.6.0)
executable-hooks (1.3.2)
gem-wrappers (1.2.7)
globalid (0.3.6)
i18n (0.7.0)
io-console (0.4.3)
jbuilder (2.3.2)
jmespath (1.1.3)
json (1.8.3, 1.8.1)
libv8 (3.16.14.7 x86_64-linux)
loofah (2.0.3)
mail (2.6.3)
mime-types (2.99, 2.6.2)
mini_portile (0.6.2)
minitest (5.8.3, 5.4.3)
mock_redis (0.15.4)
multi_json (1.11.2)
net-scp (1.2.1)
net-ssh (3.0.1)
nokogiri (1.6.6.4)
power_assert (0.2.2)
psych (2.0.8)
rack (1.6.4)
rack-cors (0.4.0)
rack-test (0.6.3)
rails (4.2.5, 4.2.0)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.7)
rails-html-sanitizer (1.0.2)
railties (4.2.5, 4.2.0)
rake (10.4.2)
rdoc (4.2.0)
redis (2.1.1)
ref (2.0.0)
responders (2.1.0)
ruby-debug-ide (0.6.0)
rubygems-bundler (1.4.4)
rvm (1.11.3.9)
sdoc (0.4.1)
spring (1.4.4)
sprockets (3.4.1, 3.4.0)
sprockets-rails (2.3.3)
sqlite3 (1.3.11)
sshkit (1.7.1)
test-unit (3.0.8)
therubyracer (0.12.2)
thor (0.19.1)
thread_safe (0.3.5)
turbolinks (2.5.3)
tzinfo (1.2.2)
Error shows.
Fast Debugger (ruby-debug-ide 0.6.0, debase 0.2.1, file filtering is supported) listens on 127.0.0.1:45202
^C/home/vagrant/.rvm/gems/ruby-2.2.1/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:80:in `sleep': Interrupt
from /home/vagrant/.rvm/gems/ruby-2.2.1/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:80:in `wait'
from /home/vagrant/.rvm/gems/ruby-2.2.1/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:80:in `block in prepare_debugger'
from /home/vagrant/.rvm/gems/ruby-2.2.1/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:79:in `synchronize'
from /home/vagrant/.rvm/gems/ruby-2.2.1/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:79:in `prepare_debugger'
from /home/vagrant/.rvm/gems/ruby-2.2.1/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:85:in `debug_program'
from /home/vagrant/.rvm/gems/ruby-2.2.1/gems/ruby-debug-ide-0.6.0/bin/rdebug-ide:130:in `<top (required)>'
from -e:1:in `load'
from -e:1:in `<main>'
Process finished with exit code -1
I have read a bunch of other threads similar to this, and have tried many of the suggestions to no avail. My app is running fine locally, but when I pushed to heroku after adding Stripe, it broke. Upon running heroku run rails console heroku I see I have an uninitialized constant Stripe (NameError) which is odd, since I have stripe in my gemfile (which seems to be one of the suggested fixes), have run bundle install numerous times, and it is working locally, even more odd is when I list my gems, I do not see it(Stripe). How can that be when I go to my Stripe dashboard, I can see my test transactions? Yet when I push to heroku, it is uninitialized....where do I start?
here is my gem list:
$ gem list
*** LOCAL GEMS ***
actionmailer (4.2.3, 4.2.1, 4.2.0, 4.1.8)
actionpack (4.2.3, 4.2.1, 4.2.0, 4.1.8)
actionview (4.2.3, 4.2.1, 4.2.0, 4.1.8)
activejob (4.2.3, 4.2.1, 4.2.0)
activemodel (4.2.3, 4.2.1, 4.2.0, 4.1.8)
activerecord (4.2.3, 4.2.1, 4.2.0, 4.1.8)
activesupport (4.2.3, 4.2.1, 4.2.0, 4.1.8)
addressable (2.3.8)
arel (6.0.3, 6.0.2, 6.0.0, 5.0.1.20140414130214)
awesome_print (1.6.1)
backbars (0.0.11)
backports (3.6.4)
bcrypt (3.1.10)
bcrypt-ruby (3.1.5)
best_in_place (3.0.3)
better_errors (2.1.1)
bigdecimal (1.2.4)
binding_of_caller (0.7.2)
buftok (0.2.0)
builder (3.2.2)
bundler (1.10.6, 1.10.3)
byebug (6.0.0, 5.0.0, 3.5.1)
callsite (0.0.11)
coderay (1.1.0)
coffee-rails (4.1.0, 4.0.1)
coffee-script (2.4.1, 2.3.0)
coffee-script-source (1.9.1.1, 1.8.0)
columnize (0.9.0)
commonjs (0.2.7)
daemons (1.1.9)
debug_inspector (0.0.2)
debugger-linecache (1.2.0)
descendants_tracker (0.0.4)
domain_name (0.5.24)
dotenv (2.0.2)
dotenv-rails (2.0.2)
equalizer (0.0.11)
erubis (2.7.0)
eventmachine (1.0.4)
execjs (2.6.0, 2.5.2, 2.2.2)
faraday (0.9.1)
ffaker (2.1.0, 2.0.0)
font-awesome-less (4.0.2)
foundation-rails (5.5.0.0)
git-version-bump (0.15.1)
github_api (0.12.3)
globalid (0.3.6, 0.3.5, 0.3.0)
handlebars (0.7.0)
handlebars-source (3.0.3)
handlebars_assets (0.20.2)
hashie (3.4.2)
hike (1.2.3)
http (0.6.4)
http-cookie (1.0.2)
http_parser.rb (0.6.0)
httparty (0.13.5)
i18n (0.7.0)
io-console (0.4.2)
jbuilder (2.3.1, 2.2.16, 2.2.6)
jquery-rails (4.0.4, 4.0.3, 3.1.3)
json (1.8.3, 1.8.2, 1.8.1)
jwt (1.5.0)
less (2.6.0)
less-rails (2.7.0)
libv8 (3.16.14.11 x86_64-darwin-14, 3.16.14.7 x86_64-darwin-14)
loofah (2.0.3, 2.0.2, 2.0.1)
mail (2.6.3)
memoizable (0.4.2)
meta_request (0.3.4)
method_source (0.8.2)
mime-types (2.6.1, 2.4.3)
mini_portile (0.6.2)
minitest (5.8.0, 5.7.0, 5.5.1, 4.7.5)
multi_json (1.11.2, 1.11.1, 1.11.0, 1.10.1)
multi_xml (0.5.5)
multipart-post (2.0.0)
naught (1.0.0)
netrc (0.10.3)
nokogiri (1.6.6.2, 1.6.5)
oauth2 (1.0.0)
pg (0.18.2, 0.18.1)
pry (0.10.1)
pry-rails (0.3.4)
psych (2.0.5)
quiet_assets (1.1.0)
rack (1.6.4, 1.6.1, 1.6.0, 1.5.5)
rack-contrib (1.4.0)
rack-protection (1.5.3)
rack-test (0.6.3)
rails (4.2.3, 4.2.1, 4.2.0, 4.1.8)
rails-assets-backbone (1.2.1)
rails-assets-underscore (1.8.3)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.7, 1.0.6, 1.0.5)
rails-html-sanitizer (1.0.2, 1.0.1)
rails_12factor (0.0.3)
rails_layout (1.0.24)
rails_serve_static_assets (0.0.3)
rails_stdout_logging (0.0.3)
railties (4.2.3, 4.2.1, 4.2.0, 4.1.8)
rainbow (2.0.0)
rake (10.4.2, 10.1.0)
rdoc (4.2.0, 4.1.0)
ref (2.0.0, 1.0.5)
rest-client (1.8.0, 1.6.7)
sass (3.4.16, 3.4.14, 3.3.14, 3.2.19)
sass-rails (5.0.3, 5.0.1, 4.0.5)
sdoc (0.4.1)
select2-rails (3.5.9.3)
simple_form (3.1.0)
simple_oauth (0.3.1)
sinatra (1.4.6)
sinatra-contrib (1.4.2)
slop (3.6.0)
spring (1.3.6, 1.2.0)
sprockets (3.3.1, 3.2.0, 2.12.4, 2.12.3)
sprockets-rails (3.0.0.beta1, 2.3.2, 2.3.1, 2.2.2)
sqlite3 (1.3.10)
test-unit (2.1.2.0)
therubyracer (0.12.2)
thin (1.6.3)
thor (0.19.1)
thread_safe (0.3.5, 0.3.4)
tilt (2.0.1, 1.4.1)
turbolinks (2.5.3)
twitter (5.14.0)
tzinfo (1.2.2)
uglifier (2.7.1, 2.7.0)
unf (0.1.4)
unf_ext (0.0.7.1)
unirest (1.1.2)
web-console (2.2.1, 2.1.2, 2.0.0)
Solution:I had the gem in the development part of my gemfile
When I try to start my project using rails s I have the following error message occur:
Could not find gem 'jquery-rails (>= 0) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.
However, I know I definitely have that gem installed because when I put in the command gem list it shows up in my list of gems.
*** LOCAL GEMS ***
actionmailer (3.2.3)
actionpack (3.2.3)
activemodel (3.2.3)
activerecord (3.2.3)
activeresource (3.2.3)
activesupport (3.2.14, 3.2.3)
arel (3.0.2)
bigdecimal (1.1.0)
builder (3.2.2, 3.0.0)
bundler (1.1.5)
c2c_linux_patch_utilities (0.30.0, 0.29.0)
chef (11.6.2)
chef-zero (1.6)
debug_me (0.5.1)
diff-lcs (1.1.3)
erubis (2.7.0)
gelf (1.1.3)
hashie (2.0.5)
highline (1.6.19)
hike (1.2.1)
i18n (0.6.5)
io-console (0.3)
ipaddress (0.8.0)
journey (1.0.3)
jquery-rails (2.0.1)
json (1.7.7, 1.5.5)
knife-lastrun (0.0.4)
mail (2.4.4)
mime-types (1.25)
minitest (3.2.0, 2.5.1)
mixlib-authentication (1.3.0)
mixlib-cli (1.3.0)
mixlib-config (1.1.2)
mixlib-log (1.6.0)
mixlib-shellout (1.2.0)
moneta (0.6.0)
multi_json (1.8.1)
net-ssh (2.7.0)
net-ssh-gateway (1.2.0)
net-ssh-multi (1.2.0, 1.1)
ohai (6.18.0)
polyglot (0.3.3)
pony (1.4, 1.3)
poseidon (0.0.4)
puma (1.6.3)
rack (1.5.2, 1.4.1)
rack-cache (1.2)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (3.2.3)
railties (3.2.3)
rake (10.1.0, 0.9.2.2)
rdoc (3.12.2, 3.9.5)
rest-client (1.6.7)
rspec (2.12.0)
rspec-core (2.12.2)
rspec-expectations (2.12.1)
rspec-mocks (2.12.2)
rspec_junit_formatter (0.1.6)
ruby-shadow (2.2.0)
sdoc (0.3.20)
simplecov (0.7.1)
simplecov-html (0.7.1)
sprockets (2.3.1, 2.1.2)
systemu (2.5.2, 2.5.1)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
tzinfo (0.3.31)
xml-simple (1.1.1)
yajl-ruby (1.1.0)
I'm not able to use bundler because the connection is blocked at my workplace, but regardless, why is it giving me the error that the gem needs to be installed when it is installed?
Edit: I used gem environment gemdir to see where my path was for my gems and then tried to set the path for where bundlers looked using bundle config path /installationPath/, but I'm still having the same errors.
Also it is not a problem with the version numbers of the gems in my Gemfile
Bundler messes with the gem load path. gem list shows you what's installed on the system, but not necessarily what Bundler will expose to the application. Have you tried bundle exec rails s or bundle list to see what Bundler is actually exposing?