undefined method `build' for an instance of Google::Protobuf::DescriptorPool (NoMethodError)
まだ誰も着手していません。
評価
調査の方向性
まず lib/gen/dependencies/gogoproto/gogo_pb.rb と、lib/gen/temporal/api/filter/v1/message_pb.rb に至る require パスを調査し、報告されている Ruby と protobuf のセットアップで失敗を再現します。生成された API ファイルが DescriptorPool NoMethodError なしで読み込まれ、影響を受ける依存関係の組み合わせが適切な検証でカバーされれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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]
- 主要言語
- Ruby
- スター
- 288
- フォーク
- 113
- 平均マージ
- 10日 15時間
- マージ済み PR(30日)
- 2
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
coinbase/temporal-ruby のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
coinbase/temporal-ruby#361 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
coinbase/temporal-ruby#341 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
coinbase/temporal-ruby#328 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
coinbase/temporal-ruby#326 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
coinbase/temporal-ruby#324 · コメント 3 件 · リアクション 2 件 ·
coinbase/temporal-ruby の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
riscv/riscv-unified-db#2626 ·
-
Component: GLib
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
ds-drift
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
we-promise/sure#3693 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
simp/pupmod-simp-simp#395 ·