Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

No fail messages

No fail messages

I'm starting to use OM for the first time.
I put in some commands into OMShell-terminal that should fail and I get no messages:

Code:

>>> a:=1:5;

>>> b:=3:8
{3,4,5,6,7,8}
>>> a*b

>>>

So I tried setting setDebugFlags("failtrace") as below:

Code:

>>> setDebugFlags("failtrace")

true
>>>

but I still get no fail messages.
What should I do to get messages?
Thanks, M

Re: No fail messages

Call getErrorString()

Re: No fail messages

Yes, that lists all the errors that occurred but I'm wondering why I don't get the same response as I see in the README.Linux.txt or in the OpenModelica Users Guide
Version 2012-12-08 in Example Session 1 on pages 14 & 15. Surely I don't have to execute getErrorString() after every command to see if there was an error?

Re: No fail messages

The one in the README uses the Qt version of OMShell, which executes getErrorString() after every single command (if I remember correctly). Someone probably forgot that the terminal version would give a different output.

Re: No fail messages

OK, thanks - it's comforting to know I'm getting the correct behaviour.

There are 0 guests and 0 other users also viewing this topic