0

I have a larger Grails project for which I have taken over development. I have used Grails before and one of the features that I found really nice-to-have is the auto-compilation/reloading when developing.

I haven't had to do anything special to make this work in the past, however for some reason it is not triggered for this project.

I do a simple "grails run-app" and modify a file when server is started - nothing! Any suggestions?

Windows 7, Grails 2.0.1, Java 1.6u35

IDE: Groovy Grails Tool Suite 3.1.0.M1 - Based on Eclipse Juno 4.2

Hoof
  • 1,738
  • 2
  • 17
  • 39

3 Answers3

0

Grails command line doesn't seem to properly handle spaces in directory names of GRAILS_HOME or HOME directory.

see: http://jira.grails.org/browse/GRAILS-7936

it has links to various other related issues.

This comment has a workaround: http://jira.grails.org/browse/GRAILS-7936?focusedCommentId=72170&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-72170 .

Lari Hotari
  • 5,190
  • 1
  • 36
  • 43
  • It certainly could be related, however the fix doesn't do it for me, also, the error described in the related issue, is slightly different than mine. It states that the console displays "Compiling xx source files..." but the server is newer "reloaded".. Mine doesn't even trigger the "Compiling .." part in the console... – Hoof Oct 04 '12 at 07:42
0

Are you using eventCompileStart in scripts/_Events.groovy? That was my problem, see GRAILS-8776 (please comment and vote on that issue if this is your problem so we can get it resolved!).

Commenting out that block cause auto-reloading to start working again for me.

Lyle
  • 3,724
  • 3
  • 25
  • 25
0

My solution:

Right click on project -> Properties -> Project Facets -> check Java and set it's correct version -> OK

Bingo!