-
-
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
[BUG] Organize imports remove val import #2972
Comments
I recall that when I wrote the original val support stuff I turned |
Might be a related issue: Given following snipped ... // choosing LocalDateTime is just exemplary, any other type would work as well
public static LocalDateTime now() {
val now = LocalDateTime.now();
// now. <-- trigger code completion
return now;
} Eclipse (2021-09) fails to fully populate code completion suggestions, that is, in the above case it believes I'm using my own lombok build from the 'master' with latest commit ba68962 Side Note: I'm contributer to an ASF project with 160k+ lines of code and we use lombok as much as we can. Apart from code-completion and organize-imports, I'm happy to say that the new snapshot version works pretty solid. |
@rzwitserloot thats exatly what I did too but I used the general @andi-huber I noticed that too while fixing this issue and still search for the reason. The resolved type is |
Thanks @Rawi01, much appreciated! |
@andi-huber Can you test if my changes fix the problem? |
At a brief glance, looks good to me, thanks! Let me use this version for a day and report back how it goes. Found a different issue though, (rather minor for me): @Log4j2
public class AnyClass {
void action() {
// log. <-- trigger code completion
}
} Eclipse (2021-09) fails to fully populate code completion suggestions. |
@andi-huber interesting. This sounds sufficiently unrelated to this issue that I think it'll be easier to track the |
I am counting 9k+ occurrences of the keyword Great stuff! Just for reference, and this is rather minor to me ... As we build our project with a CI pipeline utilizing Maven, I can only test the latest lombok-edge snapshot there. I was seeing some corner cases, where javac would fail with
These very briefly are: |
Describe the bug
Using the "Organize imports" command in eclipse removes the
lombok.val
import.To Reproduce
val
Expected behavior
Eclipse does not remove the used import.
Version info (please complete the following information):
Additional context
I have already started to work on this
The text was updated successfully, but these errors were encountered: