Skip to content

XML validation against a schema continues to validate against an old version of the schema even after all caches cleared #5

@krallus

Description

@krallus

In Eclipse, with XML validation enabled, the following scenario results in a false positive:

  1. The XML contains a schema reference to an XSD over HTTP.
  2. The XML is correctly flagged with an "XML Problem" (e.g. attribute xxx is not allowed to appear in element yyy).
  3. 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.
  4. The XSD is modified so that the XML should no longer be a problem.
  5. 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".
  6. 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.
  7. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions