GWT 重置已清除 *.cache.html 文件

发布于 2024-12-02 05:10:39 字数 415 浏览 1 评论 0原文

我正在修复 GWT+GAE 应用程序中的错误。我不断尝试进行更改,但错误仍然存​​在。因此,我决定尝试更改调试语句中的文本消息,并注意到文本没有更改。我认为这是因为正在缓存某些内容。所以我清除了我能想到的所有内容(清除浏览器的历史记录,重建整个项目,重新启动我的计算机,Eclipse -> Project -> Clean...)。最后我放弃了,开始寻找文本,看看它藏在哪里。我在 .cache.html 文件中找到了它,所以我删除了该文件。现在,当我运行该项目时,我收到以下消息:

[警告] 找不到文件:/catserve/F0262AF37428E46FCD5FC373EED66DA6.cache.html

即使在尝试了我之前能想到的所有方法来清除项目之后,应用程序也只是显示一个空白网页以及删除文件后。

我如何重置一切?

谢谢。

I was working on fixing a bug in my GWT+GAE application. I kept trying to make changes and the bug persisted. So I decided to try changing a text message in a debug statement and noticed that the text didn't change. I assumed this was because something was being cached. So I cleared everything I could think of (clear brower's history, rebuild the entire project, rebooted my computer, Eclipse -> Project -> Clean...). Finally I gave up and searched for the text to see where it was hiding. I found it in a .cache.html file so I deleted that file. Now when I run the project, I get the following message:

[WARN] No file found for: /catserve/F0262AF37428E46FCD5FC373EED66DA6.cache.html

And the application just shows a blank webpage even after trying everything I can think of to clear the project before and after deleting the file.

How do I reset everything?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

留一抹残留的笑 2024-12-09 05:10:39

我也有同样的问题。即使完全重新启动后,简单的文本更改也不会反映在浏览器中。

要解决此问题,请通过 Google 菜单(在工具栏中)直接“GWT 编译项目...”。

我认为托管模式可以解决这个问题,但似乎事情有时会不同步。直接编译后,一切又开始工作了——保存代码、等待自动编译并重新加载页面后,可以在浏览器中看到简单的更改。

I had the same problem. Simple text changes weren't being reflected in the browser, even after a complete reboot.

To solve the issue, "GWT Compile Project..." directly, via the Google menu (in the toolbar).

I thought that Hosted Mode would address this issue, but it appears that things can get out of sync from time to time. After compiling directly, things began working again -- simple changes could be seen in the browser after saving the code, waiting for the auto-compile, and reloading the page.

匿名的好友 2024-12-09 05:10:39

我确信一件事,即每次更改代码时,xyz.cache.html 名称都会更改,因为 xyz 是“M​​D5 生成的代码”。因此,一旦您更改源代码并查找相同的文件,它就不会存在,因为 GWT 编译器已经创建了新的 .cache.html 文件,并以新的 MD5 代码作为文件名。

I know one thing for sure i.e. every time you change the code, xyz.cache.html name changes as xyz is "MD5 generated code". So, once you change the source code and look for the same file, it will not be there as GWT compiler had already created new .cache.html file with new MD5 code as file name.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文