-
-
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
Various code-generation problems with Eclipse 4.5 Mars #872
Comments
👤 uli.quill 🕗 Jul 08, 2015 at 12:11 UTC Both, the current stable and unstable versions of lombok (1.16.4 , 1.16.5) introduce various problems with Eclipse's code generation features. Many of Eclipse's code generation features, e.g. (but not limited to) "generate getters + setters", "extract interface", generate new class with "main"-method, run clean-up etc., do not work anymore. Instead of completing the operation, an "internal error" is raised. The exact error message (index and range) varies a bit, but it always comes down to this stacktrace: Caused by: java.lang.IndexOutOfBoundsException: Index: 8, Size: 8 What version of the product are you using? On what operating system? |
👤 bogusandre 🕗 Jul 09, 2015 at 06:45 UTC I also encounter internal errors on Eclipse 4.5 Mars 64bit using JDK 1.8.0_45 64bit, but on Linux. Restarting Eclipse seems to make them go away for some time. I get: Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench". With the following stacktrace: java.lang.LinkageError: lombok/launch/PatchFixesHider$PatchFixes |
👤 zilvar.tomas 🕗 Jul 09, 2015 at 13:45 UTC Indeed, Eclipse Mars (and consequently Spring Tool Suite 3.7.0-RELEASE) have multiple issues caused by this ArrayIndexOutOfBoundsException (the exact numbers differ, but the cause will most likely be the same). See https://issuetracker.springsource.com/browse/STS-4180 or https://issuetracker.springsource.com/browse/STS-4182 for use cases where Lombok causes these |
👤 pierre.poissinger 🕗 Jul 10, 2015 at 13:06 UTC Master branch at 75647ee seems to fix my Mars issues. |
👤 bogusandre 🕗 Jul 14, 2015 at 09:29 UTC @ pierre: Your link is broken. |
👤 pierre.poissinger 🕗 Jul 14, 2015 at 10:18 UTC That's was just the top hash of master I used... and looks like Google code tries to be too smart |
End of migration |
Before i start building me an ant dev environment, is there some kind of nightly builds? |
I tried to build a current lombok-master branch on 15. 7. and it has indeed resolved the issues. I can share the JAR on my Google Drive if anyone is interested, it's just a regular ant build of lombok-1.16.5-SNAPSHOT... https://drive.google.com/file/d/0B_fqmZtODWL9MnRZcGZ5NC00amM/view?usp=sharing |
@ZiziTheFirst your Jar seem to work for me as well. Phew. Thx for now. |
What's the roadmap for the upcoming 1.16.x release? The milestones don't seem to be up to date. Is there an ETA? |
@ZiziTheFirst your jar solves the problem. Thx! |
I just use ubuntu 14.04 64bit & eclipse mars jdk1.7,but lombok doesn't work at all. I put the @DaTa annotation on my own class and not see the accessors occurs. so as other annotations too. |
Lombok v1.16.6 has just been released and contains several Mars fixes. Can you please verify if this version still contains the problem? |
That's great news! I just gave it a spin and indeed I can see the code completion working again. Thanks! |
Lombok v 1.16.6 works fine in the problematic cases mentioned - JUnit4 test generation + Generate getters and setters do their job with no errors or warnings. Thanks for the fixes & release! |
Here's a problem. When I use Lombok v1.16.6 with ExtensionMethod, there's no content assist.
When I press "values.", there's no content assist. |
@riderarcher Can you please file a new bug report for your findings? |
I still have those Errors with 1.16.6. Also some other strange bugs... (Add throws to method, Moreunit create test is empty, create class wizard with main-class Checkbox results in error...). Eclipse-Mars: 4.5.1, Gradle-Dependency: compile 'org.projectlombok:lombok:1.16.6' |
We have the same problem with Eclipse-Mars: 4.5.0 with lombok 1.16.6 when we do save. We have some save on actions |
Same here- several wizards don't work. Eclipse-Mars: 4.5.1, Gradle-Dependency: compile 'org.projectlombok:lombok:1.16.6' |
Same issues here.
... and then the log isn't useful: Lombok 1.16.6 with Mars 4.5.1 |
Same as previous here Lombok 1.16.6 with Mars 4.5.1 |
I'm also still seeing this error with latest Lombok and latest Mars releases. Whenever I remove the Lombok annotations, Eclipse Save-actions works just fine without error. |
same as @michelbetancourt for me |
From another thread:
|
@rspilker - can you re-open this please. Sufficient users are having issues that it is still a problem. I think the difference between it working for some users and not for others is the "Format edited lines" toggle in the Java save actions. |
Problem still present with 1.16.8 |
i am also waiting a fix. Problem still present. |
The problem is still present with Eclipse Neon and Lombok 1.16.8. It appears to be caused by the "Format edited lines" save action. |
Yes, same here - confirming - "Format edited lines" is the cause. |
Problem still present with 1.16.10 on neon |
Problem still present with 1.16.10 on neon, should we open a new issue? |
Has been logged under #879 |
Migrated from Google Code (issue 837)
The text was updated successfully, but these errors were encountered: