#3148 closed defect (fixed)
model with tabs cant be saved in OMEdit
Reported by: | Jan Silar | Owned by: | Adeel Asghar |
---|---|---|---|
Priority: | high | Milestone: | 1.9.4 |
Component: | OMEdit | Version: | trunk |
Keywords: | Cc: |
Description
in today nightly build (r24495) OMEdit, model containing tab characters (in text mode) is not possible to save. It says:
[2] 10:42:29 Syntax Error
[test: 1:10-1:10]: Lexer failed to recognize '\tReal x(st'
The model (written in external editor) is attached. I think, it is problem in OMEdit, omc from command line compiles it fine. I think OMEdit should replace tabs with some spaces automaticaly anyway.
Attachments (1)
Change History (7)
by , 10 years ago
comment:1 by , 10 years ago
comment:2 by , 10 years ago
I do:
- New modelica class
- name: testModel
- delete annotations
- add a line: "\tReal x;"
- save
Now the error comes. It doesnt have to be "Real x;" Any other text after tab causes the problem also.
I have Ubuntu 14.04.
comment:5 by , 9 years ago
Milestone: | Future → pre1.9.4 |
---|
It doesn't make sense to keep closed ticket in the "Future" milestone that were simply forgotten to assign to the correct milestone in the past.
comment:6 by , 7 years ago
Milestone: | pre1.9.4 → 1.9.4 |
---|
Removing the pre1.9.4 milestone in favor of 1.9.4.
I can't reproduce this with r24499. The following worked fine,
I downloaded your model, opened it, added new line
Real a;
in it and then saved it.Can you provide steps to the error?