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

Lombok plugin do not generate anymore accessor methods in IntelliJ 13.1 #43

Closed
bric3 opened this issue Mar 25, 2014 · 4 comments
Closed
Assignees
Labels
Milestone

Comments

@bric3
Copy link

bric3 commented Mar 25, 2014

Lombok plugin version 0.8.4 (at the time of this report it's the last one on the repo)
IntelliJ IDEA 13.1.1

Methods like accessors are not seen by IntelliJ.

screenshot 2014-03-25 at 15 25 45

Nothing is reported in the Event Log. And I've seen nothing in the IntelliJ Log files.

@mplushnikov mplushnikov added this to the 0.8.4 milestone Mar 30, 2014
@mplushnikov
Copy link
Owner

Please verify with new plugin version (0.8.4)

@mplushnikov mplushnikov self-assigned this Mar 30, 2014
@bric3
Copy link
Author

bric3 commented May 9, 2014

Sorry to be that late, but yeah the new versions of the plugin seems to fix the issue.

@bric3
Copy link
Author

bric3 commented May 15, 2014

Hey, I got too hasty,

This issue still happen for me and colleagues with IntelliJ 13.1.2 and Lombok plugin 0.8.6, which of course is forbidding us tu use completion and stuff like that of object annotated by Lombok.

screenshot 2014-05-15 at 12 09 59

The plugin install show I've tried to invalidate caches, without success, rebuilding, etc.. The plugin config pane reports the configuration is OK.

Unfortunately nothing about lombok plugin shows up in the idea.log, is there a way to enable logs or help you to debug that issue.

@bric3 bric3 changed the title Lombok plugin do not find anymore generated methods in IntelliJ 13.1 Lombok plugin do not generate anymore accessor methods in IntelliJ 13.1 Aug 7, 2014
@bric3
Copy link
Author

bric3 commented Aug 7, 2014

Hi, I found out that this error usually happens on types that are annotated by other JPA annotations. And I somehow believe (while narrowing it down) that when the query field of @NamedQuery is split in the following way intellij / lombok plugin fails to generate methods. (Of course JPA facets, language injection and plugins linking the DB to the JPA entity are enabled)

Putting the string on the same line made it work.

@Entity
@Table(name = "CONTACT")
@IdClass(ContactEntityPK.class)
@NamedQueries({
        @NamedQuery(
                name = QUERY_FIND_LATEST_BY_USER_AND_DATE,
                query = "SELECT c " +
                        "FROM CEntity c " +
                        "WHERE c.addressBookId = :" + QUERY_PARAM_SERVICE_ID + " " +
                        "   AND c.deletionDate > :" + QUERY_PARAM_SINCE + " " +
                        "ORDER BY c.deletionDate ASC"
        )
})
@Getter
@Setter
public class CEntity {
   ...
}

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

No branches or pull requests

2 participants