bugGNU Octave - Bugs: bug #59213, classdef: code changes have no...

 
 

bug #59213: classdef: code changes have no effect

Submitted by:  Edrysson Rocha <edrysson>
Submitted on:  Fri 02 Oct 2020 08:07:52 AM UTC  
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Performance
Status:  Need Info Assigned to:  None
Originator Name:  Weird File behaviour Open/Closed:  Open
Release:  5.2.0 Operating System:  Microsoft Windows

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

Fri 02 Oct 2020 04:27:20 PM UTC, comment #4: 

comment #3:

> See also bug #55887 and bug #45893 (but in this case no "clear" at all issued).


comment #2:

> Does one of
>

> clear classes
> clear -c

>
> help? https://www.octave.org/doc/v5.2.0/XREFclear.html

Edrysson Rocha <edrysson>
Fri 02 Oct 2020 08:58:12 AM UTC, comment #3: 

See also bug #55887 and bug #45893 (but in this case no "clear" at all issued).

Kai Torben Ohlhus <siko1056>
Project Member
Fri 02 Oct 2020 08:31:43 AM UTC, comment #2: 

Does one of

clear classes
clear -c

help? https://www.octave.org/doc/v5.2.0/XREFclear.html

Kai Torben Ohlhus <siko1056>
Project Member
Fri 02 Oct 2020 08:29:55 AM UTC, comment #1: 

Generating previews of the pics





Kai Torben Ohlhus <siko1056>
Project Member
Fri 02 Oct 2020 08:07:52 AM UTC, original submission:  

I was trying Octave today. But it's behaviour seems to be very strange. When i was modifying some programs, the behaviour would not change.

So i decided to check it with a more simple program, just a basic_test, wich is actually a class. I would initialize it with a constant value "a" and then sum with another value "b". It works normaly, but if change the code, so its sums 2 times b, the output doesn't change. Altough when i close octave and open it again and run the same file without even opening it on editor, its suddenly change the output.

I'll send some photos of the code and output.

Images:
1) "program_prev.png" its the class wich sums a+b
2) "program_after.png" its the class summing a+b+b
3) "outputs_without_closing.png" its i using the classe before and after changing (and saving) the file, and reaching same value.
4) "output_after_closing.png" its the behaviour after closing and opening octave again.

Edrysson Rocha <edrysson>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #49911:  program_prev.png added by edrysson (13KiB - image/png)
file #49912:  program_after.png added by edrysson (13KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by siko1056 (Posted a comment)
  • -email is unavailable- added by edrysson (Submitted the item)
  •  

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

    Only project members can vote.

     

     

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-10-02 siko1056 StatusNone => Need Info
    2020-10-02 siko1056 SummaryWhen i execute a file after updatin and saving it, its behaviour like a older version. => classdef: code changes have no effect
    2020-10-02 edrysson Attached File- => Added program_prev.png, #49911
        Attached File- => Added program_after.png, #49912
        Attached File- => Added outputs_whitout_closing.png, #49913
        Attached File- => Added output_after_closing.png, #49914

    Back to the top


    Powered by Savane 3.5