-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Micronaut 4 Groovy projects fail Intellij compilation #9915
Comments
Reproducer:
Then
Results with
The problem is that |
does it work when building with gradle? you should let intellij delegate build tasks to gradle |
Please, configure your IDE according to USING INTELLIJ IDEA TO DEVELOP MICRONAUT APPLICATIONS and let us know if the issue is still present. |
Looks like a bug in the IntelliJ compiler or the Groovy compiler. None of the methods we use is supposted to create an additional class. |
Got a standalone script (just requires Groovy and Bash to be installed) to reproduce the issue
|
@dstepanov If I revert this PR #9232 the compilation passes, but I am not sure what is causing the problem |
That is fixing some other stuff |
Can you create a test inside the core? |
@dstepanov Reproducer here: #9925 (this took more effort that it may seem from looking at it 😉) |
Hey, is there any way of progressing this? As far as I can see it's still an issue in the latest Micronaut release |
Expected Behavior
All information on https://youtrack.jetbrains.com/issue/IDEA-331174 as I initially believed this to be an Intellij-specific issue.
Example project included in this ticket:
groovy-compile-bug.zip
Actual Behaviour
Compilation fails when building Micronaut 4 groovy projects using Intellij's compiler, that have annotations that are defined in Groovy files.
Steps To Reproduce
All information on https://youtrack.jetbrains.com/issue/IDEA-331174 as I initially believed this to be an Intellij-specific issue.
They state that the problem is caused by the library
io.micronaut:micronaut-inject-groovy
starting from version 4.0.0, so raising it here for further investigation.Environment Information
Operating System: MacOS Ventura, Version 13.4
JDK Version: Coretto 17
Example Application
see attached
Version
4.0.3
The text was updated successfully, but these errors were encountered: