depfun finds unrelated dependancies
Mostrar comentarios más antiguos
Hello,
I'm having trouble using 'depfun' to identify dependencies in my code. When I run the function, it reports a dependency on a file in my MATLAB user directory.
The file I'm running depfun on is in a package '+biopack\resolveoverlaps.m' and has no actual dependencies but the search for dependencies is finding 'ResolveOverlaps.m' in my MATLAB folder.
Just to make things more peculiar, the Dependency Report for the file does not find this file from my user space.
I need a reliable, programmatic way of confirming that the code I'm executing is coming from a specific set of folders.
Does anyone know why depfun is reporting false dependencies? Is there a way of configuring it that follows the expected behaviour as shown in the 'dependency report'? Does anyone have any ideas for a way of managing the scenario to tell the difference between a file that has a dependency on a file of the same name in your user folder and this false dependency?
Any advice would be greatly appreciated.
- Gabe
1 comentario
Gabriel
el 12 de Mzo. de 2014
Respuestas (1)
Kelly Kearney
el 12 de Mzo. de 2014
0 votos
I stopped using depfun years ago... I find it often makes these sort of mistakes, where it latches on to a shadowed function or subfunction rather than the proper dependency, and when you have a lot of toolboxes installed this can lead to ridiculous results (returning hundreds of incorrect dependencies for a single file).
The newer version may be a little better, but my solution was to switch to fdep to analyze dependencies. Much more reliable, in my opinion, and gives more detailed output as well.
Categorías
Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!