Opened 4 years ago

Closed 4 years ago

#6042 closed defect (fixed)

OpenModelica Introduction Web Documentation has error messages in it

Reported by: OpenModelica@… Owned by: Martin Sjölund
Priority: critical Milestone: 1.16.0
Component: Documentation Version:
Keywords: Cc: OpenModelica@…

Description

There are 7 red "ERROR:" text boxes in https://openmodelica.org/doc/OpenModelicaUsersGuide/latest/introduction.html#running-the-compiler-from-command-line . The first is in Example Session 2 and has

Error
[<interactive>:5:3-5:13:writable] Error: Argument 'a' to der has illegal type Integer, must be a subtype of Real.

Error: Error occurred while flattening model C

and the second is in the "Modelica Library and DCMotor Mode" section in response to the "loadModel(Modelica)" command

Error
Error: Failed to load package Modelica (default) using MODELICAPATH «OPENMODELICAHOME»/lib/omlibrary.

I suspect that these 2 and the other 5 red Error boxes are not supposed to be there.

Change History (10)

comment:1 by Francesco Casella, 4 years ago

Component: *unknown*Documentation
Milestone: Future1.16.0
Owner: changed from somebody to Adeel Asghar
Priority: highcritical
Status: newassigned

Thank you, I wanted to report that but I always forgot.

@adeas31, @sjoelund.se, would you mind having a look?

comment:2 by Martin Sjölund, 4 years ago

I'll see if I can improve it.

comment:3 by Francesco Casella, 4 years ago

Great, thanks!

comment:4 by Martin Sjölund, 4 years ago

The first one is supposed to be there for sure. It was even put there manually in the old Word-version of the documentation.

The others are due to changing how libraries are handled.

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

https://github.com/OpenModelica/OpenModelica/pull/6662 should fix this and a bit more in the documentation

comment:6 by Martin Sjölund, 4 years ago

Owner: changed from Adeel Asghar to Martin Sjölund
Status: assignedaccepted

comment:7 by Martin Sjölund, 4 years ago

Resolution: fixed
Status: acceptedclosed

comment:8 by Michael Schuh <OpenModelica@…>, 4 years ago

Cc: OpenModelica@… added

Much better. Thanks!

I still see 4 "System Message: ERROR/6" at the end of the https://openmodelica.org/doc/OpenModelicaUsersGuide/latest/introduction.html#running-the-compiler-from-command-line page in the "Running the compiler from command line" section

Example Session 1 – obtaining information about command line parameters
System Message: ERROR/6 (/var/lib/jenkins/ws/OpenModelica_master/doc/UsersGuide/source/introduction.rst, line 965)

Command 'omc --help' failed: [Errno 2] No such file or directory: 'omc': 'omc'

here is the second one

Example Session 2 – create an TestModel.mo file and run omc on it
System Message: ERROR/6 (/var/lib/jenkins/ws/OpenModelica_master/doc/UsersGuide/source/introduction.rst, line 974)

Command 'omc TestModel.mo' failed: [Errno 2] No such file or directory: 'omc': 'omc'

There are 2 more that are the similar to these two above.

I think it might be helpful for the new user in the "Using the Interactive Mode" section if "Example Session 2" in https://openmodelica.org/doc/OpenModelicaUsersGuide/latest/introduction.html#interactive-session-with-examples was updated to have something like:

model C // This class demonstrates what an error message will look like by making an illegal derivative of an integer.  Only derivatives of Reals are allowed.  //

comment:9 by Francesco Casella, 4 years ago

Resolution: fixed
Status: closedreopened

comment:10 by Martin Sjölund, 4 years ago

Resolution: fixed
Status: reopenedclosed

The remaining issues were resolved some time ago

Note: See TracTickets for help on using tickets.