Bug 493155 - XML: Better error reporting to the user is required
Summary: XML: Better error reporting to the user is required
Status: NEW
Alias: None
Product: Tracecompass
Classification: Tools
Component: TMF (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Project Inbox CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-06 11:11 EDT by Genevieve Bastien CLA
Modified: 2016-05-06 11:11 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Genevieve Bastien CLA 2016-05-06 11:11:38 EDT
With XML analyses, we introduced a syntax and semantics that a user can use to develop their analyses.

For the syntax, there is an XSD, which they may or may not use in development. In which case, any validation error when importing should be reported to the user. Right now it silently fails to import the file.

For the semantics though, that is a bit more complicated. The XML analysis should be "compiled" and any error reported, but the file should not fail to import (for eg. non-existent trace type, states, fsms, etc).

And the modal message box may not be the best place for that, though for a start, it certainly would be better than the nothing we have now.

Patch https://git.eclipse.org/r/#/c/72080/ is an example of message that should be displayed to the user, but it needs to be put <somewhere>