apache / apache/grails-intellij-plugin

Static resources in src/main/webapp are not correctly resolved by GSP editor

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

The <g:resource> in IntelliJ Idea GSP editor does not correctly resolve the static resources located in src/main/webapp while at runtime Grails 3 correctly load these resources.
The editor shows a red line at the <g:resource> line and shows a balloon with the message:

Cannot resolve directory '...'
Cannot resolve file '...'

To reproduce the issue open the views/test/index.gsp in the attached example application.

---

*Imported from [IDEA-166414](https://youtrack.jetbrains.com/issue/IDEA-166414) · 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

Open views/test/index.gsp in the attached example application and reproduce the IntelliJ GSP editor errors for the g:resource references. Compare the editor's resolution of resources under src/main/webapp with the runtime behavior; done when those static resources resolve without red-line or cannot-resolve-directory/file errors.

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
63/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.