Comments (2)
It is unlikely that the generated attributes of AutoInterface influence the generation of Mapperly, because source generators are independent from each other. Each source generator gets as input the source code before any generation. A source generator cannot see the output of another generator, so for Mapperly the generated interfaces does not exist.
Maybe the problem is exactly that: Somewhere Mapperly needs to read an interface, but the interface is not present because it will be generated by AutoInterface and Mapperly is not able to see it. And when the interface is created manually, Mapperly has no problems finding the interface.
Another thing that is possible is when working with multiple .csproj/assemblies. When code is generated in the first .csproj and the second .csproj has a reference on the first .csproj, then the generated code of the first .csproj is visible for the generators of the second .csproj.
In this case the generated attributes of AutoInterface are visible to Mapperly, but the [Mapper]-attribute is not present at the interface, so it should not affect anything.
I want to wait until you pin-point the exact cause before making a decision, because I still think that the attributes do not harm and the cases they do harm are so rare, that this feature is not worth it.
In case you do not know, you can use <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> to save the generated source code to disk.
Good Luck
from autointerface.
The team was able to reproduce the bug without AutoInterface involved at all. So their initial assumptions were incorrect and therefore this feature request should not be needed. Thanks for the consideration.
from autointerface.
Related Issues (12)
- Generator does not detect inside-namespace imports HOT 2
- Support for Records HOT 1
- Support for attributes HOT 1
- Support Nested Interfaces HOT 2
- Interfaces from Records don't generate Deconstruct method HOT 1
- Nested Classes can't produce top-level interfaces HOT 2
- Methods with Generics not generating into interface HOT 1
- Declared elements from existing interfaces being duplicated in generated interface HOT 1
- Feature 'file-scoped namespaces' is not available. Please use language version 10.0 or greater. HOT 4
- Overwriting Generated Files with Same Name HOT 2
- Inherited class members are not included in generated interface HOT 1
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 autointerface.