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

WithMethodsGenerator has stopped generating file #5

Closed
ercinakyuz opened this issue Feb 16, 2022 · 5 comments
Closed

WithMethodsGenerator has stopped generating file #5

ercinakyuz opened this issue Feb 16, 2022 · 5 comments

Comments

@ercinakyuz
Copy link

with-stopped

  • Plugin stopped after change property name in class.
  • WithAttribute generates WithD method for named Id property. There is something problem with "I" char?
@CollinAlpert
Copy link
Owner

Thanks for the issue. I have an idea as to why this is and am working on a fix.

@CollinAlpert
Copy link
Owner

Actually I can't reproduce the "WithD" issue. What version of Lombok.NET are you using? Can you send me the build output?

@ercinakyuz
Copy link
Author

Screenshot_3

Screenshot_6

Screenshot_5

Screenshot_2

Microsoft Visual Studio Community 2022 (64-bit)
Version 17.0.1
Net 6.0 Console App
Lombok Version: 0.5.1

@CollinAlpert
Copy link
Owner

I see, in your case id is a private field and not a property. Lombok.NET assumes the naming conventions for private fields, which would mean the field would need to be named _id. I am preparing the first stable release and will add checks to ensure that these cases work as well.

@CollinAlpert
Copy link
Owner

Fixed in ee788bb and 6af8710.

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