apache / apache/grails-intellij-plugin
Grails - Cannot see injected method 'respond' in grails controllers and cannot add overloaded methods to Dynamic Members
- Dominant language
- Java
- Stars
- 17
- Forks
- 4
- Avg merge
- 5d 15h
- Merged PRs (30d)
- 4
Description
Relevant to [IDEA-238359](https://youtrack.jetbrains.com/issue/IDEA-238359), the method `respond` is not visible to grails controllers.
For now, I tried adding the `respond` method as a dynamic member of the controller classes. The problem now isn't possible to add overloaded methods to the dynamic members list. I tried editing the `dynamic.xml` file to add the overload and it did not work. Neither the dynamic member list or the code analysis recognizes the change I did to the `dynamic.xml` file.
I tried restarting and invalidating the cache hoping to refresh the dynamic member lookup. It did not work.
IU-213.6461.79, JRE 11.0.13+7-b1751.21x64 JetBrains s.r.o., OS Linux(amd64) v5.15.11-76051511-generic, screens 1920.0x1080.0, 1920.0x1080.0
---
*Imported from [IDEA-286990](https://youtrack.jetbrains.com/issue/IDEA-286990) · 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
Reproduce the missing `respond` method in a Grails controller and inspect how the plugin reads `dynamic.xml`, including whether overloaded dynamic members are recognized. Start with the dynamic member list and code analysis behavior described in the report. Done means the controller exposes `respond` and overloaded dynamic members are recognized without restarting or invalidating caches.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100