CollinAlpert / Lombok.NET

.NET adaptation for Java's Lombok using Source Generators.
MIT License
309 stars 16 forks source link

Methods created by [Async] "does not implement" interface methods. #14

Closed Aytackydln closed 1 year ago

Aytackydln commented 1 year ago

[Async] annotation doesn't pass build check for abstract methods. Also, build only fails if you compile from scratch. Incremental build mostly works fine until it doesn't anymore.

image image

CollinAlpert commented 1 year ago

That's weird, I can't reproduce the issue, even on a complete rebuild. I've checked the code and everything should work. Can you click the button I have circled in the build window and check if the source generator throws any exception?

image

Any exceptions would show up as warnings during a failed build. Even better would be if you could paste the entire build output.

Another thing you could try is setting <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> in your .csproj file and then checking the obj/Debug/net7.0/generated/Lombok.NET/Lombok.NET.MethodGenerators.AsyncGenerator folder and looking at what gets generated.

Aytackydln commented 1 year ago

I had this 2 times but can't reproduce now. I will let you know if this happens again

CollinAlpert commented 1 year ago

Okay, feel free to reopen when you can reliably reproduce it.