Bug 363445 - Octave variables with the suppressed output are not recognized
Summary: Octave variables with the suppressed output are not recognized
Status: RESOLVED INTENTIONAL
Alias: None
Product: cantor
Classification: Applications
Component: octave-backend (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Filipe Saraiva
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-23 18:57 UTC by Alexander Semke
Modified: 2017-04-28 19:01 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.