apache / apache/grails-intellij-plugin

IDE freeze when pasting code in Grails / GSP: some block intersects with whitespace / child block start is less than parent block start

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

Description

```
2025-05-15 16:23:52,474 [ 466571] SEVERE - #c.i.f.RangesAssert - child block start is less than parent block start in #GSP #formatter
Range: [0,12934], text fragment: [0,12934]
2025-05-15 16:23:52,482 [ 466579] SEVERE - #c.i.f.RangesAssert - some block intersects with whitespace in #GSP #formatter
Range: [12938,0], text fragment: [0,12938]
```
IU-251.25410.129, JRE 21.0.6+9-b895.109x64 JetBrains s.r.o., OS Windows 11(amd64) v10.0 , screens 2560x1080 (100%), 1920x1080 (100%)
Auto-uploaded logs URL (accessible to JetBrains employees only):

When attempting to paste a code block the editor locks up and I need to use Windows Task Manager to kill IntelliJ. I'm going to try to attach a video showing this. It happens every time, even after multiple reboots.

---

*Imported from [IDEA-372811](https://youtrack.jetbrains.com/issue/IDEA-372811) · Type: Performance Problem · 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 freeze by pasting a code block in a Grails/GSP editor using the reported IntelliJ IDEA and Windows setup. Start with the GSP formatter errors in the issue, especially the invalid range and whitespace intersection; done means pasting no longer locks the editor and the reported range errors are resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy, java
Domain
devtools
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.