apache / apache/grails-intellij-plugin

Find usages of GSP view doesn't shows usage from action with same name

Open
#166 0 comments 0 reactions 0 assignees View on GitHub
bug imported-from-youtrack
Dominant language
Java
Stars
17
Forks
4
Avg merge
5d 15h
Merged PRs (30d)
4

Description

I have controller with action like this:
```
class User {
def show() {
[someText: 'ololo']
}
}
```
By a convention over configuration in Grails I created view in path
`grails-app/views/user/show.gsp`

All works fine, except that when I select this GSP file and trying to find usages (Alt+F7) IntelliJ says "No usages was found" that is not true

---

*Imported from [IDEA-128597](https://youtrack.jetbrains.com/issue/IDEA-128597) · 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 case with a Grails controller action named show and grails-app/views/user/show.gsp, then use Alt+F7 on the GSP file. Trace how usages are found for the view and its same-named action. Done means IntelliJ reports the controller action as a usage of the GSP view.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy, java
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.