apache / apache/grails-intellij-plugin

Grails: GSP template does not recognize variables from calling GSP page

Open
#133 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

Variables declared in a GSP page, which then calls a template, are not recognized in the template. For instance:

**list.gsp**
```





```
**_open.gsp**
```

```
In `_open.gsp`, IDEA displays the following:

_⚠️ attachment `screenshot.PNG` was not included in the export_

and of course does not recognize its members. Grails itself does recognize the variable.

Sorry if this is a dupe, I searched but could not find anything quite like this particular issue.

---

*1 attachment(s) referenced here (`screenshot.PNG`) are not part of the CSV export.*
*Imported from [IDEA-112326](https://youtrack.jetbrains.com/issue/IDEA-112326) · Type: Bug · Votes: 1*
*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 by reproducing the issue in IntelliJ with the list.gsp and _open.gsp examples from the report, checking how the GSP template inspection resolves variables passed from a calling page. Done means the plugin recognizes callInstanceList and its members inside _open.gsp without warnings, while Grails behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.