bugGNU Octave - Bugs: bug #51921, Variable editor gets confused...

 
 

bug #51921: Variable editor gets confused about variable it is operating on

Submitter:  Dan Sebald <sebald>
Submitted:  Sat 02 Sep 2017 07:14:41 PM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 29 Jan 2018 04:07:01 AM UTC, comment #3: 

This works for me after


changeset:   24646:d36e1f768bfa
user:        John W. Eaton <jwe@octave.org>
date:        Sat Jan 27 13:51:31 2018 -0500
summary:     allow diagonal and permutation matrices to be display in variable editor


Marking as "Ready for Test"

Rik <rik5>
Group administrator
Mon 11 Dec 2017 07:50:28 PM UTC, comment #2: 

It seems to me that the data type is not changing to full when editing diagonal matrices.

That the value of "ans" changes seems to happen because the variable editor is evaluating expressions to get and set values and that is also setting ans.

John W. Eaton <jwe>
Group administrator
Sat 02 Sep 2017 09:15:04 PM UTC, comment #1: 

Confirmed (on Windows) - good catch Dan.

I am sure this used to work properly in the past; I've been using the variable editor a lot (but mostly on Windows).

Philip Nienhuis <philipnienhuis>
Group Member
Sat 02 Sep 2017 07:14:41 PM UTC, original submission:  

Some observations about the variable editor.

1) When double clicking on a variable in Workspace window, the associated variable in the Variable Editor is brought to the fore, but the Variable Editor tab itself remains where it was in the stack of tabs.  It would be nice to also bring the Variable Editor tab to the front.

2) I think there may be something not quite correct about the way tables are associated to variables.  I forget the Qt model, but they have two entities, IIRC.  There is like a data component and a display/table component through which the data is fed.  Suffice it to say that it wouldn't surprise me if somehow there is confusion about what data component is being operated on by the table.  Try something like the following:


>> x = 1
x =  1
>> y = eye(5)
y =

Diagonal Matrix

   1   0   0   0   0
   0   1   0   0   0
   0   0   1   0   0
   0   0   0   1   0
   0   0   0   0   1

>> 4 * 5
ans =  20
>>


Now double click on the y variable in Workspace to bring the 5x5 table to the screen in Variable Editor.  Double click on the element of the fifth row, first column to edit.  Change the "0" to something like "34".  Hit enter and the associated box becomes green background, but the element value has turned back to "0" (when it should read 34).  Now, to make the table change effective in Octave core space, mouse click in the Variable Editor somewhere there is not the table.  Look over in Workspace window and notice that the value of "ans" has changed to 34.

I'm guessing that the change from 0 to 34 is causing a change in the value of "ans" data model of the GUI...hence the green background element of y matrix is going back to "0" right away.

Dan Sebald <sebald>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by sebald (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-02-02 rik5 StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2018-01-29 rik5 StatusConfirmed Ready For Test
    2017-09-02 philipnienhuis StatusNone Confirmed
        Operating SystemGNU/Linux Any

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code