Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to generate Sourcery files when using a project configuration on 2.2.6 #1394

Open
MattAydin opened this issue Jan 6, 2025 · 2 comments

Comments

@MattAydin
Copy link

After upgrading to Sourcery version 2.2.6 I can't seem to generate any files any more using Sourcery. I've created a repository where it can be reproduced here..

I've installed Sourcery via Homebrew and run the sourcery command from the root folder of the repository.

The configuration used is this:

project:
  file: ./Foo.xcodeproj
  target:
    name: Foo
templates:
  - AutoMockable.stencil
output:
  ./Generated/

The output is:

Using configuration file at '.sourcery.yml'
Scanning sources...
Found 0 types in 0 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Generating code...
Finished.
Processing time 0.11 seconds

When changing the .sourcery configuration to this:

sources:
  - ./Foo/
templates:
  - AutoMockable.stencil
output:
  ./Generated/

The output is this:

Using configuration file at '.sourcery.yml'
Scanning sources...
Found 3 types in 2 files, 0 changed from last run.
Loading templates...
Loaded 1 templates.
Generating code...
Finished.
Processing time 0.11 seconds

and the generated code is shown.

I believe it has something to do with the version bump for the XcodeProj dependency, but not certain.

@MattAydin
Copy link
Author

It appears the same is applicable when using a swift package's configuration...

@krzysztofzablocki
Copy link
Owner

@art-divin any idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants