Opened 10 years ago

Closed 10 years ago

Last modified 7 years ago

#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)

test.mo (64 bytes ) - added by Jan Silar 10 years ago.

Download all attachments as: .zip

Change History (7)

by Jan Silar, 10 years ago

Attachment: test.mo added

comment:1 by Adeel Asghar, 10 years ago

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?

comment:2 by Jan Silar, 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:3 by Adrian Pop, 10 years ago

You are actually writing \t inside the editor? Or you're pressing tab?

comment:4 by Martin Sjölund, 10 years ago

Resolution: fixed
Status: newclosed

Fixed in r24499

comment:5 by Dietmar Winkler, 9 years ago

Milestone: Futurepre1.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 Martin Sjölund, 7 years ago

Milestone: pre1.9.41.9.4

Removing the pre1.9.4 milestone in favor of 1.9.4.

Note: See TracTickets for help on using tickets.