Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Eclipse can't generate equals and hashCode on a @Data annotated class #211
What steps will reproduce the problem?
What is the expected output? What do you see instead?
Instead I get an error that says "Overlapping text edits".
What version of the product are you using? On what operating system?
Known and extremely hard to solve issue. We'll get to this one last (there are some refactor scripts that are broken too, which have higher priority) as its a somewhat rare activity, and there's a trivial workaround: Remove the @ Data annotation, run the source generator script, re-add the @ Data annotation.
Actually, a new contributor (Jappe van der Hel) has been looking at some eclipse internals and he fixed this one by patching eclipse's ListRewriter. The commit itself is quite small though I'm sure the time spent digging through the internals was sizable. At any rate, yay! Should be in the version after 0.10.2.
Fixed in commit b43cd35.
Can all people affected by this give the latest edge build a whirl? Please report back here if formatting now works (or doesn't work!) You can find the edge release at: