-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Eclipse assign parameter not in class body #295
Comments
👤 middelkoop 🕗 Jun 21, 2011 at 11:25 UTC What steps will reproduce the problem?
What is the expected output? What do you see instead? What version of the product are you using? On what operating system? Please provide any additional information below. |
👤 reinierz 🕗 Jun 21, 2011 at 14:15 UTC A proper fix (vs the patchwork solution we applied for 155) for all these errors is rather complicated and involves tracking 2 positions for any given generated lombok node - where the code would have appeared if you typed it by hand, and the source annotation that caused it to be generated in the first place. Then, we should patch 'jump to declaration' and friends to use the generating node, but set the position on the node itself to where it would have appeared. Right now we don't do this, so if we fix this, then 'go to declaration' would be broken and vice versa. |
👤 Jappe.vanderHel 🕗 Nov 29, 2011 at 19:32 UTC Can't reproduce this problem in the current edge release |
👤 middelkoop 🕗 Nov 30, 2011 at 08:41 UTC I still can reproduce this with Eclipse Indigo SR 1 and Lombok 0.10.4. Create this class: @ Data
} Right-click on parameter1 and choose "Assign paramter to new field". The field is created above the @ Data annotation which is incorrect. |
👤 Jappe.vanderHel 🕗 Dec 01, 2011 at 07:42 UTC Sorry, I should have provided the download link to clarify which edge-release I meant. https://projectlombok.org/download-edge.html However I do see that the parameter has a generic type, maybe that causes the problem. I'm working with Eclipse Indigo SR 1 as well. |
👤 Jappe.vanderHel 🕗 Dec 01, 2011 at 19:57 UTC Tried your example with lombok 0.10.5 2011-11-28 18:49 UTC on Eclipse Indigo SP1, and it works for me. It should be fixed by the same bugfix that fixed Issue #124 |
👤 r.spilker 🕗 Dec 19, 2011 at 20:31 UTC Fixed in de1bc35. Will be present in 0.10.6. |
👤 r.spilker 🕗 Dec 19, 2011 at 22:04 UTC |
End of migration |
Migrated from Google Code (issue 222)
The text was updated successfully, but these errors were encountered: