-
Notifications
You must be signed in to change notification settings - Fork 156
Open
Description
I tried to initialize tapioca for an existing rails app and encountered the errors below on both ruby 3.2.9 and 3.4.6. Wondering if something with my app was the cause, I created a new ruby project with a Gemfile with just the following:
source "https://rubygems.org"
gem "tapioca"I was able to run bundle install without issue, but tapioca init or bundle exec tapioca init both fail with similar errors about .new being undefined on T::Module. These are identical to the errors I got in my full rails 8 app.
╭─carl@xpc in ~/projects/tapioca-test via v3.4.6 took 0s
╰─λ bundle install
Fetching gem metadata from https://rubygems.org/........
Resolving dependencies...
Fetching benchmark 0.5.0
Fetching sorbet-static 0.6.12872 (x86_64-linux)
Fetching netrc 0.11.0
Fetching parallel 1.27.0
Fetching prism 1.7.0
Fetching rexml 3.4.4
Fetching sorbet-runtime 0.6.12872
Fetching erubi 1.13.1
Installing benchmark 0.5.0
Fetching thor 1.4.0
Installing netrc 0.11.0
Installing parallel 1.27.0
Fetching yard 0.9.38
Fetching rbs 3.10.0
Installing erubi 1.13.1
Installing thor 1.4.0
Installing rexml 3.4.4
Installing sorbet-runtime 0.6.12872
Installing prism 1.7.0 with native extensions
Installing yard 0.9.38
Installing rbs 3.10.0 with native extensions
Fetching yard-sorbet 0.9.0
Installing yard-sorbet 0.9.0
Installing sorbet-static 0.6.12872 (x86_64-linux)
Fetching sorbet 0.6.12872
Installing sorbet 0.6.12872
Fetching sorbet-static-and-runtime 0.6.12872
Installing sorbet-static-and-runtime 0.6.12872
Fetching rbi 0.3.8
Installing rbi 0.3.8
Fetching spoom 1.6.3
Installing spoom 1.6.3
Fetching tapioca 0.16.11
Installing tapioca 0.16.11
Bundle complete! 2 Gemfile dependencies, 20 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
╭─carl@xpc in ~/projects/tapioca-test via v3.4.6 took 22s
╰─λ tapioca init
Warning: You're running tapioca without Bundler. This isn't recommended and may cause issues. Please use the provided binstub through `bin/tapioca` instead.
/home/carl/.asdf/installs/ruby/3.4.6/lib/ruby/gems/3.4.0/gems/tapioca-0.16.11/lib/tapioca/runtime/trackers/required_ancestor.rb:55:in '<module:Helpers>': undefined method 'new' for module T::Module (NoMethodError)
prepend(Module.new do
^^^^
from /home/carl/.asdf/installs/ruby/3.4.6/lib/ruby/gems/3.4.0/gems/tapioca-0.16.11/lib/tapioca/runtime/trackers/required_ancestor.rb:54:in '<module:T>'
from /home/carl/.asdf/installs/ruby/3.4.6/lib/ruby/gems/3.4.0/gems/tapioca-0.16.11/lib/tapioca/runtime/trackers/required_ancestor.rb:53:in '<top (required)>'
from <internal:/home/carl/.asdf/installs/ruby/3.4.6/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:136:in 'Kernel#require'
from <internal:/home/carl/.asdf/installs/ruby/3.4.6/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:136:in 'Kernel#require'
from /home/carl/.asdf/installs/ruby/3.4.6/lib/ruby/gems/3.4.0/gems/tapioca-0.16.11/lib/tapioca/runtime/trackers.rb:58:in '<top (required)>'
from <internal:/home/carl/.asdf/installs/ruby/3.4.6/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:136:in 'Kernel#require'
from <internal:/home/carl/.asdf/installs/ruby/3.4.6/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:136:in 'Kernel#require'
from /home/carl/.asdf/installs/ruby/3.4.6/lib/ruby/gems/3.4.0/gems/tapioca-0.16.11/lib/tapioca/internal.rb:8:in '<top (required)>'
from /home/carl/.asdf/installs/ruby/3.4.6/lib/ruby/gems/3.4.0/gems/tapioca-0.16.11/exe/tapioca:28:in 'Kernel#require_relative'
from /home/carl/.asdf/installs/ruby/3.4.6/lib/ruby/gems/3.4.0/gems/tapioca-0.16.11/exe/tapioca:28:in '<top (required)>'
from /home/carl/.asdf/installs/ruby/3.4.6/bin/tapioca:25:in 'Kernel#load'
from /home/carl/.asdf/installs/ruby/3.4.6/bin/tapioca:25:in '<main>'
╭─carl@xpc in ~/projects/tapioca-test via v3.4.6 took 0s
[ ] × bundle exec tapioca init
bundler: failed to load command: tapioca (/home/carl/.asdf/installs/ruby/3.4.6/bin/tapioca)
/home/carl/.asdf/installs/ruby/3.4.6/lib/ruby/gems/3.4.0/gems/tapioca-0.16.11/lib/tapioca/runtime/trackers/required_ancestor.rb:55:in '<module:Helpers>': undefined method 'new' for module T::Module (NoMethodError)
prepend(Module.new do
^^^^
from /home/carl/.asdf/installs/ruby/3.4.6/lib/ruby/gems/3.4.0/gems/tapioca-0.16.11/lib/tapioca/runtime/trackers/required_ancestor.rb:54:in '<module:T>'
from /home/carl/.asdf/installs/ruby/3.4.6/lib/ruby/gems/3.4.0/gems/tapioca-0.16.11/lib/tapioca/runtime/trackers/required_ancestor.rb:53:in '<top (required)>'
from /home/carl/.asdf/installs/ruby/3.4.6/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require'
from /home/carl/.asdf/installs/ruby/3.4.6/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
from /home/carl/.asdf/installs/ruby/3.4.6/lib/ruby/gems/3.4.0/gems/tapioca-0.16.11/lib/tapioca/runtime/trackers.rb:58:in '<top (required)>'
from /home/carl/.asdf/installs/ruby/3.4.6/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require'
from /home/carl/.asdf/installs/ruby/3.4.6/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
from /home/carl/.asdf/installs/ruby/3.4.6/lib/ruby/gems/3.4.0/gems/tapioca-0.16.11/lib/tapioca/internal.rb:8:in '<top (required)>'
from /home/carl/.asdf/installs/ruby/3.4.6/lib/ruby/gems/3.4.0/gems/tapioca-0.16.11/exe/tapioca:28:in 'Kernel#require_relative'
from /home/carl/.asdf/installs/ruby/3.4.6/lib/ruby/gems/3.4.0/gems/tapioca-0.16.11/exe/tapioca:28:in '<top (required)>'
from /home/carl/.asdf/installs/ruby/3.4.6/bin/tapioca:25:in 'Kernel#load'
from /home/carl/.asdf/installs/ruby/3.4.6/bin/tapioca:25:in '<top (required)>'
from /home/carl/.local/share/gem/ruby/3.4.0/gems/bundler-4.0.3/lib/bundler/cli/exec.rb:61:in 'Kernel.load'
from /home/carl/.local/share/gem/ruby/3.4.0/gems/bundler-4.0.3/lib/bundler/cli/exec.rb:61:in 'Bundler::CLI::Exec#kernel_load'
from /home/carl/.local/share/gem/ruby/3.4.0/gems/bundler-4.0.3/lib/bundler/cli/exec.rb:24:in 'Bundler::CLI::Exec#run'
from /home/carl/.local/share/gem/ruby/3.4.0/gems/bundler-4.0.3/lib/bundler/cli.rb:500:in 'Bundler::CLI#exec'
from /home/carl/.local/share/gem/ruby/3.4.0/gems/bundler-4.0.3/lib/bundler/vendor/thor/lib/thor/command.rb:28:in 'Bundler::Thor::Command#run'
from /home/carl/.local/share/gem/ruby/3.4.0/gems/bundler-4.0.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in 'Bundler::Thor::Invocation#invoke_command'
from /home/carl/.local/share/gem/ruby/3.4.0/gems/bundler-4.0.3/lib/bundler/vendor/thor/lib/thor.rb:538:in 'Bundler::Thor.dispatch'
from /home/carl/.local/share/gem/ruby/3.4.0/gems/bundler-4.0.3/lib/bundler/cli.rb:35:in 'Bundler::CLI.dispatch'
from /home/carl/.local/share/gem/ruby/3.4.0/gems/bundler-4.0.3/lib/bundler/vendor/thor/lib/thor/base.rb:584:in 'Bundler::Thor::Base::ClassMethods#start'
from /home/carl/.local/share/gem/ruby/3.4.0/gems/bundler-4.0.3/lib/bundler/cli.rb:29:in 'Bundler::CLI.start'
from /home/carl/.local/share/gem/ruby/3.4.0/gems/bundler-4.0.3/exe/bundle:28:in 'block in <top (required)>'
from /home/carl/.local/share/gem/ruby/3.4.0/gems/bundler-4.0.3/lib/bundler/friendly_errors.rb:118:in 'Bundler.with_friendly_errors'
from /home/carl/.local/share/gem/ruby/3.4.0/gems/bundler-4.0.3/exe/bundle:20:in '<top (required)>'
from /home/carl/.asdf/installs/ruby/3.4.6/bin/bundle:25:in 'Kernel#load'
from /home/carl/.asdf/installs/ruby/3.4.6/bin/bundle:25:in '<main>'
╭─carl@xpc in ~/projects/tapioca-test via v3.4.6 took 0s
[ ] ×
Metadata
Metadata
Assignees
Labels
No labels