Bug 540627 - Inadequate display of evaluation failures
Summary: Inadequate display of evaluation failures
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2018-10-30 13:39 EDT by Ed Willink CLA
Modified: 2019-01-08 11:22 EST (History)
1 user (show)

See Also:


Attachments
project to reproduce (459.66 KB, application/x-zip-compressed)
2019-01-08 11:22 EST, Pierre Guilet CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Willink CLA 2018-10-30 13:39:19 EDT
If a Target Finder Expression is entered as "feature: children" rather than "feature:children" i.e. a gratuitous space, numerous EvaluationException: Unknown feature name  children errors result, but no clue is provided to the Sirius perspective user.

Given the current design, it seems mandatory for the Error LOg to be a part of the Sirius perspecyive so that at leat the information is visible smewhere in the perspective.

Much better, provide an errors tab in the editor view just like the Sample Ecore Model EDitor, so that the user can easily see what problems there are.

(The expression parser should be whitespace blind just like most real languages.)
Comment 1 Pierre Guilet CLA 2019-01-08 11:22:06 EST
Created attachment 277102 [details]
project to reproduce

Steps to reproduce:

- Import the design and sample project
- Open the representation

Ko no man diagram element is shown.
The space in "feature: members" of the semantic candidate expression must be removed to make it work.

The interpreter could indeed handled this case.

Though the problem can be seen when validating the design element. But yes a live validation would be useful.