tapioca icon indicating copy to clipboard operation
tapioca copied to clipboard

The swiss army knife of RBI generation

Results 187 tapioca issues
Sort by recently updated
recently updated
newest added

Scenario: 1. work on branch A, add a column `c` to table `t` through a rails migration. 2. create a new branch off main to do a quick fix which...

It turns out that Rails Engines have their own router and the controllers, etc inside a Rails Engine get an engine specific `url_helper` module included, not the `Rails.application` one. In...

enhancement
help-wanted

Is there, or would you consider adding, a way to only generate RBIs for gems that have changed? Some of the gems I have to use take a long time...

### Motivation Worked on this during group pairing last week and today. https://github.com/Shopify/ruby-dev-exp-issues/issues/642 ### Implementation Added `comments` to `create_method` so that guides could be passed into `RBI::Method.new` which already takes...

Tapioca currently factors `Etc.nprocessors` into its worker count calculation: https://github.com/Shopify/tapioca/blob/703ce223ef95b7252480913296881bec7860e221/lib/tapioca/executor.rb#L17-L20 However, [the `parallel` gem currently prioritizes `ENV['PARALLEL_PROCESSOR_COUNT']`](https://github.com/grosser/parallel/blob/383a960aa275e0ab778f76167b2be89dc5274a2b/lib/parallel/processor_count.rb#L6-L9) above `nprocessors`. This affects environments like [Spin](https://shopify.engineering/shopifys-cloud-development-journey), where most gems pick up the...

enhancement

Our application uses [`ActiveRecord::Store`](https://api.rubyonrails.org/classes/ActiveRecord/Store.html), but Tapioca does not support it, so we had to write a shim. I began investigating adding it, but while looking for where to implement it...

enhancement
help-wanted
feature

Now I'm migrating to tapioca and caught a troublesome problem. compilers/active_record_associations.rb always generates T.nilable(singular_model_name) on belongs_to and has_one association. > \>= Rails 5.0 _ | optional | generated returns type...

bundle exec tapioca init --verbose identical sorbet/config identical sorbet/tapioca/config.yml identical sorbet/tapioca/require.rb force bin/tapioca Retrieving index from central repository... /Users/xx/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/json-1.8.6/lib/json/common.rb:155: warning: Using the last argument as keyword parameters is deprecated Done...

We have a mutation with an argument that uses [GraphQL's `loads` option](https://graphql-ruby.org/mutations/mutation_authorization.html#loading-and-authorizing-objects), which auto-fetches objects by their ID. It looks like this: `argument :party_ids, [ID], loads: Types::PartyType, as: :parties` The...

enhancement

Sorry if this belongs on Discourse – I was initially going to post this there but I believe this is a bug considering invalid DSL is being generated rather than...

bug