Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with #Requires -Modules PoSHRSJob #211

Open
jamesringer opened this issue Sep 1, 2020 · 0 comments
Open

Issue with #Requires -Modules PoSHRSJob #211

jamesringer opened this issue Sep 1, 2020 · 0 comments

Comments

@jamesringer
Copy link

jamesringer commented Sep 1, 2020

Test.zip

I'm new to PowerShell so excuse me if I use poor terminology or don't fully understand concepts. I have a collection of functions/scripts I combined in a module for personal use.

A couple of the functions use PoSHRSJob. I'm checking for and loading PoSHRSJob using #Requires -Modules PoSHRSJob. I noticed an issue with tab completion. After some trouble shooting I determined the issue occurs after I import my module and remove my module. I narrowed this down to the TabExpansion2 function.

Prior to importing my module the the TabExpansion2 function is available (no source). After I've imported my module TabExpansion2 is available, but the source is changed to my module. Then if I remove my module the TabExpansion2 function is no longer available. I work around this by restarting PowerShell.

The issue seems to be related to #Requires -Modules PoSHRSJob. When I use Import-Module PoSHRSJob instead the issue does not occur. The files in the zip can reproduce the issue by importing test.psm1. There is a picture in the screenshots folder demonstrating the issue.

MVKozlov added a commit to MVKozlov/PoshRSJob that referenced this issue Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant