Resolution: Cannot Reproduce
Affects Version/s: 2.9.1.RELEASE
Fix Version/s: None
Environment:I am on Mac 10.7.3.
I have both groovy and grails installed on my mac commandline environment. I can create/run grails without problem.
I installed latest sts 2.9.1 and installed groovy/grails in STS too. It worked. I was able to create create grails project and run it. I also imported a project created from commandline and it worked too.
Then I imported the root directory of the project and setup git for the project. Then I noticed grails/groovy disappeared. The project was able to be compiled. But I cannot run it as grails app. The run grails app option disappeared. Groovy code also has problem. println and def are not recognized so treated as undefined.
Here are some dialogs on grails user group:
Here are more information:
The problem is: grails wizard is not listed anywhere when I goto File->new, grails is not listed under Other either. So I cannot create a grails project on STS.
For existing project, i can still compile without error. But when I open groovy code, it shows
println, def as undefined.
Grails and groovy are installed for sure.
Open the STS 'About SpringSource Toolsuite' dialog. Click on the
springsource icon and a list of installed features will appear. Is
grails listed there as 'com.springsource.sts.grails' - if so what
Open the error log (Window>ShowView>ErrorLog) - anything in there to
explain why it has been de-activated?
Worth raising a jira at the STS issue tracker to pursue this:
Thanks. On about sts features, version 184.108.40.206203221000-release displayed for com.springsource.sts.grails
From windows->show view-> I didn't see error log
I have both groovy and grails installed on environment and sts. I have older app created from command line and imported one of them into Sts. The imported one was also compiled.
Does this provide any clue ?
> Thanks. On about sts features, version 220.127.116.11203221000-release displayed for com.springsource.sts.grails
Ok, so you do definetly have the grails stuff installed.
> From windows->show view-> I didn't see error log
That's strange, I just double checked the path and it should definetly
be there. The Error Log tracks all the errors that happen in the
background whilst using eclipse.
Another way to see some of that information is to look in your
workspace .metadata/.log file - that may contain a clue. I'd still
recommend raising an STS jira so we can track it. (rather than
attaching your full metadata log to a mailing list post).
> I have both groovy and grails installed on environment and sts. I have older app created from command line and imported one of them into Sts. The imported one was also compiled.
The description of your problem, that you have the Grails tools
installed but cannot create a new Grails project (File>New>Grails
Project) sounds familiar but I can't immediately find a related jira
in our issue tracker.
Do you have the grails perspective (Window>Open Perspective>Other...>Grails)?
I'd still say raise a jira and we can progress it there.