Eclipse 一次又一次地构建代码(没有任何更改)?

发布于 2024-12-17 19:37:26 字数 220 浏览 7 评论 0原文

我注意到 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 技术交流群。

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

发布评论

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

评论(3

剑心龙吟 2024-12-24 19:37:27

我已经尝试了以下技巧几次,这似乎更有效:

  1. 取消选中自动构建标志
  2. 刷新工作区中的所有项目
  3. 通过检查在一段时间后重新启用自动构建>自动构建标志

请注意,正如我之前提到的,这是一个技巧,而不是一个解决方案。但是,希望面临这些问题的其他人会发现这有帮助。

I have tried the following trick couple of times and this seems to work more often than not:

  1. Uncheck Build Automatically flag
  2. Refresh all the projects in the workspace
  3. Re-enable the automatic build after sometime by checking the Build Automatically flag

Note that as I mentioned earlier this is a trick and not a resolution. But, hope others facing these issues will find this helpful.

盗琴音 2024-12-24 19:37:27

是的,我也注意到了这一点,这可能相当烦人。我已通过关闭自动构建(在项目下)恢复到 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! :))

春夜浅 2024-12-24 19:37:27

如果您使用的是 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.

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