apache / apache/grails-intellij-plugin

Code validation warnings when Groovy GString is inside Script tag (HTML and GSP)

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

**Example**
```

$(function () {
if (${profile?.length() ?: 0} != 0) {
// do something
}
}

```
And code reformat breaks proper code style.

---

*Imported from [IDEA-105451](https://youtrack.jetbrains.com/issue/IDEA-105451) · 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 example in the issue in both HTML and GSP, checking the validation warnings and code reformatting around the Groovy GString inside the script tag. Done means the example no longer produces incorrect validation warnings and reformatting preserves the intended code style.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy, html, javascript
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.