jdaugherty opened a new issue, #247:
URL: https://github.com/apache/grails-intellij-plugin/issues/247

   Hi!
   
   A few details:
   I'm using grails 3 (3.0.14) and IDEA 15.0.3. Source code is, for example:
   ```
   class BootStrap {
       def cardService
       def init = { servletContext ->
           cardService.importAllCards()
       }
   }
   ```
   A long time ago in a galaxy far far away, IDEA was handling that perfectly. 
I used grails 2 and IDEA 14 during these happy days. What do I mean by saying 
"perfectly"? Well, I could hover mouse to the "cardService" word and click 
Ctrl, and then I would see it's "CardService" class. I also seen a green leaf 
near the "def cardService". Now I see "private def cardService" and "Cannot 
infer type". I was able to Ctrl+Click the "importAllCards" and see the source 
code of that method. Right now it's impossible, too.
   
   It works fairly well when I use
   ```
   class BootStrap {
       @Autowired
       CardService cardService
       def init = { servletContext ->
           cardService.importAllCards()
       }
   }
   ```
   But I just think Grails support can be improved.
   Controllers and services share the same behaviour.
   
   ---
   
   *Imported from 
[IDEA-151571](https://youtrack.jetbrains.com/issue/IDEA-151571) · Type: Bug · 
Votes: 0*
   *Comments, attachments, dates and reporter are not part of the export — 
follow the link above for the full history.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to