Larry G
Larry G

Reputation: 45

IntelliJ Grails project not seeing /src/main/groovy

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

Answers (1)

Jeff Scott Brown
Jeff Scott Brown

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

Related Questions