open-simulation-platform / cosim-cli

Command-line interface for libcosim
https://open-simulation-platform.github.io/cosim
Mozilla Public License 2.0
10 stars 4 forks source link

cosim run-single mixing windows and linux paths #85

Closed frl000 closed 2 years ago

frl000 commented 3 years ago

The current release cosim-cli/v0.5.0 does fail in the form C:\>cosim.exe run-single C:\PATH\OspSystemStructure.xml with error message error: No resolvers available to handle URI: file:///C:/PATH/OspSystemStructure.xml Specifying relative paths ends up in error message error: internal: cosim::path_to_file_uri: Input requirement not satisfied: path.empty() || path.has_root_directory() Tested on W10.0.17763, command.exe

ljamt commented 2 years ago

The current release cosim-cli/v0.5.0 does fail in the form C:\>cosim.exe run-single C:\PATH\OspSystemStructure.xml with error message error: No resolvers available to handle URI: file:///C:/PATH/OspSystemStructure.xml

This is expected as the run-single command can only be used for .fmu files.

Specifying relative paths ends up in error message error: internal: cosim::path_to_file_uri: Input requirement not satisfied: path.empty() || path.has_root_directory()

Using relative paths for fmus when running inspectand run-single will be solved with #98