Opened 6 years ago

Last modified 6 years ago

#5048 closed defect

False error — at Initial Version

Reported by: massimo ceraolo Owned by: somebody
Priority: blocker Milestone: 1.14.0
Component: OMEdit Version:
Keywords: Cc: Adrian Pop

Description

I suppose a program user should take seriously error and warning messages to avoid bigger issues.
Therefore I suppose any false error message should be corrected.

Currently OMEdit shows a strange, probably wrong, error message whenever we duplicate a model in a package.
The issue can be replicated considering the attached Test.mo.
If we duplicate RL1 giving for instance to the duplicated class the name RL2, we receive the following error message:

[1] 21:07:52 Syntax Error
[: 1:0-1:0]: No viable alternative near token: /

[2] 21:07:52 Translation Error
[: 0:0-0:0]: Internal error Failed to scan top of input: EOF

Expected one of: <EOF>
Current parse tree is: The parser stack is:

makeNode
stored_definition

It seems to me that no error occurred while duplication. So, probably this error message is just wrong

Change History (1)

by massimo ceraolo, 6 years ago

Attachment: Test.mo added
Note: See TracTickets for help on using tickets.