Eclipse 一次又一次地构建代码(没有任何更改)?
我注意到 Eclipse Indigo 存在一个奇怪的问题。尽管代码没有任何变化,但它正在一次又一次地构建工作区!
进度条上打印出
Building Workspace 44%
..
Building Workspace 10%
..
Building Workspace 33%
知道这里发生了什么吗?目前我已经取消选中“自动构建”标志。
I am noticing a strange issue with Eclipse Indigo. It is Building Workspace again and again even though there is no change in the code!
In Progress bar it prints
Building Workspace 44%
..
Building Workspace 10%
..
Building Workspace 33%
Any idea what is going on here? For the time being I have unchecked the 'Build Automatically' flag.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我已经尝试了以下技巧几次,这似乎更有效:
自动构建
标志在一段时间后重新启用自动构建>自动构建
标志请注意,正如我之前提到的,这是一个技巧,而不是一个解决方案。但是,希望面临这些问题的其他人会发现这有帮助。
I have tried the following trick couple of times and this seems to work more often than not:
Build Automatically
flagBuild Automatically
flagNote that as I mentioned earlier this is a trick and not a resolution. But, hope others facing these issues will find this helpful.
是的,我也注意到了这一点,这可能相当烦人。我已通过关闭自动构建(在项目下)恢复到 Eclipse 中的手动编译。
手动编译有点老派,但它对我有用。我更喜欢使用maven 在命令行编译、打包和测试代码。
(我可能会对这种方法投反对票(即不使用集成工具等),但它对我有用,而且效果很好!至少我没有使用 VIM 来编写 Java 代码!:))
Yes, I have noticed that too and it can be rather annoying. I have reverted to manual compiling in Eclipse by switching auto-building off (under project).
Compiling manually is a bit old-school, but it works for me. I prefer to compile, package and test the code at the command line using maven.
(I'll probably get a downvote for this approach (i.e. not using integrated tools, etc.), but it works for me and it works well! At least I'm not using VIM for coding Java! :))
如果您使用的是 Windows 7,则某些目录中的 Windows 索引可能会导致 Eclipse 中自动重建:请参阅 Bug 342931 - Windows 7 库触发重建。
If you are using Windows 7, then the Windows indexing in some directories can cause automatic rebuilds in Eclipse: see Bug 342931 - Windows 7 Libraries trigger rebuilds.