mapstruct / mapstruct-eclipse

An Eclipse plug-in for working with MapStruct
Other
13 stars 8 forks source link

No Code completions anymore? #50

Open JanecekPetr opened 9 months ago

JanecekPetr commented 9 months ago

I'm hesitant to post this as issues like this tend to be a misconfig somewhere...

I'm no longer getting any code completions at all from MapStruct. I initially thought this was because we used records almost exclusively everywhere, but now I tried to create a simple POJO and that offers no code completions for @Mapping either.

Eclipse 2023-09, MapStruct Tools 0.1.0.201701192129. The error log seems clear. Enabling or disabling "Enable non-blocking completions" makes no difference.

Example code:

@Mapper
public interface AhaMapper {
    @Mapping(target = "name", source = "name2")
    Aha fromDto2(Aha2 ahaaa);
}

public static class Aha {
    private final String name;

    public Aha(String name) {
        this.name = name;
    }

    public String getName() { return name; }
}

public static class Aha2 {
    private final String name2;

    public Aha2(String name2) {
        this.name2 = name2;
    }

    public String getName2() { return name2; }
}
filiphr commented 9 months ago

Seems like we need to dust this off a bit. This seems related to #49. Will try to find some time to fix this. I personally don't use Eclipse, so it has slipped a bit

yennor commented 1 month ago

@filiphr New year, new luck: I guess you''re too busy? ;-)

filiphr commented 1 month ago

@yennor the biggest problem is that I'm not an Eclipse user. Finding the time to set everything up to test this out in Eclipse is a bit difficult.

If you are interested in helping out in this area, it would be more than appreciated.

yennor commented 1 month ago

Thanks for your reply. At one point I was thinking about investing the time to fix some of the problems I've got with eclipse and the plugins myself. But after even more problem appeared this month, I've decided to better invest the time to find another IDE. :-( If anybody implements it, I'm willing to test changes to this plugin in Eclipse.