Opened 4 years ago

Closed 4 years ago

#6364 closed defect (fixed)

Add a section to the documentation about well-known issues with non-standard Modelica code

Reported by: casella Owned by: casella
Priority: high Milestone: 1.17.0
Component: Documentation Version: 1.16.0
Keywords: Cc: robha67

Description

This report shows what happens when the NF is switched on by default. There are 1000 improvements, but also more than 600 regressions. Most of them take place in old libraries that contained illegal Modelica code, so they can be used to sample the most commonplace istances of such a problem.

OpenModelica is tried out by more and more new potential users, which may encounter failures which are not due to OMC shortcomings, but rather to non-standard Modelica code. We should add a section to the documentation that describes the most common situations and how to fix them.

Change History (6)

comment:1 Changed 4 years ago by casella

In case of errors which are likely caused by violations of the Modelica specification we should add a specific message to the compiler error, such as

Non-array modification ‘4‘ for array component ‘p‘, possibly due to missing ‘each‘.
This error is possibly due to non-standard Modelica code, see the User Guide <link>

that refer the user to the section of the User Guide that explains the whole story.

comment:2 Changed 4 years ago by casella

comment:3 Changed 4 years ago by adrpo

Found another bad one today. This one doesn't even parse in spec compliant tools:
https://github.com/MarekMatejak/Physiolibrary/issues/33

comment:4 Changed 4 years ago by casella

PR 7130 updated accordingly.

comment:5 Changed 4 years ago by casella

Merged in aae2bf0.

comment:6 Changed 4 years ago by casella

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.