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

 
 

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

Submitted by:  Dan Sebald <sebald>
Submitted on:  Sat 02 Sep 2017 07:14:41 PM UTC  
 
Category: GUISeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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>
Project 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:

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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 02 Sep 2017 09:15:04 PM UTCphilipnienhuisStatusNone=>Confirmed
      Operating SystemGNU/Linux=>Any

    Back to the top


    Powered by Savane 3.1-cleanup1