Opened 9 years ago

Closed 5 years ago

#3745 closed defect (fixed)

omc --version works differently in Linux and Windows

Reported by: Francesco Casella Owned by: somebody
Priority: high Milestone: 1.14.0
Component: *unknown* Version: v1.9.4-dev-nightly
Keywords: Cc:

Description

Under Windows, omc --version returns the OMCompiler version and GIT hash. Under Linux, the same command returns the OpenModelica version and GIT hash. These are then reported by OMEdit.

This is extremely confusing, and makes it unnecessarily complicated to compare the behaviour of the tool across different platforms during development. Please make sure the output of omc --version is consistent across different OS's

Change History (11)

comment:1 by Lennart Ochel, 9 years ago

I think this depends on how omc is build. It could be built from the superproject or just from OMCompiler. However, I think that omc –version should always display the OMCompiler hash. If necessary, there could be a verbose option to also display the superproject hash (if available).

comment:2 by Adam Dershowitz, 9 years ago

As one more data point, on a Mac:

omc --version
OpenModelica 1.9.4~dev.beta2-109-gc8e2060

comment:3 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.5

Milestone pushed to 1.9.5

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

Milestone: 1.9.51.10.0

Milestone renamed

comment:5 by Henning Kiel, 9 years ago

For more confuxion: my Mac shows:

build/bin/omc --version

v1.10.0-dev.383+g3bd7ac2

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

If it says v1.10.0-dev.383+g3bd7ac2, it means it is OMCompiler.git hash. If it says OpenModelica v1.xxxxx, it is an OpenModelica.git hash.

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

Milestone: 1.10.01.11.0

Ticket retargeted after milestone closed

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

Milestone: 1.11.01.12.0

Milestone moved to 1.12.0 due to 1.11.0 already being released.

comment:9 by Francesco Casella, 7 years ago

Milestone: 1.12.01.13.0

Milestone moved to 1.13.0 due to 1.12.0 already being released.

comment:10 by Francesco Casella, 6 years ago

Milestone: 1.13.01.14.0

Rescheduled to 1.14.0 after 1.13.0 releasee

comment:11 by Francesco Casella, 5 years ago

Resolution: fixed
Status: newclosed

I understand this is now fixed:

  • omc --version on Linux: OpenModelica 1.14.0~dev-26579-gf5eb454
  • omc --version on Windows: OpenModelica v1.14.0-dev-26579-gf5eb454ee1 (64-bit)

OK, the length of the reported hash is not the same, but this is not a problem.

Note: See TracTickets for help on using tickets.