Opened 12 years ago

Closed 12 years ago

#2006 closed defect (invalid)

Omedit cannot load a file (r14547)

Reported by: massimo ceraolo Owned by: Jens Frenkel
Priority: high Milestone: 1.9.0
Component: Backend Version: trunk
Keywords: Cc: Willi Braun, Lennart Ochel

Description

Consider the file TestPkg.mo enclosed. If you run inside it "TestLoadCycle2" within OMEdit, it says:

assert | assert | Cannot open File Sort1.txt

even though file Sort1.txt is present in the current directory.

Attachments (3)

TestPkg.mo (3.5 KB ) - added by massimo ceraolo 12 years ago.
Sort1.txt (2.0 KB ) - added by massimo ceraolo 12 years ago.
Sort1.2.txt (2.0 KB ) - added by Adeel Asghar 12 years ago.

Download all attachments as: .zip

Change History (8)

by massimo ceraolo, 12 years ago

Attachment: TestPkg.mo added

by massimo ceraolo, 12 years ago

Attachment: Sort1.txt added

comment:1 by Adeel Asghar, 12 years ago

Status: newaccepted

by Adeel Asghar, 12 years ago

Attachment: Sort1.2.txt added

comment:2 by Adeel Asghar, 12 years ago

Owner: changed from Adeel Asghar to Jens Frenkel
Status: acceptedassigned

You need to put the file in OMEdit's working directory which is,

%TEMP%/OpenModelica/OMEdit

I fixed some errors in the file so use the new file attached Sort1.2.txt (rename it to Sort1.txt). I get this error now,

assert            | assert  | TimeTable: Column with time variable not monotonous: 150 >= 0

comment:3 by Adeel Asghar, 12 years ago

Component: OMEditBackend

comment:4 by Adeel Asghar, 12 years ago

Cc: Willi Braun Lennart Ochel added

comment:5 by Martin Sjölund, 12 years ago

Resolution: invalid
Status: assignedclosed

Use absolute paths or Files.loadResource

Note: See TracTickets for help on using tickets.