Closed CSchoel closed 3 years ago
To fix this issue, please fork https://github.com/THM-MoTE/omc-java-api and create a pull request in the original repo.
This is now fixed in omc-java-api v0.3.6. The branch feature/sonarQube
already includes the updated version, since it needs this fix.
Steps to reproduce
getVersion
(input option 2 of console client)Expected behavior
Server reports OMC version.
Actual behavior
Exception is thrown on the server:
Speculations about cause
The omc-java-api does not seem to be equipped to deal with development versions of OpenModelica (like
OMCompiler v1.17.0-dev.344+gc8233fa62a
instead ofOMCompiler v1.17.0
). This should be as simple as replacing the regex used to parse the version number. For a regex that works fine with development versions (as far as I have tested it), see version parsing in MoST.jl.