Skip to content

Trying to generate DSLs with add-on for a non-processable constant errors #2348

@vinistock

Description

@vinistock

When saving a file that contains a constant that cannot be processed by any DSL compilers, the add-on errors. The error is rescued and nothing actually happens, but it prints to the output tab and looks like something crashed.

It would be nice to just return early without printing any errors.

~/tapioca/lib/tapioca/dsl/pipeline.rb:63:in 'Tapioca::Dsl::Pipeline#run': Tapioca::Error
  from ~/tapioca/lib/tapioca/commands/abstract_dsl.rb:64:in 'Tapioca::Commands::AbstractDsl#generate_dsl_rbi_files'
  from ~/tapioca/lib/tapioca/commands/dsl_generate.rb:17:in 'Tapioca::Commands::DslGenerate#execute'
  from ~/tapioca/lib/tapioca/commands/command.rb:25:in 'block in Tapioca::Commands::Command#run'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions