Opened 4 years ago
Closed 4 years ago
#6239 closed defect (fixed)
Invalid error message from OM
Reported by: | massimo ceraolo | Owned by: | Adeel Asghar |
---|---|---|---|
Priority: | critical | Milestone: | 1.16.2 |
Component: | OMEdit | Version: | v1.17.0-dev |
Keywords: | Cc: |
Description
Steps to reproduce:
- load omEdit
- load Test.mo
- Change Amplitude of sine wave in E1 to 101
- Change Amplitude of sine wave in E1 to 100
The following error message appears:
[3] 10:07:51 Syntax Error [: 1:0-1:0]: No viable alternative near token: <EOF>
However, the code is ok and simulates well.
(report by my student Vannuccini)
Attachments (3)
Change History (21)
by , 4 years ago
comment:1 by , 4 years ago
follow-up: 7 comment:3 by , 4 years ago
@ceraolo, I tried with the latest nightly build v1.17.0-dev-195-g637d5adedc, I can't reproduce this either. Would you mind trying that out?
follow-up: 6 comment:5 by , 4 years ago
@ceraolo, if some of your students spot issues, you can put their email in the cc: field of the ticket, so they can get and provide feedback faster.
comment:6 by , 4 years ago
Replying to casella:
@ceraolo, if some of your students spot issues, you can put their email in the cc: field of the ticket, so they can get and provide feedback faster.
I grant them marks if they found replicable issues.
They are not at their first experiences with OM, and are not ready for trac: I tried what you mention two years ago with poor results.
comment:7 by , 4 years ago
Replying to casella:
@ceraolo, I tried with the latest nightly build v1.17.0-dev-195-g637d5adedc, I can't reproduce this either. Would you mind trying that out?
I downloaded and run dev-195 and got exactly the same issue.
I made all tests under Windows 64 bit.
Consider that the same issue was observed on three different PC's (the student's and two of mine)
follow-ups: 9 11 comment:8 by , 4 years ago
I also can't reproduce this.
@ceraolo did you make the change via the GUI or in the text view? I tried all combinations. Changing amplitude of all SineVoltages from parameters window and from text view and none produced that error.
comment:9 by , 4 years ago
Replying to adeas31:
I also can't reproduce this.
Me neither.
Do you have some particular setting that you recommend to your students?
@adeas31, is there any file we can get from @ceraolo which contains all the OMEdit settings?
comment:10 by , 4 years ago
I enclose the settings we use (OMedit settings.pdf), with evidence given to some differences from the default. I suppose there are no differences from default outside the shown pictures. I enclose the log as well.
by , 4 years ago
Attachment: | Settings.pdf added |
---|
by , 4 years ago
Attachment: | omeditcommunication.log added |
---|
comment:11 by , 4 years ago
Replying to adeas31:
I also can't reproduce this.
@ceraolo did you make the change via the GUI or in the text view? I tried all combinations. Changing amplitude of all SineVoltages from parameters window and from text view and none produced that error.
Did the changes via GUI (parameters window)
comment:12 by , 4 years ago
Ah now I see why this is happening.
Enable replaceable support and you won't see the error. I will fix this.
comment:13 by , 4 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in ebd255f/OpenModelica and ported to 1.16
follow-up: 16 comment:14 by , 4 years ago
Milestone: | 1.17.0 → 1.16.2 |
---|---|
Priority: | normal → critical |
What has replaceable support to do with changing a parameter value?
follow-up: 18 comment:15 by , 4 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I'll keep this open until we release 1.16.2 or 1.17.0.
comment:16 by , 4 years ago
Replying to casella:
What has replaceable support to do with changing a parameter value?
We based *some* of the new changes on the "replaceable" prefix of the component or class which was true even for some replaceable components. So some of the new parts were ran even if the replaceable support flag was not activated which generated this error.
Now all the new parts are guarded with the replaceable support flag.
comment:18 by , 4 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Replying to casella:
I'll keep this open until we release 1.16.2 or 1.17.0.
Sorry, this was stupid, we always close the ticket when the fix is comitted to the corresponding version branch.
I can't reproduce this with a bit older OMEdit, I will compile a new one.