apache / apache/grails-intellij-plugin

Grails' <asset:script> in a GSP page not treated the same as plain <script>

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

Plain \:
_⚠️ attachment `image.png` was not included in the export_

Note the green background on the :
_⚠️ attachment `image1.png` was not included in the export_

It is hard to identify HOW the 2 differ (apart from the irksome green background). Here's one way...
Layout behaves differently. Start from:
_⚠️ attachment `image2.png` was not included in the export_

Select the function and press CTRL-ALT-L to perform a relayout:
_⚠️ attachment `image3.png` was not included in the export_

Start from:
_⚠️ attachment `image4.png` was not included in the export_

Select the function and press CTRL-ALT-L to perform a relayout:
_⚠️ attachment `image5.png` was not included in the export_

NO change :-(

Relevant(?) settings:

_⚠️ attachment `image6.png` was not included in the export_{width=70%}
_⚠️ attachment `image7.png` was not included in the export_{width=70%}

I can't see a way to get IntelliJ to inject the 'javascript' langauge into the body of the \

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the formatting difference in IntelliJ IDEA using a GSP page with plain and <asset:script> tags, then inspect the plugin's handling of language injection and reformatting. Done means both forms format consistently without removing the asset: prefix, with JavaScript recognized inside the custom tag.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.