apache / apache/grails-intellij-plugin

Grails 2.5.6: Auto-reload not working when project resides in a folder with spaces in path

Open
#390 0 comments 0 reactions 0 assignees View on GitHub
bug imported-from-youtrack
Dominant language
Java
Stars
17
Forks
4
Avg merge
5d 15h
Merged PRs (30d)
4

Description

If I am editting a grails application on my local machine while the app is running, and I make a change to the code, then 'save all', the change is recognised by the running app and all works well.

However, if the application resides on my local machine in a path that includes spaces - i.e. `c:\my files\grailsApplication` then if I make changes to the app while its running, the changes don't get recognised and I have to restart the application.

Is this a know bug? Is there a fix?

I use the ‘out of the box’ Grails run config, so the command line is run-app.

I am seeing this problem when running version 2023.2.5

## Steps to reproduce

I have attached a zip file with a very basic grails application. If I save this on my local disk at c:\grails\TestGrailsApp it runs fine, and I can click the mycontroller link on the home page and it runs the default action, which is to display the string ‘Displayme’.

If I change the string (‘Displayme’) in my mycontroller, and then save all, and refresh the mycontroller page, the change I made to the controller string is reflected in the display. I.e. the app has reloaded ok.

But if I copy this app to c:\Grails Test\TestGrailsapp and do the same test, the display doesn’t reflect the change that I have made in the controller code. i.e. it hasn’t reloaded. I have to restart the app to see the change.

---

*Imported from [IDEA-339943](https://youtrack.jetbrains.com/issue/IDEA-339943) · Type: Bug · Votes: 0*
*Comments, attachments, dates and reporter are not part of the export — follow the link above for the full history.*

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reload behavior with the out-of-the-box run-app configuration, first under c:\grails\TestGrailsApp and then under c:\Grails Test\TestGrailsapp. Trace the run-app and auto-reload handling for paths containing spaces; done means edits to mycontroller are reflected after saving without restarting the application.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.