Validation status, and halting/terminating validation, for a Project.

Are you missing a feature? Request its implementation here.
snewton
Posts: 8
Joined: Tue Aug 16, 2011 4:23 pm

Validation status, and halting/terminating validation, for a Project.

Post by snewton »

When validating a single file, the bar at the foot of the screen says "Validation - in Progress" to give you the validation status. But choosing to validate all the files in a Project does not produce such a message, and if no errors are being found, and the Information view is not open, it is not possible to see that validation is happening. If I've not missed something, could a message of some sort be given in this way please e.g. "Project validation - in progress" or "Project validation - completed"?

Also, I can't find a way to halt a validation that is taking a long time. Is there a way, or could one be introduced please?

Many thanks - Simon.
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: Validation status, and halting/terminating validation, for a Project.

Post by adrian »

Hi,

What version of Oxygen are you using?
There's a progress dialog (at least in v11.2 and later) that appears whenever the batch validation takes more than a few seconds. This progress dialog has a Cancel button that allows you to stop the validation.

If no progress dialog ever appears, it means the validation finishes almost immediately and you should get either:
- a dialog saying Validation successful if no errors were found.
- a view named Batch validation problems in the results panel (at the bottom of the editor) containing all the warnings and errors.

I'll log a request on our issue tracking tool to also post a notification in the status bar.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
snewton
Posts: 8
Joined: Tue Aug 16, 2011 4:23 pm

Re: Validation status, and halting/terminating validation, for a Project.

Post by snewton »

Hi Adrian,

I'm using oXygen XML Editor v14.

There is definitely no "Progress Dialog" appearing for me (I just have the "Project View" open alongside the main window). When it's all over, I do get the "Validation successful" pop-up (if no errors), or if there are errors then I do see the results panel.

Thanks for considering a status bar notification.

- Simon.
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: Validation status, and halting/terminating validation, for a Project.

Post by adrian »

Hi,

Could you please provide a step by step procedure of how you invoke the batch validation?
Do you select some files in the Project view and then use the Validate > Validate action from the contextual menu or are you using the main menu Project > Validate all project files action?

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
snewton
Posts: 8
Joined: Tue Aug 16, 2011 4:23 pm

Re: Validation status, and halting/terminating validation, for a Project.

Post by snewton »

- Created a folder on hard disk containing only XML files.
- Created a new project in oXygen.
- Right-clicked the project name and chose "Add Folder" and chose the above folder.
- Right-clicked the folder and chose "Validate/Configure Validation Scenario(s)".
- Ticked the box next to a single existing scenario (a local copy of the Schema), and chose "Apply Associated".
- If no errors, get "Success" pop-up saying "Validation Successful" (but no other notification during the validation that anything is happening [same when using a Schematron file to validate with]). If errors, get Batch Validation panel at foot listing errors.
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: Validation status, and halting/terminating validation, for a Project.

Post by adrian »

Hi,

Thank you for providing the step by step procedure. I was able to reproduce the problem immediately.
For whatever reason (most probably a bug), it seems the progress dialog appears only when the default validation is used (no validation scenario is associated).
I've logged this bug to our issue tracking tool and we'll resolve it in the next release of Oxygen. We will notify this thread when the bugfix becomes available.

Until we fix this, I do have a somewhat quirky workaround for stopping such a validation. Right-click the folder again, chose Validate > Configure Validation Scenario(s), clear all associations with scenarios and press Save and close. If the batch validation is still in progress, the aforementioned progress dialog should pop up immediately and you can then press the Cancel button and stop it.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
snewton
Posts: 8
Joined: Tue Aug 16, 2011 4:23 pm

Re: Validation status, and halting/terminating validation, for a Project.

Post by snewton »

Hi Adrian,
Thanks a lot for investigating... glad I wasn't wasting your time.
Regards - Simon.
ionela
Posts: 407
Joined: Mon Dec 05, 2011 6:08 pm

Re: Validation status, and halting/terminating validation, for a Project.

Post by ionela »

Hello,

I just wanted to let you know that this problem has been resolved in the latest maintenance build of Oxygen 14.0, 2012080717 (released on August 8th):
Project/Batch Validation: When batch validating with a custom validation scenario, no progress dialog appeared for the operation and this prevented the operation from being canceled when necessary.
You can download it from our web site:
http://www.oxygenxml.com/download.html

The list of bug-fixes can be found here:
http://www.oxygenxml.com/build_history.html#2012080717

You can follow the release/build RSS feed here:
http://www.oxygenxml.com/rssBuildID.xml

Let us know if you encounter further problems with this new build.

Regards,
Ionela
Ionela Istodor
oXygen XML Editor and Author Support
Post Reply