Reputation: 45
Versions
IntelliJ 2021.1.2
Grails 4.0.10
JVM 11.0.2
Grails works and can see the source in /src/main/groovy just fine but IntelliJ can not. I see the following error "Cannot resolve symbol 'SamConfig'". SamConfig is a simple groovy class for holding configuration.
The src/main folder is set up as a SourceFolder in the parent module of the project. The grails-app is a submodule called main. Please let me know if I can provide any more details to help solve this issue. Thanks
Larry
Upvotes: 1
Views: 151
Reputation: 27255
The src/main folder is set up as a SourceFolder in the parent module of the project.
You should set src/main/groovy
/ to be a source root, not src/main/
.
Upvotes: 0