bugGNU Octave - Bugs: bug #47693, Private functions undefined after...

 
 

bug #47693: Private functions undefined after modifying a private function which call them

Submitter:  Francesco Faccio <francesco_faccio>
Submitted:  Thu 14 Apr 2016 01:12:47 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Other
Status:  Fixed Assigned to:  None
Originator Name:  Francesco Faccio Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Mon 24 Jan 2022 09:59:08 AM UTC, comment #6: 

Reproducible with Octave 6.4.0.

Works for unknown reason in Octave 7.0.91 and 8.0.

Closing as fixed.

Kai Torben Ohlhus <siko1056>
Group Member
Tue 19 Apr 2016 05:45:19 PM UTC, comment #5: 

If the reported behavior isn't really a bug then we mark the report as invalid and close it.  This is definitely a bug, and I run in to it fairly often, so I would like to have it fixed as well.

Rik <rik5>
Group administrator
Mon 18 Apr 2016 09:14:12 PM UTC, comment #4: 

I'm sorry, I think there has been a misunderstanding: I thought that, as a person who has reported the bug, I should have had to find also someone who would have decided if the bug has to be fixed or not (unfortunately I'm not able to fix it). Actually, this seems to be done automatically when someone reports a bug.

Thanks for your suggestions and sorry for my inexperience.

Francesco Faccio <francesco_faccio>
Fri 15 Apr 2016 10:02:55 PM UTC, comment #3: 

I'm really busy right now so I won't be able to get to it.  If you need a fix in a hurry you can always pay a developer (See http://www.gnu.org/software/octave/commercial-support.html).  Otherwise, you can just wait for someone else to take an interest, or start wading into the code to try and find the problem.

Unfortunately, this bug doesn't affect many people since it is the debug interface, and then only when private functions are involved.  This does make it less likely that someone else will take an interest.

Rik <rik5>
Group administrator
Fri 15 Apr 2016 09:33:55 PM UTC, comment #2: 

Thank you Rik, I had checked if this bug was already known before I reported it, but I haven't found any report.

Do you know someone who could fix it?

Francesco Faccio <francesco_faccio>
Thu 14 Apr 2016 06:29:24 PM UTC, comment #1: 

I'm sure this is a duplicate, but I can't find the other bug report.  In any case, there is a workaround.  After editing the private function file, execute


clear -f


to clear the symbol table.  At least that way you don't have to quit Octave each time.

It would be nice to see this fixed.

Rik <rik5>
Group administrator
Thu 14 Apr 2016 01:12:47 PM UTC, original submission:  

When I run Octave 4.1.0+ using the graphical user interface, if I modify a private function that calls other private functions, these private functions will be considered undefined until I restart Octave.

Consider as an example the file attached:

I run func() which calls private1() which calls private2() which prints a message as expected:


>> func()
Hello from p2


if I modify private1.m without restarting Octave (adding for example a blank space), I save it, and I run func() again I get:


>> func()
error: 'private2' undefined near line 4 column 1
error: called from
    private1 at line 4 column 1
    func at line 3 column 1


If I restart Octave then everything works. This affects only private functions.

I've found this bug in Octave 4.1.0+ using Ubuntu 15.10 and in Octave 4.0.0 using Windows 10.

Francesco Faccio <francesco_faccio>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #36924:  example.zip added by francesco_faccio (765B - application/zip)

 

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 rik5 (Posted a comment)
  • -email is unavailable- added by francesco_faccio (Submitted the item)
  • -email is unavailable- added by francesco_faccio
  •  

    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
    2022-01-24 siko1056 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2016-04-14 rik5 StatusNone Confirmed
    2016-04-14 francesco_faccio Attached File- Added example.zip, #36924
        Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code