apache / apache/grails-intellij-plugin

Grails 3.x project doesn't solve spring injection of Grails service classes in controllers, autocomplete doesn't work

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

As you can see in the screenshot, the spring injection icon is not present. This only affects controllers. In services the injection work as supposed to.

Controllers do not support syntax highlighting, autocomplete of any classes and spring injection. Can you help me with this ? It is very frustrating.

P.S. Also tried to create a new controller. The spring injection works until Idea is closed. Autocomplete works anywhere in the controller class but not in groovy methods or closures.

Tried in latest 2016.2.2 EAP build and 2016.2.1.

Also tried this [IDEA-154252](https://youtrack.jetbrains.com/issue/IDEA-154252) workaround with gradle, nothing works.

---

*Imported from [IDEA-159460](https://youtrack.jetbrains.com/issue/IDEA-159460) · 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 problem in a Grails 3.x project using the affected IntelliJ IDEA versions, comparing service classes with controllers and testing a newly created controller. Check whether syntax highlighting, autocomplete, and Spring injection persist after restarting IDEA and work inside methods and closures; done means these controller features work consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy, spring
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.