Skip to content

Extensions on system types (like stat or time_t) go missing in importing module #2

@helje5

Description

@helje5

Macro (and NIO) itself works fine, but stat and timespec extensions in xsys and fs do not make it through to connect in MacroExpress.

swift build --destination /usr/local/lib/swift/dst/x86_64-unknown-linux/swift-5.3-ubuntu16.04.xtoolchain/destination.json
/Users/helge/dev/Swift/Macro/MacroExpress/Sources/connect/ServeStatic.swift:129:16: error: value of type 'stat_struct' (aka 'stat') has no member 'isDirectory'
      if lStat.isDirectory() {
         ~~~~~ ^~~~~~~~~~~

This is declared just fine in Macro/fs/Utils/StatStruct.swift.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions