Build error does not annotate file, package, or project with error [message #553762] |
Wed, 18 August 2010 14:13  |
Eclipse User |
|
|
|
Eclipse 3.6 and a Java project.
I have a source file that references a bogus package. The reference in the source file when I edit the Java code is underlined and the error marker appears to the side.
The error marker does not appear in the Package Explorer or Project Explorer next to the file, packages, and project. That is, looking at the project or package does not indicate an error.
Any ideas why the error markers are not propagated to the explorers?
|
|
|
|
|
Re: Build error does not annotate file, package, or project with error [message #553940 is a reply to message #553762] |
Thu, 19 August 2010 09:37  |
Eclipse User |
|
|
|
Mystery solved.
I noticed that when I updated source that the "build automatically" was not resulting in an updated .class whenever I updated code.
I poked around, compared a couple of different projects, and noticed that the "Java Builder" was missing from the project's list of Builders. I have no idea why it was missing as it isn't something I would just remove for the sheer joy of it.
Solution in my case, since I didn't see any way of adding the builder in the UI, was to edit .project and ensure the following was included within <buildSpec>...</buildSpec>:
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
|
|
|
Powered by
FUDForum. Page generated in 0.05920 seconds