Bug 363445

Summary: Octave variables with the suppressed output are not recognized
Product: [Applications] cantor Reporter: Alexander Semke <alexander.semke>
Component: octave-backendAssignee: Filipe Saraiva <filipe>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: alexanderrieder, filipe
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Alexander Semke 2016-05-23 18:57:40 UTC
Currently, variable definitions in octave ended with ';' are not recognized as variables in Cantor.

Reproducible: Always

Steps to Reproduce:
1. start new octave session in Cantor
2. create a vector via a=[1 2 3]
3. the variable "a" is shown in the variable manager
4. create a vector via "b=[1 2 3];
5. the variable "b" is _not_ shown in the variable manager


Expected Results:  
the variable "b", created as expected above, should be shown in the variable manager
Comment 1 Filipe Saraiva 2017-01-28 14:21:09 UTC
For some backends, Cantor gets the output of input commands and parse it to variable management. This way Cantor put variables and their respective values in variable management widget.

If the programming language has commands to suppress the output, the values will not be used in variable management widget.

It is the case for this bug in Octave, but it is also present in other backends, like Scilab.

Fix it can be hard. An approach is to use a command to iterate in all variables defined by the user, get their values one-by-one and parse it to variable management widget. I researched how to do it for Octave but I don't know if it is possible.

So, for now there are bugs and improvements with higher priority than it. If someone wants to resolve this bug, go ahead. I will not mark it as "WONTFIX" for while.