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

 
 

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

Submitted by:  Francesco Faccio <francesco_faccio>
Submitted on:  Thu 14 Apr 2016 01:12:47 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Other
Status: ConfirmedAssigned to: None
Originator Name: Francesco FaccioOpen/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.

 

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

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

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

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

    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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 14 Apr 2016 06:29:24 PM UTCrik5StatusNone=>Confirmed
    Thu 14 Apr 2016 01:12:47 PM UTCfrancesco_faccioAttached File-=>Added example.zip, #36924
      Carbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1