Comments (4)
Documentation says: "Currently Sourcery only scans files from paths or targets that you tell it to scan. "
so it turns out this is a limitation with a workaround but how do we specify which sources sorcery will scan when using Sourcery Pro?
from sourcery.
I also having this warning showing. How can I cast the type to Enum so rawTypeName property is known?
from sourcery.
👋🏻 @krzysztofzablocki this one you most likely can answer, thanks 🤝
from sourcery.
@OmranK SourceryPro can't access anything outside the given file, that's Xcode limitation not Sourcery's, we are simply not allowed to anything outside text buffer.
You can cast variables to type using {% typed type as Enum %} but you'd need to pass var.type to a function or store it in a variable for that, using either Macro or Set from https://github.com/SwiftGen/StencilSwiftKit?tab=readme-ov-file
from sourcery.
Related Issues (20)
- [Bug] Failed to resolve dependencies (SPM issue) HOT 5
- Watch mode only watches sources from last configuration file when passing multiple paths to configuration files using `--config` command line options HOT 3
- Getting generic requirements from methods HOT 1
- Possible to generate asset catalog constants? HOT 1
- AutoMockable does not generate valid Swift code during method generic requirement parsing HOT 2
- Swift macros and method bodies HOT 1
- Update CHANGELOG
- Generated code doesn't compile if returning type starts with the "any" keyword HOT 5
- Sourcery not passing variable to .stencil file inside {{ }}
- --cacheBasePath is treated as an absolute path
- `SwiftTemplate` fails to build due to `Invalid manifest` HOT 9
- Pull in protocol info from other projects/targets, without generating for those projects/targets HOT 3
- Typealias resolution replaces unrelated generic types HOT 4
- Crash when regenerate changed file HOT 1
- Old swift-collections version
- Associatedtype not parsing to mock HOT 1
- Generate Mocks for Each Protocol Using Sourcery
- AutoMockable does not generate valid swift code for static protocol extensions methods
- Is there a way to add a 'where' clause to a protocol extension?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sourcery.