facebook

How do you turn off validation?

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #212210 Reply

    Hi,

    I selected “Run Validation” on a project containing .xsd and .xml files. Now I have red crosses (validation errors) all over the package explorer view and files. I know about these xml errors and want to ignore them. How do I turn it off to stop seeing the errors? I can do this in XMLBuddy by selecting “Clear Validate”. But in MyEclipe…??? I’ve got to be able to turn this off, or else it’s a showstopper for me (I rely on being able to see “real” errors)…

    Thanks in advance.

    Phil

    #212214 Reply

    OK, I found that in each Project’s Properties “MyEclipse-Validation” page I can turn off validation, but if I then again select “Validate XML File” from the context menu in Package Explorer, the errors are marked again and the Project’s prefs settings are ignored and I have to then re-instate validation for that Project, Run Validation and then go through the whole loop of turning it off again…

    Phil

    #212289 Reply

    …which makes it pretty much unusable…

    Phil

    #212297 Reply

    Riyad Kalla
    Member

    Phil, we’ll check this out ASAP, thanks!

    #212300 Reply

    Riyad Kalla
    Member

    Phil,
    If I’m reading this correct a “Clear validation errors” option would be what you want, correct?

    #212316 Reply

    @support-rkalla wrote:

    Phil,
    If I’m reading this correct a “Clear validation errors” option would be what you want, correct?

    Yes, please!

    BTW – why is My-Eclipse support so damned good!? 😀

    Phil

    #212317 Reply

    Scott Anderson
    Participant

    Phil,

    but if I then again select “Validate XML File” from the context menu in Package Explorer, the errors are marked again and the Project’s prefs settings are ignored

    The validation of an individual XML file is provided as a convenience so that you *can* turn off automatic validation and still validate a single file from time to time. Out of curiosity, what did you expect to happen when you explicitly selected “Validate XML File”, if not that we’d validate it as you requested and error mark it?

    #212342 Reply

    @support-scott wrote:

    Phil,

    but if I then again select “Validate XML File” from the context menu in Package Explorer, the errors are marked again and the Project’s prefs settings are ignored

    The validation of an individual XML file is provided as a convenience so that you *can* turn off automatic validation and still validate a single file from time to time. Out of curiosity, what did you expect to happen when you explicitly selected “Validate XML File”, if not that we’d validate it as you requested and error mark it?

    For sure, but I have some .xsd and .xml files that “break the rules” a little and yet are usable, or have some xml files that refer to a missing schema. I just want a quick way to turn that off!

    Phil

    #212349 Reply

    Riyad Kalla
    Member

    Quick question.. if you are pointing at resources that don’t exist… whats the point? Why not just remove the DOCTYPE entries for those files and then you don’t need to worry about it?

    #212373 Reply

    @support-rkalla wrote:

    Quick question.. if you are pointing at resources that don’t exist… whats the point? Why not just remove the DOCTYPE entries for those files and then you don’t need to worry about it?

    I can’t do that.

    I just want to “unvalidate” please! Right-click, “Clear Validation” and the red crosses are gone.

    Thanks!

    Phil

    😛

    #212386 Reply

    Riyad Kalla
    Member

    Ok just wondering, I filed this request for you.

    #262668 Reply

    Paul Loy
    Member

    The quickest way to ‘turn off validation’ is to close eclipse, find the .markers file and delete it. On my Mac the .markers file was found in workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/projectname/.markers

    This will wipe all markers (errors, warnings, todo’s, etc). But the standard markers will be rebuilt when you start eclipse up, the jsp, xml and html errors will not.

    Hope this helps,

    Paul.

    #262670 Reply

    Paul Loy
    Member

    @support-rkalla wrote:

    Quick question.. if you are pointing at resources that don’t exist… whats the point? Why not just remove the DOCTYPE entries for those files and then you don’t need to worry about it?

    I myself have some nasty legacy jsp code that I’m gradually getting rid of. In the meantime I can’t just drop it but I don’t want the markers showing an error as I know about it.

    #262677 Reply

    Riyad Kalla
    Member

    Guys,
    To turn off validation we added that functionality in the 5.1 release. You can either right click on the file in question and go down to MyEclipse > Exclude from Validation, or go into your project properties, and go under MyEclipse > Validation > Excluded Resources.

    The markers should be removed immediately without a need to rebuild/clean the project. I hope that helps.

Viewing 14 posts - 1 through 14 (of 14 total)
Reply To: How do you turn off validation?

You must be logged in to post in the forum log in