#3602 closed defect (fixed)
-overrideFile flag does not work in 1.9.4 latest
Reported by: | jf3 | Owned by: | lochel |
---|---|---|---|
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 Changed 9 years ago by lochel
comment:2 Changed 9 years ago by lochel
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 Changed 9 years ago by dietmarw
- Milestone set to NeedsInput
comment:4 Changed 9 years ago by anonymous
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 Changed 9 years ago by lochel
- Owner changed from somebody to lochel
- Status changed from new to assigned
I get the same error message on Windows.
comment:6 Changed 9 years ago by adrpo
- Milestone changed from NeedsInput to 1.9.4
- Priority changed from high to blocker
I make this a blocker as we really need to fix it for 1.9.4 final.
comment:7 Changed 9 years ago by lochel
The issue occurs only on Windows with CRLF line endings in the override file.
This should be fixed with PR436.
comment:8 Changed 9 years ago by lochel
- Resolution set to fixed
- Status changed from assigned to closed
comment:9 Changed 8 years ago by sjoelund.se
- Milestone changed from 1.9.4 to 1.9.4-1.9.x
Milestone renamed
comment:10 Changed 8 years ago by sjoelund.se
- Milestone changed from 1.9.4-1.9.x to 1.9.4
Milestone renamed
What OS are you using? Windows?