| What it is | Gradual typing for Ruby | A fast, powerful type checker designed for Ruby | Extracts Ruby code from ERB files so you can run Sorbet over them | Extracts Ruby code from view templates (ERB, etc.) for Sorbet type-checking, with LSP support |
| Features | - type checks Ruby against RBS signatures (steep check)
- Steepfile targets that choose which code and signature directories to check
- union types, generics, nil types and narrowing through case and is_a?
- inline annotations such as @type var and @dynamic
- reports methods declared in signatures but not implemented
- gem signatures through the RBS collection
- Language Server Protocol support (steep langserver), with a VS Code extension
- Rake tasks for check and watch
| - gradual typing with per-file strictness levels
- method signatures in Ruby syntax
- flow-sensitive typing
- multithreaded checking
- RBI type definition files
- gem awareness
- language server (autocomplete, go to definition, hover docs)
- runtime type checks via sorbet-runtime
- All 9 features
| - extracts Ruby from Rails ERB templates into Ruby files Sorbet can check
- generated code is scoped to the app's ApplicationController
- locals_sig magic comment gives partial locals Sorbet signatures (experimental)
- skips partials without strict locals unless skip_missing_locals is set
- YAML configuration with extra_includes for modules Tapioca doesn't cover
- nominal ViewComponent support
| - compiles ERB templates to typed Ruby files and type-checks them with Sorbet (sv tc)
- source maps between templates and generated Ruby for error locations in the template
- LSP proxy server with hover, completion and go-to-definition in .erb files
- VS Code extension
- recompiles a controller's templates when the controller file is saved
- locals and locals_sig magic comments for typed partial locals
- ViewComponent erb_template heredoc support
- Tapioca DSL compiler for helper method RBIs and controller instance variable types (via srb_lens)
- All 10 features
|