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

### Motivation This PR addresses #2208 which suggested replacing `Thor::Error` with a custom `Tapioca::Error`. ### Implementation - I feel my implementation may be naive in thinking that I would simply...

chore

### Motivation When we try to run tapioca dsl inside an ubuntu docker container, we get the following error: ``` /gems/ruby/3.3.0/gems/tapioca-0.17.5/lib/tapioca/rbs/rewriter.rb:49:in `=~': invalid byte sequence in US-ASCII (ArgumentError) ``` When...

Closes #2308 ### Motivation When setting up a new repo with Tapioca, the configured gem RBI directory might not exist yet, and loading the Tapioca add-on crashes. ### Implementation The...

bugfix

Just noticed what I believe to be a bug when updating to the latest version of the Gem in a project that also uses the [`graphql-ruby`](https://github.com/rmosolgo/graphql-ruby) gem and where we...

bug
help-wanted

After upgrading Tapioca to 0.17.2 (or more recent) and regenerating the RBI for actionpack, the signature for `AbstractController::Collector#turbo_stream` is missing. The `AbstractController::Collector` methods are dynamically generated based on `Mime::SET`: https://github.com/rails/rails/blob/v8.0.2/actionpack/lib/abstract_controller/collector.rb#L18-L20...

help-wanted

This code: ```ruby class MyCop < ::RuboCop::Cop::Base def_node_matcher :my_pattern?,

help-wanted

Hi! [Here](https://github.com/Shopify/tapioca/blob/main/lib/tapioca/dsl/compilers/active_record_relations.rb#L937), the return type for `find_in_batches` is set as `T::Enumerator[T::Enumerator[A]]`, but I believe the actual return type is `T::Enumerator[T::Array[A]]`. This is implied in the [documentation](https://api.rubyonrails.org/classes/ActiveRecord/Batches.html#method-i-find_in_batches): > Yields each batch...

help-wanted

### Motivation This PR updates the built-in Tapioca::Dsl::Compilers::ActiveRecordRelations compiler to add a narrowed type for the return value of `#ids`. Before this was simply set to `Array`, so each item...

enhancement

Currently the `Tapioca::Dsl::Compilers::ActiveModelAttributes` compiler defines the attribute accessor methods directly on the model class: ```ruby class GeneralLedgerController::Model sig { returns(T.nilable(::String)) } def classification; end sig { params(value: T.nilable(::String)).returns(T.nilable(::String)) } def...

We’ve recently upgraded our application to Rails 8. After the upgrade, we noticed that our user-defined routes are no longer present in the RBI files generated by Tapioca for path...

help-wanted