Reputation: 436
GGTS "Create Service" did not work for me. So I ran "grails create-service" from the command line and this worked. This has created the service class correctly, but now I can't see it under the Grails project in GGTS (Groovy/Grails Tool Suite).
I have attempted the following actions:
Also, I can see controllers and domain under Project Explorer but not services. I can also use the CTRL Shift R shortcut to access the class.
How do I make new classes appear in my GGTS project?
Upvotes: 0
Views: 1334
Reputation: 3515
I had a similar issue, but I was missing the "domain" folder in my project. The classes were available on the file system but not showing up in GGTS Project Explorer. (Using GGTS 3.5.1)
To fix it: I opened the project properties, selected the "Java Build Path"; under the "Source" option I clicked the "Add Folder..." button. Next a "Source Folder Selection" dialog opened and I could see the "domain" folder was unselected. I selected it, clicked "Ok" and click "Ok" again on the "Properties" dialog.
Boom! Now I have my "domain" folder back.
Hope this helps!
Upvotes: 2
Reputation: 5540
Maybe your project config is messed. Remove the project from GGTS.
Go into project folder and run the command
myproject> grails clean
myproject> grails integrate-with --eclipse
Read the project in GGTS using "Import existing project"
Upvotes: -1