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 , 9 years ago
comment:2 by , 9 years ago
As one more data point, on a Mac:
omc --version OpenModelica 1.9.4~dev.beta2-109-gc8e2060
comment:5 by , 9 years ago
For more confuxion: my Mac shows:
build/bin/omc --version
v1.10.0-dev.383+g3bd7ac2
comment:6 by , 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:8 by , 8 years ago
Milestone: | 1.11.0 → 1.12.0 |
---|
Milestone moved to 1.12.0 due to 1.11.0 already being released.
comment:9 by , 7 years ago
Milestone: | 1.12.0 → 1.13.0 |
---|
Milestone moved to 1.13.0 due to 1.12.0 already being released.
comment:11 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | new → 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.
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).