apache / apache/grails-intellij-plugin

IDEA does not mark grails plugin sources roots

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

When I import a brand new grails plugin project into IDEA, IDEA lets me pick a Grails SDK to use but it does not mark the sources directories correctly.

Grails 2.3.11, IDEA 14.0.3
Steps to reproduce:
1. On the command line, type 'grails create-plugin xyz'
2. Open IDEA and import the xyz plugin directory.
a. Choose the option to create the project from existing sources.
b. Set Grails 2.3.11 as the Grails SDK version
c. Leave all other import settings at their defaults

When the project is loaded in IDEA, the following directories are not marked as sources roots:
src/groovy
src/java
IDEA should detect that this is a grails plugin project and mark these directories automatically.

Workaround:
Right-click on the folder (src/groovy) after the project is loaded and choose Mark Directory As > Sources Root

---

*Imported from [IDEA-137270](https://youtrack.jetbrains.com/issue/IDEA-137270) · 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 import using the listed Grails 2.3.11 steps and inspect the project-import handling for Grails plugins. Check why src/groovy and src/java are not assigned as source roots; done means both directories are marked automatically after import.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.