-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement sendExpression via executeCommand #97
Comments
omc-java-apis sendExpression does not throw any Exceptions. I created a few testcases for this functionality.
im quite sure that at least the sendExpression4 Error is because of ModelicaVersion 3.2.3 which gets loaded in a test prior and was not used to produce expected output. PS.: The sendExpression Links somehow don't jump to the correct line when clicked... RightClick -> copy link works fine |
The Problem with sendExpression4 is not because of different ModelicaStandardLibrary but because of loading any ModelicaStandardLibrary... I will adjust the expected output. |
Two Questions remain:
|
It does not declare any Exceptions in the header, but that does not mean that it wont throw runtime exceptions, those are two different things. If you look at the implementation of |
It was a good idea to implement the test cases. This allows us to discuss test design:
|
As you can see, the difference lies in the column number where the error is reported. You expect to see the error from line 1 column 1 to line one column 18, which is the end of the string The downside to this is that with
The OMC tries to install unknown libraries from a central package index if possible. The "correct" way to do this seems to be to use |
sendExpression
that accepts a string in the same format as would be required by the OMShellgetErrorString()
does not return an empty string after the command has been sent, report the results back to the user.loadModel(Modelica, {"3.2.3"})
setCommandLineOptions("-d=newInst,nfAPI")
setCommandLineOptions("--unitChecking")
getSimulationOptions(Modelica.Electrical.Analog.Examples.Rectifier)
simulate(Modelica.Electrical.Analog.Examples.Rectifier)
cd("/home")
cd()
The text was updated successfully, but these errors were encountered: