Skip to content
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

No Code completions anymore? #50

Open
JanecekPetr opened this issue Nov 21, 2023 · 4 comments
Open

No Code completions anymore? #50

JanecekPetr opened this issue Nov 21, 2023 · 4 comments

Comments

@JanecekPetr
Copy link

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
Copy link
Member

filiphr commented Nov 26, 2023

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
Copy link

yennor commented Jul 9, 2024

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

@filiphr
Copy link
Member

filiphr commented Jul 21, 2024

@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
Copy link

yennor commented Jul 22, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants