Open mckaysalisbury opened 1 month ago
Do you specify the require: false
option to the steep
gem in the Gemfile
?
This definition is probably duplicated in concurrent-ruby and steep. You can avoid this problem by skipping loading steep gem's RBS.
I have tried skipping that particular gem, but other .rbs files in the collection for the gem are required and unduplicated, so that didn't work.
Thanks for your try. I have no idea of the cause for now...
Could you give me a (minimum) reproduction code? Gemfile
, Gemfile.lock
, rbs_collection.yaml
, and rbs_collection.lock.yaml
are necessary to reproduce a problem related to rbs collection
.
Hmm, I'm not sure how much I'm at liberty to share. I'll try to create a repro.
I have included a bunch of gems from this repo in my collection. Specifically, I need
Concurrent::Map
from theconcurrent-ruby
gem.However, when including this gem steep reports an error for both signatures in this file.
https://github.com/ruby/gem_rbs_collection/blob/7a105f52053ce1c708b605dfa9c1ab8473424036/gems/concurrent-ruby/1.1/utility/processor_counter.rbs#L2
When I comment out the two method signatures in that line, everything is fine.
Is there a better workaround?