HybridProgrammer / grails-dynamic-domain-class-plugin

Automatically exported from code.google.com/p/grails-dynamic-domain-class-plugin
Apache License 2.0
0 stars 0 forks source link

Plugin "breaks" auto reload of controllers in Grails #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. (optional; you can use an existing project) Create a new Grails app and add 
a single domain with a single field. Generate all other relevant codes (e.g. 
controller & views).
2. Install the plugin and the demo.
3. On your other controllers outside of the plugin, place any new code... say, 
a simple "println" statement on any action.
4. Save the controller.

What is the expected output? What do you see instead?
Expected: If you change your controller codes and save, the changes should 
reflect immediately without restarting the application.

However, I was able to repeat this problem with a new project... Once the 
plugin gets installed, no matter how small the change to an action's/function's 
code (like a println), the app has to be restarted for the changes to take 
effect.

What version of the product are you using? On what operating system?
Grails: 1.3.7
STS: 2.7.2
OS: Win7

Please provide any additional information below.

Original issue reported on code.google.com by calli...@gmail.com on 6 Oct 2011 at 9:02

GoogleCodeExporter commented 8 years ago
hmm... it seems that some changes (not all) does get applied but for println 
statements, I have to restart the app... curious...

Original comment by calli...@gmail.com on 6 Oct 2011 at 11:03

GoogleCodeExporter commented 8 years ago
Please refer to http://code.google.com/p/grails-form-builder-plugin/ for the 
idea of Dynamic Controller.

Original comment by limchee...@vobject.com on 7 Oct 2011 at 3:47

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi,

That wasn't what I meant :( What I meant was, any other controller ALREADY in 
the project does NOT RELOAD changes you make on them once the plugin is 
installed. You have to restart the app for any changes on them to apply.

I don't need dynamic controllers... should I file another bug report to clarify 
what I mean?

Original comment by calli...@gmail.com on 7 Oct 2011 at 12:57

GoogleCodeExporter commented 8 years ago
Don't need, I got you. But I am currently don't have time to look into this 
issue. I will keep it in view.

Original comment by limchee...@vobject.com on 7 Oct 2011 at 1:06

GoogleCodeExporter commented 8 years ago
It's all right, thanks for the quick response! It mostly happens to println 
statements though... but I've been seeing it happen to other changes I make to 
code (in short, kinda intermittent).

Again, thanks! Really appreciate it!

Original comment by calli...@gmail.com on 7 Oct 2011 at 1:08

GoogleCodeExporter commented 8 years ago
You're welcome! It seems that this issue is minor then.

Original comment by limchee...@vobject.com on 7 Oct 2011 at 1:12

GoogleCodeExporter commented 8 years ago
In a way, I think so too... however, it's just a pain to have to keep 
restarting the application when there's a code change..

Original comment by calli...@gmail.com on 7 Oct 2011 at 1:20

GoogleCodeExporter commented 8 years ago
I am getting the same issue and it's kinda annoying.

Original comment by scottwar...@ocomsoft.com on 30 Jan 2012 at 4:07