#3602 closed defect (fixed)
-overrideFile flag does not work in 1.9.4 latest
Reported by: | jf3 | Owned by: | Lennart Ochel |
---|---|---|---|
Priority: | blocker | Milestone: | 1.9.4 |
Component: | Run-time | Version: | |
Keywords: | overrideFile, override | Cc: |
Description
When I try to use my built model with -overrideFile it says:
assert | debug | simulation_input_xml.cpp: could not read overrideFile override_file.txt: No error
The file normally works in previous releases, the file exists.
When I do it via -override variable=value it mornally runs.
Change History (10)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
I cannot reproduce this issue. I used the following script on linux which just work fine:
loadString(" model M parameter Real p=1; end M; "); getErrorString(); simulate(M, simflags="-overrideFile=override_file.txt"); getErrorString(); val(p, 0.0); getErrorString();
comment:3 by , 9 years ago
Milestone: | → NeedsInput |
---|
comment:4 by , 9 years ago
I have the same problem.
Platform is Windows 7, 64 bit.
OM version 1.9.4dev.
override file (start.txt) is in same directory as the exe file.
shell command:
mymodel -overrideFile=start.txt
response:
assert : debug : simulation_input_xml.cpp: could not read overrideFile start.txt: No error
I checked the security settings of this folder and all users have full access.
Also changed the system path to include the work folder (with mymodel.exe), still not working.
Could you please check this issue for Windows?
comment:5 by , 9 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
I get the same error message on Windows.
comment:6 by , 9 years ago
Milestone: | NeedsInput → 1.9.4 |
---|---|
Priority: | high → blocker |
I make this a blocker as we really need to fix it for 1.9.4 final.
comment:7 by , 9 years ago
The issue occurs only on Windows with CRLF line endings in the override file.
This should be fixed with PR436.
comment:8 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
What OS are you using? Windows?