Skip to content

Chicken and egg problem when evolving dart:_macros library #54976

Closed
@jakemac53

Description

@jakemac53

See https://dart-review.googlesource.com/c/sdk/+/353561, this exercises a pattern where we both add a new API to dart:_macros and expect to be able to use it in the compilers, atomically.

In particular, I added the exception types to dart:_macros in this CL, and migrated analyzer/CFE to use package:macros which exports dart:_macros at the same time. They expect these new exception APIs to exist, but they don't.

Presumably this is related in some way to the pre-built SDK, but I don't fully understand all the context here.

I could likely avoid the issue in this case, but we will have this same pattern but not be able to avoid it in the future.

cc @johnniwinther @whesse

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-sdkUse area-sdk for general purpose SDK issues (packaging, distribution, …).feature-macrosImplementation of the macros feature

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions