In Eclipse, with XML validation enabled, the following scenario results in a false positive:
- The XML contains a schema reference to an XSD over HTTP.
- The XML is correctly flagged with an "XML Problem" (e.g. attribute xxx is not allowed to appear in element yyy).
- The problem shows in the Problems view whether or not the XML file is open. Explicitly running the Validate command shows that there is a problem.
- The XSD is modified so that the XML should no longer be a problem.
- The XML still shows the same place with an error. This persists regardless of closing and reopening the file or Eclipse, clearing all caches that can be cleared, and pressing "Reload Dependencies".
- The problem shows in the Problems view only when the XML file is open. The problem is also highlighted in the open file. There is no problem shown when the XML file is closed. Explicitly running Validate shows that there are no problems.
- This issue will persist indefinitely unless the location of the XSD is changed. So there must be some kind of hidden filesystem cache that is used by the automatic validator that is active only when the XML file is open.
Eclipse: Version: 2024-06 (4.32.0)
OS: Linux Mint 21.1 Cinnamon