Tapioca DSL Issue: Dynamic method delegation generates `<NOT-TYPED>` return types
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:
- Module uses
include Core::APIandadd_api Commands - Commands module has properly typed methods (e.g.,
).returns(User)) - Running
bin/tapioca dslgenerates RBI with).returns(<NOT-TYPED>) - 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.
That's quite an old version of tapioca? Does it happen in recent versions?
I wasn't having any issues until earlier this morning in this same version, do you think it'll be fixed soon?
We need more information to investigate. What is Core::API? We need to know which DSL compiler it's triggering and how that DSL compiler is generating <NOT-TYPED> which is a placeholder from sorbet-runtime.