apache / apache/grails-intellij-plugin

createLink not being recognized in GSP templates

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

***What steps will reproduce the issue?***
1\. In either a script block or in the HTML portion of GSP, enter a valid 'createLink()' call
2\. The createLink function call remains greyed out, and autocomplete does not work for the parameters of the call, e.g. controller or action
3\. When you view the rendered page, however, the links are there and work fine.
***What is the expected result?***

This has worked in previous versions, but for the past few years, it sort of comes and goes per release. Not all GSP processing is broken, for example, tag libs and model members are being correctly suggested.

***What happens instead?***

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

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

---

*2 attachment(s) referenced here (`image.png`, `image1.png`) are not part of the CSV export.*
*Imported from [IDEA-348775](https://youtrack.jetbrains.com/issue/IDEA-348775) · 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

Start by reproducing the issue in a GSP template using createLink() in both a script block and the HTML portion, then compare completion behavior with tag libraries and model members. Done means createLink is recognized and its controller and action parameters are offered by autocomplete while rendered links continue to work.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.