Spaces in a file's path break automatic reloading
- Dominant language
- Groovy
- Stars
- 2.9k
- Forks
- 975
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 92
Description
This started in 2.4.4 according to [this post](http://peedeebeesblog.blogspot.com/2015/07/grails-auto-class-reloading-broken-but.html) and is [occurring for me](http://stackoverflow.com/a/33106560/446591) in 3.0.4.
I was running `grails run-app` from Windows command prompt.
To reproduce, create a project named `Grails Demo` and create a simple controller:
``` groovy
package grailsdemo
class HelloController {
def index() {
render "Hello World!"
}
}
```
Start the app and load the page. Change the text and save again. You'll see
> File ... changed, recompiling...
> in the console, but reloading the web page will still show the old text.
> (If I recall correctly you may also have to remove the space from the package names manually. Alternatively, according to the first linked post, creating a project named `GrailsDemo` under a folder such as `My Documents` should lead to the same result.)
Since this was evidently working in 2.4.3 I'd think this could be made to work again, but at a minimum Grails should throw a warning or error when attempting to create or run a project that has spaces in its path.
Contributor guide
Research direction
Start by reproducing the issue with `grails run-app` in a project or directory whose path contains spaces, then inspect the automatic reloading behavior and console output. The work is done when changing the controller text causes the reloaded page to show the new text, or when a clear warning or error is provided for unsupported paths.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy
- Domain
- developer-experience
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100