Skip to content

Tapioca DSL Issue: Dynamic method delegation generates <NOT-TYPED> return types #2408

@shristialto

Description

@shristialto

Environment:

  • Tapioca v0.13.3
  • Ruby/Rails version:

Issue:
When using Core::API with add_api for dynamic method delegation, Tapioca generates <NOT-TYPED> instead of proper return types, causing parse errors.

Reproduction:

  1. Module uses include Core::API and add_api Commands
  2. Commands module has properly typed methods (e.g., ).returns(User))
  3. Running bin/tapioca dsl generates RBI with ).returns(<NOT-TYPED>)
  4. This causes parse errors: "unexpected token '<'"

Expected behavior:
Tapioca should analyze the delegated methods and generate proper return types like ).returns(::User).

Workaround:
Currently requires manual editing of generated RBI files or excluding modules from DSL generation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions