-
-
Notifications
You must be signed in to change notification settings - Fork 947
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
Intellij support #520
Comments
Great, thanks for opening up that issue in the JetBrains tracker. I've placed my vote. 👍 We already have an Eclipse plugin in the works (with code-completion for source/target, more features to come). In case JetBrains doesn't create such a plugin, maybe you'd like to bootstrap one yourself here with us? |
We see an issue with Tomcat plugin, it packages all generated resources correctly in right package in WAR but when doing a local debug, these generated sources are not available. This is only with IntelliJ. Is anybody aware of this issue? The obvious hack is to add the generated sources class to the plugin classpath. |
After migrating to the latest versions of lombok & mapstruct, intellij throws duplicate class error. Here are the steps to reproduce the error.
You would get a duplicate class error. This is because intellij is creating its own version of generated source under This is causing Intellij to find another class with the same name under the same package when it tries to compile, so it bailing out saying there is a duplicate class. Temp work around for this problem is to do a Now if you try to debug, intellij will continue to generate the source in its default location & since we dint run |
@thekalinga this looks like a problem with your IntelliJ setup (or a bug in IntelliJ). Check your settings under For me with Maven and the IntelliJ 2017.1 EAP (171.3780.15) it works. |
I'm using |
I have started working on a plugin for IntelliJ. mapstruct-idea is the name of the repository that you can watch and create issues for. The plugin is not yet published as it is WIP. Currently there is only support for autocompletion for |
@filiphr what should the settings under do you also need to have builds delegated to Gradle in |
@gimoh I don't understand what you mean. If you are talking about IntelliJ invoking the annotation processing with Gradle, then yes you need to delegate the build to Gradle in order to do that. We are planning to update the website to put some more information about IntelliJ and Gradle integration. Have a look at mapstruct/mapstruct.org#63 |
@filiphr OK, I get it now, I thought that if you enable annotation processing in IntelliJ ( If you are delegating to Gradle, does annotation processing still need to be enabled in IntelliJ? |
@gimoh if you are delegating to Gradle, the enabling of annotation processing in IntelliJ does nothing as IntelliJ will use Gradle to compile your code. Enabling annotation processing in IntelliJ can theoretically work if you don't use the |
I am happy finally close this issue 😄. We have released our plugin the the Jetbrains repository. Here is a link to our announcement and here is the link to the plugin. Give it a go and feel free to give us feedback and suggestions into its own repository at mapstruct-idea |
it is awesome! |
Would be nice if there would also be IntelliJ IDEA support.
JetBrains issue is IDEA-138364 add some votes then it might be picked up.
The text was updated successfully, but these errors were encountered: