apache / apache/grails-intellij-plugin
Idea doesn't recognize beans under src/groovy in grails project
- Dominant language
- Java
- Stars
- 17
- Forks
- 4
- Avg merge
- 5d 15h
- Merged PRs (30d)
- 4
Description
Got Grails project.
I have spring beans defined in resources.xml under grails-app/conf/resources/
In this file I have a web service defined
**resources.xml**
```
.......
```
This bean references another bean with name 'alrt' defined under src/groovy
**alrt bean implementation**
```
package mydomain.web.source.alerting
@Component("alrt")
class AlertingServiceImpl implements AlertingService {
.........
}
```
In runtime everything works fine
---
*Imported from [IDEA-98124](https://youtrack.jetbrains.com/issue/IDEA-98124) · Type: Bug · Votes: 2*
*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
Start with the resources.xml example and the src/groovy AlertingServiceImpl bean annotated as @Component("alrt"); inspect how the plugin recognizes Grails beans referenced from XML. Done when #alrt is no longer highlighted as unresolved and autocompletion offers the bean while the existing runtime behavior remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy, spring
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100