Skip to content

Add conditional SwiftSyntaxMacroExpansion import for dependency entry macro file #446

Description

@KaiOelfke

Description

Most PF library macro files have this:

#if !canImport(SwiftSyntax600)
  import SwiftSyntaxMacroExpansion
#endif

But DependencyEntryMacro.swift doesn't have it. I am getting a compile error:

Cannot find 'MacroExpansionErrorMessage' in scope

I guess I can try to upgrade the version of Swift Syntax I use. This is with Xcode 26.6.0 RC. But it felt suspicious that this is inconsistent with other library code.

Checklist

  • I have determined whether this bug is also reproducible in a vanilla SwiftUI project.
  • If possible, I've reproduced the issue using the main branch of this package.
  • This issue hasn't been addressed in an existing GitHub issue or discussion.

Expected behavior

No response

Actual behavior

No response

Steps to reproduce

No response

Dependencies version information

1.13.0

Destination operating system

iOS 26

Xcode version information

26.6.0

Swift Compiler version information

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