-
Notifications
You must be signed in to change notification settings - Fork 490
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
Using module incorrectly marked as wrong? #1599
Comments
Hi @PrzemyslawKlys, if you run PSScriptAnalyzer on this directly, do you get an error? There should be an explanation of how to do that in our script analysis bug template. |
or
Although I've never run this manually so not sure what to expect as an output.
|
Hmmm looks like this might be on us. A I imagine what's happening is that parsing the script in memory in PSES doesn't find the module the way that executing the file does. We should look into it. |
I think it works correctly now. |
System Details
System Details Output
Issue Description
I am using PSDsHook module. It's installed from PSGallery. It works fine. I use it as Import-Module and it doesn't bug out. I change it to
using module PSDsHook
and it works fine. However for VSCode it's a problem. It says module can't be found.Since PSDsHook uses Classes it requires
using module
instead of standard Import-Module.Expected Behaviour
Not marking everything red.
Actual Behaviour
Marking file on left as red, claiming it's an error.
Attached Logs
Follow the instructions in the troubleshooting docs
about capturing and sending logs.
The text was updated successfully, but these errors were encountered: