Skip to content

Automatically resolve superclass redefinition errors while generating gem RBIs #1834

Open
@KaanOzkan

Description

@KaanOzkan

We already typecheck resulting RBIs to convert strictness to false:

def validate_rbi_files(command:, gem_dir:, dsl_dir:, auto_strictness:, gems: [], compilers: [])

Similarly if we run into a superclass redefinition error we can populate sorbet/config with --suppress-payload-superclass-redefinition-for=ConstantName to prevent typecheck errors.

We probably will want to update the payload as well so this should still inform the user about the mismatch that's happening instead of fixing it silently.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions