apache / apache/grails-intellij-plugin
Grails: incorrect resolve variable 'it' in GSP
- Dominant language
- Java
- Stars
- 17
- Forks
- 4
- Avg merge
- 5d 15h
- Merged PRs (30d)
- 4
Description
In following GSP all references should be resolve.
<% def it = new Object(); %>
<g:each in="['a', 'b', 'c']">
${it.substring(1)}
<g:findAll in="[1, 2,3,4,5]" expr="it.byteValue() == 0" />
</g:each>
---
*Imported from [IDEA-60911](https://youtrack.jetbrains.com/issue/IDEA-60911) · 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
Start by reproducing the shown GSP example in the Grails IntelliJ plugin and trace how GSP references are resolved inside the nested g:each and g:findAll tags. Done means all references to the local it variable resolve correctly, including it.substring(1) and it.byteValue().
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 64/100