Skip to content

1.8.0 breaks source for AsyncParsableCommands that manually invoke parse... method #907

@natecook1000

Description

@natecook1000

As noted here, the change in #855 was not actually source compatible, since overload resolution doesn't distinguish methods by whether they are async or not. Code in an AsyncParsableCommand extension that previously called ParsableCommand.parse or parseAsRoot now calls the new async versions, causing a compilation failure:

         let command = try MyCommand.parseAsRoot()
//                     |   `- note: call is 'async'
//                     `- error: expression is 'async' but is not marked with 'await'

The fix for clients is to add the await keyword; working on a source compatible fix for the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions