- This topic has 13 replies, 4 voices, and was last updated 17 years, 11 months ago by Riyad Kalla.
-
AuthorPosts
-
Phillip BeauvoirMemberHi,
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
Phillip BeauvoirMemberOK, 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
Phillip BeauvoirMember…which makes it pretty much unusable…
Phil
Riyad KallaMemberPhil, we’ll check this out ASAP, thanks!
Riyad KallaMemberPhil,
If I’m reading this correct a “Clear validation errors” option would be what you want, correct?
Phillip BeauvoirMember@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
Scott AndersonParticipantPhil,
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?
Phillip BeauvoirMember@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
Riyad KallaMemberQuick 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?
Phillip BeauvoirMember@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
😛
Riyad KallaMemberOk just wondering, I filed this request for you.
Paul LoyMemberThe 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.
Paul LoyMember@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.
Riyad KallaMemberGuys,
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.
-
AuthorPosts