简体   繁体   English

Netbeans不再自动更新我的Grails运行应用程序

[英]Netbeans no longer automatically updates my Grails running app

I'm developing a Grails (2.5.6) App, using NetBeans 7.2, and Java 7. 我正在使用NetBeans 7.2和Java 7开发Grails(2.5.6)应用程序。

Everything has been fine, but recently I have noticed that if I run the app from within NetBeans, and then make a change to the code, I now have to stop the app and then re-run it again. 一切都很好,但是最近我注意到,如果我从NetBeans中运行该应用程序,然后对代码进行更改,则现在必须停止该应用程序,然后再次重新运行它。 It used to just compile the new bits on the fly and I could test out any changes without having to stop the app and then re-run it again. 它曾经只是动态地编译新的位,而我可以测试任何更改而不必停止应用程序,然后再次运行它。

I did upgrade from Grails 2.1.1 to 2.5.6 a little while ago, but this problem (I am sure) has only been happening the last few days. 我确实从Grails 2.1.1升级到2.5.6,但是这个问题(我确定)只是在最近几天才发生。 I've even uninstalled and reinstalled netbeans, but its still happening. 我什至卸载并重新安装了netbeans,但是它仍在发生。

Very frustrating as it's really slowing me down now. 非常令人沮丧,因为它现在真的使我减速。

This is totally random, but I have solved the problem. 这是完全随机的,但是我已经解决了这个问题。 The thing is, it had been working for years, but then suddenly last week it stopped working. 事实是,它已经工作了多年,但是上周突然停止了工作。

The reason? 原因? Well, last week I tidied up my disk and moved/renamed some files, and in doing so I introduced a folder which had a space in it's name. 好吧,上周我整理了磁盘并移动/重命名了一些文件,然后我引入了一个文件夹,该文件夹的名称中有一个空格。 (ie all my projects used to be in a folder called \\apps\\grails\\ and then after I tidied things up I had folders like \\apps\\grails 2.1.1\\ and \\apps\\grails 2.5.6\\ etc. Note therefore, I had introduced spaces in the folder names. (即我所有的项目以前都位于一个名为\\ apps \\ grails \\的文件夹中,然后在整理之后,我得到了\\ apps \\ grails 2.1.1 \\和\\ apps \\ grails 2.5.6 \\等文件夹。因此请注意,我已经在文件夹名称中引入了空格。

As soon as I removed the spaces (so instead, I had \\apps\\grails2.5.6) - bingo! 删除空格后(因此,我有了\\ apps \\ grails2.5.6)-宾果游戏! It started working again. 它再次开始工作。

I have absolutely no idea why this should be, but it is what it is. 我绝对不知道为什么会这样,但这就是事实。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM