apache / apache/grails-intellij-plugin

GSP Object Type detection breaks when rendering grails template with g.render(...)

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

When rendering a template in a controller like so:

def dropoffDeliveryPanelPartial = g.render(template: "/rms/projects/contract/logistics/dropoffDeliveryPanel",
model: [currentUser: currentUser, vendorDropoffDelivery: vendorDropoffDelivery])

The ability for the editor to identify the type of the object being manipulated in the GSP is broken. In fact, it doesn't think the variable is being presented to the gsp view at all (by showing it as underlined).

---

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

Reproduce the issue with the controller call to g.render(...) and the GSP template at /rms/projects/contract/logistics/dropoffDeliveryPanel. Start by tracing how the plugin detects object types passed through the render model, then verify that vendorDropoffDelivery and currentUser are recognized in the rendered GSP instead of being underlined.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.