OMCompiler icon indicating copy to clipboard operation
OMCompiler copied to clipboard

[BE] Added usage of failtrace debug flag

Open kabdelhak opened this issue 7 years ago • 6 comments

  • BackendEquation.solveEquation

kabdelhak avatar Apr 11 '18 14:04 kabdelhak

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Apr 11 '18 14:04 CLAassistant

The tests run correctly according to OpenModelica_TEST_PULL_REQUEST 2018-04-11_18-16-17.

OpenModelica-Hudson avatar Apr 11 '18 16:04 OpenModelica-Hudson

Welcome @kabdelhak. Thanks for your first contribution. Why do you want to hide the error message? Is the function supposed to fail and the test suite doesn't cover that case?

lochel avatar May 08 '18 10:05 lochel

Thank you,

the commit was manly for me to get to used to the whole GIT-process. I stumpled upon it and asked Willi Braun about what that might be and we figured, that the function is allowed to fail and is not a crucial error. We thought it should just be shown if explicitly asked for.

Am 08.05.18 12:55 schrieb Lennart Ochel [email protected]:

Welcome @kabdelhak(https://github.com/kabdelhak). Thanks for your first contribution.

Why do you want to hide the error message? Is the function supposed to fail and the test suite doesn't cover that case?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub(https://github.com/OpenModelica/OMCompiler/pull/2357#issuecomment-387364677), or mute the thread(https://github.com/notifications/unsubscribe-auth/AkRS_UoyP5cauOFho0Jx-He6e-9YEuvnks5twXmzgaJpZM4TQMiW).

kabdelhak avatar May 08 '18 11:05 kabdelhak

@kabdelhak, @wibraun Do you have a model where this function actually fails? It should obviously fail for algorithms, when equations, and if equations. However, if it is not expected to reach one of these cases, then I would rather keep the error message explicit.

lochel avatar May 14 '18 15:05 lochel

@lochel It depends on the usage of this function. If one would like to use it as a try and in failing case do something else, than the error message is totally misleading, especially for end-users. So I think it's okay to hide it. In the new removeSimpleEquations module is used like that and therefore I proposed to hide the error messages instead of having them in all related tests.

wibraun avatar May 14 '18 16:05 wibraun