开发者

Why isn't PlayFramework recompiling my edited .java files properly?

I have been working with the Play! Framework for a few weeks now, and am really enjoying it. Occasionally I have an issue come up which is frustrating me. It starts when I encounter a compile error. I refresh, and see the (excellent) Play! error message. Here's a simple example.

Why isn't PlayFramework recompiling my edited .java files properly?

I go to the appropriate file, fix the error, and reload the page. Then I get this compiler error:

Why isn't PlayFramework recompiling my edited .java files properly?

Strangely, it shows the updated source code, with the bug fix, but it is throwing the same compiler error from the previous message. If I restart the Play! server, then everything compiles and I can go on as expected, but of course one of the great things about Play! is being able to edit .java source files and see those changes right away in the browser.

Would really appreciate a tip from anyone who's bumped into this before, or has a clue what is causing it! Thanks so much! I am running OSX 10.6.

EDIT开发者_如何学C

I have also tried manually deleting the tmp/ directory, where the .class files are stored. This does not help, and I get the same behavior, where the edited source code appears, but the old compiler error is still dsiplayed.


My best stab at this is that your clock is screwed up. Do you use time synchronization? Keep a terminal open running:

while true; do sleep 1; date; done

and check whether there is a correlation with clock changes and this behaviour.

FWIW, I've never witnessed this (also on MacOS 10.6)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜