undefined method `build' for an instance of Google::Protobuf::DescriptorPool (NoMethodError)
Nobody has claimed this yet.
- #320 by @rohitpaulk — closed without merging
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start by inspecting lib/gen/dependencies/gogoproto/gogo_pb.rb and the require path through lib/gen/temporal/api/filter/v1/message_pb.rb, then reproduce the failure with the reported Ruby and protobuf setup. Done means the generated API files load without the DescriptorPool NoMethodError and the affected dependency combination is covered by an appropriate verification.
Written by the indexing model from the issue text.
Description
Using 0d3a8bb9037d I get the following error:
/Users/russ/.asdf/installs/ruby/3.3.4/lib/ruby/gems/3.3.0/bundler/gems/temporal-ruby-0d3a8bb9037d/lib/gen/dependencies/gogoproto/gogo_pb.rb:8:in `<main>': undefined method `build' for an instance of Google::Protobuf::DescriptorPool (NoMethodError)
Google::Protobuf::DescriptorPool.generated_pool.build do
^^^^^^
from /Users/russ/.asdf/installs/ruby/3.3.4/lib/ruby/3.3.0/bundled_gems.rb:74:in `require'
from /Users/russ/.asdf/installs/ruby/3.3.4/lib/ruby/3.3.0/bundled_gems.rb:74:in `block (2 levels) in replace_require'
from /Users/russ/.asdf/installs/ruby/3.3.4/lib/ruby/gems/3.3.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
from /Users/russ/.asdf/installs/ruby/3.3.4/lib/ruby/gems/3.3.0/gems/zeitwerk-2.6.17/lib/zeitwerk/kernel.rb:34:in `require'
from /Users/russ/.asdf/installs/ruby/3.3.4/lib/ruby/gems/3.3.0/bundler/gems/temporal-ruby-0d3a8bb9037d/lib/gen/temporal/api/filter/v1/message_pb.rb:7:in `<main>'
% brew search protobuf
==> Formulae
protobuf ✔ protobuf-c ✔ protobuf@21 protobuf@3 swift-protobuf
==> Casks
protopie
russ@hai-lulzz-6 rails-app % brew info protobuf
==> protobuf: stable 27.1 (bottled)
Protocol buffers (Google's data interchange format)
https://protobuf.dev/
Installed
/opt/homebrew/Cellar/protobuf/27.1 (430 files, 14.6MB) *
Poured from bottle using the formulae.brew.sh API on 2024-08-06 at 09:32:15
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/p/protobuf.rb
License: BSD-3-Clause
==> Dependencies
Build: cmake ✔, googletest ✘
Required: abseil ✔
==> Caveats
Emacs Lisp files have been installed to:
/opt/homebrew/share/emacs/site-lisp/protobuf
==> Analytics
install: 65,632 (30 days), 186,459 (90 days), 714,851 (365 days)
install-on-request: 30,519 (30 days), 86,145 (90 days), 337,904 (365 days)
build-error: 319 (30 days)
russ@hai-lulzz-6 rails-app % brew info protobuf-c
==> protobuf-c: stable 1.5.0 (bottled), HEAD
Protocol buffers library
https://github.com/protobuf-c/protobuf-c
Installed
/opt/homebrew/Cellar/protobuf-c/1.5.0_6 (15 files, 522.9KB) *
Poured from bottle using the formulae.brew.sh API on 2024-08-06 at 09:32:16
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/p/protobuf-c.rb
License: BSD-2-Clause
==> Dependencies
Build: pkg-config ✔
Required: abseil ✔, protobuf ✔
==> Options
--HEAD
Install HEAD version
==> Analytics
install: 5,803 (30 days), 16,589 (90 days), 69,602 (365 days)
install-on-request: 1,149 (30 days), 3,364 (90 days), 14,972 (365 days)
build-error: 10 (30 days)
russ@hai-lulzz-6 rails-app % ruby -v
ruby 3.3.4 (2024-07-09 revision be1089c8ec) [arm64-darwin24]
- Dominant language
- Ruby
- Stars
- 287
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from coinbase/temporal-ruby
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
coinbase/temporal-ruby#361 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
coinbase/temporal-ruby#341 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
coinbase/temporal-ruby#328 · 1 comment ·
-
NoMethodError when await_workflow_result is called for long running workflowsPossibly taken @iekundayo claimed this 719 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 45/100
coinbase/temporal-ruby#326 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
coinbase/temporal-ruby#324 · 3 comments · 2 reactions ·
All issues in coinbase/temporal-ruby
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
glossarist/glossarist-ruby#247 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
voxpupuli/puppet-corosync#589 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
theforeman/puppet-foreman_scap_client#93 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
simp/pupmod-simp-simp#406 ·