apache / apache/grails-intellij-plugin
Methods provided by TraitInjector are not detected by Idea when it compiles from gradle subproject
- Dominant language
- Java
- Stars
- 17
- Forks
- 4
- Avg merge
- 5d 15h
- Merged PRs (30d)
- 4
Description
I created small test project to reproduce this issue - demo.zip:
- There is subproject named `commons` which has one trait annotated with `@Enhances`.
- Trait has one method `Optional maybeGet(Serializable)`.
- Subproject added as compile dependency to main project - `compile project(':commons')`
Open `PersonSpec`. You'll see that `Person.maybeGet` highlighted with unresolved symbol error but if you run tests they will pass.
---
*Imported from [IDEA-186453](https://youtrack.jetbrains.com/issue/IDEA-186453) · Type: Bug · Votes: 0*
*Comments, attachments, dates and reporter are not part of the export — follow the link above for the full history.*
Contributor guide
No contributing guide indexed for this repository
Research direction
Open demo.zip and reproduce the unresolved Person.maybeGet reference in PersonSpec while the tests pass. Inspect the commons subproject's @Enhances trait and the Gradle compile dependency, then trace how the plugin exposes TraitInjector methods to IntelliJ. Done means Person.maybeGet is resolved without breaking the passing tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy, java
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100