Uh oh!
There was an error while loading. Please reload this page.
Update modelica system - #277
Conversation
This needs PR #272 - removed this dependency and solved the dependency problem by a temporary solution - use Exception instead of OMCSessionException for now ... |
784f937 to
34921eeCompare2c3ab36 to
92d804aCompareadeas31
commented
May 5, 2025
Seems this one is next in line. Please rebase it so I can start reviewing it. |
92d804a to
1433499Comparesyntron
commented
May 5, 2025
@adeas31 done |
adeas31
left a comment
There was a problem hiding this comment.
LGTM.
However, the verbose flag calls getErrorString() which is useful in some cases to show the compiler notifications to the user. For example, if you call this,
loadString("model M annotation (uses(Modelica(version=\"4.0.0\"))); end M;");
You will not get the notifications that the Modelica package is loaded due to uses annotation unless you call ``getErrorString()`.
I suggest we always call getErrorString() inside sendExpression and logs it using the logger. To further enhance this, we can use getMessagesStringInternal() instead of getErrorString() since getErrorString() returns string without any structure you don't know if its an error, warning or a notification. If we use getMessagesStringInternal() we can properly log using error, warning and info.
syntron
commented
May 6, 2025
This is done in PR #278; please check mainly 7658886; I will check the usage of |
Update ModelicaSystem on top of PR #273
Changes: