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: sjoelund.se
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 Changed 4 years ago by casella

  • Component changed from *unknown* to Documentation
  • Milestone changed from Future to 1.16.0
  • Owner changed from somebody to adeas31
  • Priority changed from high to critical
  • Status changed from new to assigned

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

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

comment:2 Changed 4 years ago by sjoelund.se

I'll see if I can improve it.

comment:3 Changed 4 years ago by casella

Great, thanks!

comment:4 Changed 4 years ago by sjoelund.se

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 Changed 4 years ago by sjoelund.se

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

comment:6 Changed 4 years ago by sjoelund.se

  • Owner changed from adeas31 to sjoelund.se
  • Status changed from assigned to accepted

comment:7 Changed 4 years ago by sjoelund.se

  • Resolution set to fixed
  • Status changed from accepted to closed

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

  • 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 Changed 4 years ago by casella

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:10 Changed 4 years ago by sjoelund.se

  • Resolution set to fixed
  • Status changed from reopened to closed

The remaining issues were resolved some time ago

Note: See TracTickets for help on using tickets.