Opened 9 years ago

Closed 5 years ago

#3745 closed defect (fixed)

omc --version works differently in Linux and Windows

Reported by: 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 Changed 9 years ago by lochel

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 Changed 9 years ago by dersh

As one more data point, on a Mac:

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

comment:3 Changed 9 years ago by sjoelund.se

  • Milestone changed from 1.9.4 to 1.9.5

Milestone pushed to 1.9.5

comment:4 Changed 9 years ago by sjoelund.se

  • Milestone changed from 1.9.5 to 1.10.0

Milestone renamed

comment:5 Changed 8 years ago by hkiel

For more confuxion: my Mac shows:

build/bin/omc --version

v1.10.0-dev.383+g3bd7ac2

comment:6 Changed 8 years ago by sjoelund.se

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

  • Milestone changed from 1.10.0 to 1.11.0

Ticket retargeted after milestone closed

comment:8 Changed 8 years ago by sjoelund.se

  • Milestone changed from 1.11.0 to 1.12.0

Milestone moved to 1.12.0 due to 1.11.0 already being released.

comment:9 Changed 7 years ago by casella

  • Milestone changed from 1.12.0 to 1.13.0

Milestone moved to 1.13.0 due to 1.12.0 already being released.

comment:10 Changed 6 years ago by casella

  • Milestone changed from 1.13.0 to 1.14.0

Rescheduled to 1.14.0 after 1.13.0 releasee

comment:11 Changed 5 years ago by casella

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

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.