I have an issue where I am unable to Ctrl C out of a failed console.
Example:
If you happen to omit an end around a block, you get a SystaxError thrown. Typically after this is thrown, the console quits via a SIGTERM or something (not certain). However my terminal pauses here, proceeding no further, unable to Ctrl C, Ctrl X, or Ctrl \ out of it. I can Ctrl Z and suspend the process, meaning I need to ps aux | grep rails then kill -9 the PID.
This is happening no Ruby 3.1. If I remove the spring gem from my Gemfile, the issues resolves an rails console quits as expected.
Debug Info
OS: macOS 13.0.1
Ruby: 3.1.2 and 3.1.3
Rails: 6.1.7.1
Spring v 2.1.1
Other Dependencies:
spring-watcher-listen (2.0.1) depends on spring (>= 1.2, < 3.0)
Example Terminal Output
=> Settings up local caching
/Users/domster83/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/activesupport-6.1.7/lib/active_support/dependencies.rb:326:in `load': /Users/domster83/workprojects/TTV4/Things/config/initializers/session_store.rb:31: syntax error, unexpected end-of-input, expecting `end' (SyntaxError)
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/activesupport-6.1.7/lib/active_support/dependencies.rb:326:in `block in load'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/activesupport-6.1.7/lib/active_support/dependencies.rb:299:in `load_dependency'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/activesupport-6.1.7/lib/active_support/dependencies.rb:326:in `load'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/railties-6.1.7/lib/rails/engine.rb:681:in `block in load_config_initializer'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/activesupport-6.1.7/lib/active_support/notifications.rb:205:in `instrument'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/railties-6.1.7/lib/rails/engine.rb:680:in `load_config_initializer'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/railties-6.1.7/lib/rails/engine.rb:634:in `block (2 levels) in <class:Engine>'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/railties-6.1.7/lib/rails/engine.rb:633:in `each'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/railties-6.1.7/lib/rails/engine.rb:633:in `block in <class:Engine>'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/railties-6.1.7/lib/rails/initializable.rb:32:in `instance_exec'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/railties-6.1.7/lib/rails/initializable.rb:32:in `run'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/railties-6.1.7/lib/rails/initializable.rb:61:in `block in run_initializers'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/2.7.0/tsort.rb:228:in `block in tsort_each'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/2.7.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/2.7.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/2.7.0/tsort.rb:431:in `each_strongly_connected_component_from'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/2.7.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/railties-6.1.7/lib/rails/initializable.rb:50:in `each'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/railties-6.1.7/lib/rails/initializable.rb:50:in `tsort_each_child'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/2.7.0/tsort.rb:415:in `call'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/2.7.0/tsort.rb:415:in `each_strongly_connected_component_from'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/2.7.0/tsort.rb:349:in `block in each_strongly_connected_component'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/2.7.0/tsort.rb:347:in `each'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/2.7.0/tsort.rb:347:in `call'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/2.7.0/tsort.rb:347:in `each_strongly_connected_component'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/2.7.0/tsort.rb:226:in `tsort_each'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/2.7.0/tsort.rb:205:in `tsort_each'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/railties-6.1.7/lib/rails/initializable.rb:60:in `run_initializers'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/railties-6.1.7/lib/rails/application.rb:391:in `initialize!'
from /Users/domster83/workprojects/TTV4/Things/config/environment.rb:7:in `<main>'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/zeitwerk-2.6.6/lib/zeitwerk/kernel.rb:38:in `require'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/activesupport-6.1.7/lib/active_support/dependencies.rb:332:in `block in require'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/activesupport-6.1.7/lib/active_support/dependencies.rb:299:in `load_dependency'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/activesupport-6.1.7/lib/active_support/dependencies.rb:332:in `require'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/spring-2.1.1/lib/spring/application.rb:106:in `preload'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/spring-2.1.1/lib/spring/application.rb:157:in `serve'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/spring-2.1.1/lib/spring/application.rb:145:in `block in run'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/spring-2.1.1/lib/spring/application.rb:139:in `loop'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/spring-2.1.1/lib/spring/application.rb:139:in `run'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/spring-2.1.1/lib/spring/application/boot.rb:19:in `<top (required)>'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
from /Users/domster83/.rbenv/versions/2.7.7/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
from -e:1:in `<main>'
I have an issue where I am unable to Ctrl C out of a failed console. Example: If you happen to omit an
end
around a block, you get a SystaxError thrown. Typically after this is thrown, the console quits via a SIGTERM or something (not certain). However my terminal pauses here, proceeding no further, unable to Ctrl C, Ctrl X, or Ctrl \ out of it. I can Ctrl Z and suspend the process, meaning I need tops aux | grep rails
thenkill -9
the PID.This is happening no Ruby 3.1. If I remove the spring gem from my Gemfile, the issues resolves an rails console quits as expected.
Debug Info OS: macOS 13.0.1 Ruby: 3.1.2 and 3.1.3 Rails: 6.1.7.1 Spring v 2.1.1 Other Dependencies: spring-watcher-listen (2.0.1) depends on spring (>= 1.2, < 3.0)
Example Terminal Output