You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rails 6 no longer ships with webrick. When trying to run teaspoon it fails with the followiing error:
✗ teaspoon
<internal:~/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require': cannot load such file -- webrick (LoadError)
from <internal:~/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
from ~/.rvm/gems/ruby-3.2.2@project/gems/zeitwerk-2.6.16/lib/zeitwerk/kernel.rb:34:in `require'
from ~/.rvm/gems/ruby-3.2.2@project/gems/activesupport-6.1.7.8/lib/active_support/dependencies.rb:332:in `block in require'
from ~/.rvm/gems/ruby-3.2.2@project/gems/activesupport-6.1.7.8/lib/active_support/dependencies.rb:299:in `load_dependency'
from ~/.rvm/gems/ruby-3.2.2@project/gems/activesupport-6.1.7.8/lib/active_support/dependencies.rb:332:in `require'
from ~/.rvm/gems/ruby-3.2.2@project/gems/teaspoon-1.4.0/lib/teaspoon/server.rb:3:in `<top (required)>'
from <internal:~/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
from <internal:~/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
from ~/.rvm/gems/ruby-3.2.2@project/gems/zeitwerk-2.6.16/lib/zeitwerk/kernel.rb:34:in `require'
from ~/.rvm/gems/ruby-3.2.2@project/gems/activesupport-6.1.7.8/lib/active_support/dependencies.rb:332:in `block in require'
from ~/.rvm/gems/ruby-3.2.2@project/gems/activesupport-6.1.7.8/lib/active_support/dependencies.rb:299:in `load_dependency'
from ~/.rvm/gems/ruby-3.2.2@project/gems/activesupport-6.1.7.8/lib/active_support/dependencies.rb:332:in `require'
from ~/.rvm/gems/ruby-3.2.2@project/gems/teaspoon-1.4.0/lib/teaspoon/environment.rb:10:in `load'
from ~/.rvm/gems/ruby-3.2.2@project/gems/teaspoon-1.4.0/lib/teaspoon/console.rb:10:in `initialize'
from ~/.rvm/gems/ruby-3.2.2@project/gems/teaspoon-1.4.0/lib/teaspoon/command_line.rb:15:in `new'
from ~/.rvm/gems/ruby-3.2.2@project/gems/teaspoon-1.4.0/lib/teaspoon/command_line.rb:15:in `initialize'
from ~/.rvm/gems/ruby-3.2.2@project/gems/teaspoon-1.4.0/bin/teaspoon:6:in `new'
from ~/.rvm/gems/ruby-3.2.2@project/gems/teaspoon-1.4.0/bin/teaspoon:6:in `<top (required)>'
from ~/.rvm/gems/ruby-3.2.2@project/bin/teaspoon:25:in `load'
from ~/.rvm/gems/ruby-3.2.2@project/bin/teaspoon:25:in `<main>'
from ~/.rvm/gems/ruby-3.2.2@project/bin/ruby_executable_hooks:22:in `eval'
from ~/.rvm/gems/ruby-3.2.2@project/bin/ruby_executable_hooks:22:in `<main>'
This is caused directly by the explicit require "webrick" in lib/teaspoon/server.rb:
Rails 6 no longer ships with
webrick
. When trying to run teaspoon it fails with the followiing error:This is caused directly by the explicit
require "webrick"
inlib/teaspoon/server.rb
:teaspoon/lib/teaspoon/server.rb
Line 3 in a14367e
I was able to work around this by adding
require "webrick"
back to myGemfile
.The text was updated successfully, but these errors were encountered: