Search code examples
grailssts-springsourcetoolsuiteperspective

STS - Grails perspective broken. Can not see services


I am using STS for grails development and i don't know what I did, (most probably dragged a folder somewhere by mistake) but now I can't see my services in the perspective. They do exists under grails-app/services but I guess something is not pointing there anymore?

and yes I tried restarting STS, reloading the project to STS.

Any idea on how I can fix this?

EDIT:

You are right here is the perspective view with no services shown.

sts grails perspective without services

Thanks a lot, Bilsay


Solution

  • I have not seen this problem before. If the answer above does not help, I would recommend the following;

    1. Open the error log. Do you see any relevant errors? If so, then please add them to your question.
    2. Try creating a new grails project. Do you see the service folder there?
    3. Try creating a new workspace in a new location. Import the grails project. Do you now see the service class?
    4. If all else fails, I'd recommend raising a bug report on http://issuetracker.springsource.com/browse/STS Try to attach a failing project.

    EDIT

    I was able to reproduce something similar to your problem. I think what happened is that your service folder was somehow removed from the Eclipse classpath. You can go to the package explorer. Find the grails-app/services folder. Right-click -> Build path -> Add to build path. Then, it should appear in the project explorer.