Skip to content

sourcery --watch not working with sourcery 2.2.7 from homebrew or build from source #1427

@TomaszLizer

Description

@TomaszLizer

After quite some time off I started experimenting with sourcery again (yep, Swifty Stack brought me here 😅).

Wanted to checkout interactive mode with sourcery --watch and to my surprise it was not working.
Started poking around and it seemd that only single pass mode worked as expected, in watch mode it was not progressing over Starting watching logs.
Same issue occurs when running sourcery built from source (using swift build or xcodebuild).

Image

When using version downloded from release artifacts or directly in xcode (DEBUG) it works just fine.

Context

What

Sourcery version: 2.2.7
sourcery --watch command

Expected result

Generated files updates live as template files are being saved after modification

Actual result

Files only updates once after during initial command run.

Environment

Binary source: Homebrew | swift build -c release | xcodebuild ...
swift-driver version: 1.120.5 Apple Swift version 6.1 (swiftlang-6.1.0.110.21 clang-1700.0.13.3)
Target: arm64-apple-macosx15.0
Xcode version: 16.4 (tried 16.3 as well)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions