apache / apache/grails-intellij-plugin

Grails: when adding a dynamic property to a gsp file, class' package prefix is not inserted to "Property type" field on Code Completion

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

*Build 110.502*

Consider there is a domain class **foo.Book** and its views.
Open show.gsp file.
Alt+Enter on unresolved **bookInstance** -> Add dynamic property.
Type **Boo** in **Property type** field, invoke Completion, choose **Book (foo)**.

Result: no package prefix is inserted; "Type 'Book' is not resolved" message is shown.

Note 1: when invoking Code Completion for some library type, package prefix is not inserted either, but the type is resolved.
Note 2: when adding dynamic properties from groovy files, package prefix is inserted on Code Completion.

---

*Imported from [IDEA-77367](https://youtrack.jetbrains.com/issue/IDEA-77367) · 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 in show.gsp using the unresolved bookInstance and the Add dynamic property action, then inspect the code-completion path for the Property type field. Verify completion with foo.Book inserts the package prefix and resolves the type, while preserving the existing behavior for library types and dynamic properties from Groovy files.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
developer-experience
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.