问题
In a standard Android
project, if there are any warnings there will be a corresponding Warning Icon as well as underlined text to clearly demonstate a potential issue.
However, if you choose to clone an existing Mercurial
repository, these warning icons are no longer displayed. Is there any way to show warnings and errors in a project that was created by cloning a Mercurial
repository?
The file on the left is from a local Android
project. The file on the right is a Project that was cloned from a Mercurial
repository. Notice there are no squiggly underline warnings on the file on the right.
回答1:
Compare the .project file in the two situations. The .project file is found at the root of the Eclipse project and determines which plugins and builder are enabled for the project. Most likely the fix is to commit the correctly configured project file so that new clones have the same configuration.
来源:https://stackoverflow.com/questions/16030306/eclipse-object-adornments-dont-display-for-mercurial-repository