apache / apache/grails-intellij-plugin
Grails 3 Plugin classes not resolved in main Grails application - import not working (red in IDE). Works fine in Grails/Gradle command line.
- Dominant language
- Java
- Stars
- 17
- Forks
- 4
- Avg merge
- 5d 15h
- Merged PRs (30d)
- 4
Description
First, have to say IntelliJ 15 is awesome! Issue: Using Grails Version: 3.1.0.RC1 and using either "ideaIU-15.0.2-custom-jdk-bundled.dmg" or "ideaIU-143.1559.1-custom-jdk-bundled.dmg", if you create a multi-project with a plugin and a main Grails app, the IDE fails to resolve classes in the plug-in imported by the main app. Closely following a demo by Graeme Rocher ([http://www.infoq.com/presentations/grails-3-x-inside](http://www.infoq.com/presentations/grails-3-x-inside)) I created a groovy trait in the plugin as mail.sender.MailSender and under the main Grails app "myapp", in a Controller, tried to import mail.sender.MailSender. The import won't resolve: "Groovyc unable to resolve class mail.sender.MailSender". The import is shown as red in the source page. I will attach the simple project (with build dir removed). Sorry if I missed something obvious. In the Grails 3 command shell, and with "gradle test", it resolves fine and tests pass; not so in the IntelliJ IDE. Thanks!
---
*Imported from [IDEA-149830](https://youtrack.jetbrains.com/issue/IDEA-149830) · Type: Bug · Votes: 2*
*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 multi-project setup described for Grails 3.1.0.RC1 in IntelliJ IDEA 15, with a plugin defining mail.sender.MailSender and the main app importing it. Compare IDE resolution with the working Grails command shell and gradle test; done means the import is no longer red and Groovyc resolves the plugin class in the IDE.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100