apache / apache/grails-intellij-plugin
r:script tag behaves differently than script tag in GSPs
- Dominant language
- Java
- Stars
- 17
- Forks
- 4
- Avg merge
- 5d 15h
- Merged PRs (30d)
- 4
Description
In a a GSP page of a Grails application the following is accepted by IDEA without error:
```
function test${replace}() {
}
```
However, the following:
```
function test${replace}() {
}
```
leads to an error in the UI as shown in the attached screenshot. Apparently the parser does not recognize that ${replace} will be replaced by the GSP.
---
*Imported from [IDEA-86524](https://youtrack.jetbrains.com/issue/IDEA-86524) · 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
Reproduce the issue in a Grails GSP page using the two script-tag forms shown in the report, then compare how the IntelliJ IDEA parser handles their ${replace} expressions. Done means the r:script form is accepted without the reported UI error, matching the regular script tag.
Written by the indexing model from the issue text.
Assessment
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100