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
Add support for @SuperBuilder #513
Comments
Would love to see this |
I was ecstatic when @SuperBuilder was released, but it's largely unusable without IDE integration. |
This would be very helpful for us. |
I'd be glad to help contribute this, but I'd probably need some direction as I've never made an IntelliJ plugin. @mplushnikov are you or anyone else aware of anyone else working on this? |
i can help on that, but need a piece of explanation where to start. |
Is this being worked on by anyone? Or do we have to wait for the annotation to make it out of experimental? |
@sluongng I don't believe so. If you're familiar with the IntelliJ plugin ecosystem, I say go for it. I had started to very briefly during my company's hackathon but switched gears early on as I realized I have a lot more to grok looking at the existing |
Support for @SuperBuilder please! |
My team also need @SuperBuilder Support |
Yes please support for |
+1 |
+1 ! |
+1 |
1 similar comment
+1 |
+2 (from paired programmers at major enterprise) |
+10086 |
We are eagerly waiting for support of superbuilder |
You are more than welcome to contribute with a PR for this |
+1 |
hope it will be implemented soon |
@alexejk |
i will check on weekend |
Yes that would be awesome as now in a professional environment creating test data for the models is a pain using just the @builder because most probably these models extend from a superclass. |
+1 |
2 similar comments
+1 |
+1 |
Hey guys, when will the new release come? |
https://github.com/mplushnikov/lombok-intellij-plugin/releases/tag/0.27_superbuilder_alpha |
Hi, I tried to install plug in but I got error: "Plugin 'Lombok' is incompatible with this installation" |
it's only supported by IntelliJ 2019.2+ |
hi,
now, i'm trying to use the builder of class A in a scenario like this:
the error i get is: can you please help me with this? Version information: |
@cosmin-rezmerita Interesting usecase! I think you can't use a lambda expression for a functional interface, if the method in the functional interface has type parameters. See section §15.27.3 in JLS8: https://docs.oracle.com/javase/specs/jls/se8/html/jls-15.html#jls-15.27.3 But your code should compile if your add explicit cast to the map method: (.map(item -> (A) A.builder().field1(value).build())). |
@mplushnikov thank you! explicit cast works fine.
|
@cosmin-rezmerita Yes, you are right. Using Builders-methods in the map-method returns generic wildcard type like ABuilder<?> and the right type cann't be automatically calculated. If you cast it/or use just constructor, its clear for the comiler, which type shlould be used. |
Thank you so much @mplushnikov |
Hi |
Short description
Please add support for @SuperBuilder annotation. It's a long-awaited feature and now, with Lombok 1.18.2, it has been released.
Expected behavior
Support for @SuperBuilder annotation
Version information
Steps to reproduce
Add Lombok 1.18.2 to the project
The text was updated successfully, but these errors were encountered: