DocTreeGenerator icon indicating copy to clipboard operation
DocTreeGenerator copied to clipboard

Problem when two modules contain a function with the same name

Open cfbrobak opened this issue 8 years ago • 0 comments

While trying out DocTreeGenerator, I seem to have found a problem: DocTreeGenerator imports all modules before extracting documentation from each module. If two modules both contain a function having the same name, only the function from the last module imported is seen by DocTreeGenerator. Message displayed:

** No functions found in ModuleA-v1; (typically this means your functions or cmdlets are not exported)

In the situation above, I had a ModuleA-v2 containing all the same functions as ModuleA-v1. This case simulates two versions of the same module.

Even if not handling module versions, it is not unlikely for two modules to contain functions having the same name.

cfbrobak avatar Oct 25 '17 05:10 cfbrobak