bugGNU Octave - Bugs: bug #46849, Shadowing warning on every command...

 
 

bug #46849: Shadowing warning on every command for function in +package directory

Submitted by:  Richard <crobar>
Submitted on:  Fri 08 Jan 2016 03:06:35 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: NoneAssigned to: None
Originator Name: Richard CrozierOpen/Closed: Open
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 08 Jan 2016 03:06:35 PM UTC, original submission:

I think I have noticed an issue with incorrectly warning about shadowing of function in +package directories in the dev build (I am going to use +package to refer to Matlab style package directories, as opposed to Octave packages).

If I have a function in +package I get a shadowing warning against functions of the same name in the global namespace. In recent builds this is issued on every single command. I have done the following to test this.

create a directory call +testpckg

Created a function file 'inverse.m' in this directory (there is an Octave built-in inverse function). This new function should be in the testpkg namespace and not clash with the built-in.

The directory containing +testpckg is added to the path on startup by running genpath on a higher level directory. I have checked that the directory +testpckg is not in the path, but the directory containing it is.

On startup I get the warning:

warning: function .../mfiles/octave-test/+testpckg/inverse.m shadows a built-in function

This isn't so bad, but as I mentioned, I now also get the same warning with every single command entered at the Octave prompt.

hg id reports 63374982750b tip @

Richard <crobar>

 

(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

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -unavailable- added by amro_octave
  • -unavailable- added by crobar (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 09 Dec 2016 11:27:03 PM UTCamro_octaveCarbon-Copy-=>Added amro_octave
    Sun 03 Jul 2016 04:20:53 PM UTCmtmillerDependencies-=>bugs #48390 is dependent
    Mon 04 Apr 2016 09:47:30 PM UTCmtmillerDependencies-=>bugs #47622 is dependent

    Back to the top


    Powered by Savane 3.1-cleanup1