-
Notifications
You must be signed in to change notification settings - Fork 393
TypeNotFound when using classes #1064
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
Comments
Apols if this is a simple answer but how do I get around this in vscode? Right now I have several dozen green files in an otherwise clean powershell library due to this issue. I simply want to stop the files being displayed as having problems. |
@abelal83 This is what issue #1041 is about: Currently those warnings cannot be suppressed other than filtered out via command line. Previously, PSSA failed completely, hence why it was decided to accept graceful parser errors but still display them as warnings to the user that only a part of the script could be analysed due to the limitation of the parser (PSSA completely relies on the parser in order to do its work). In hindsight, it was a mistake to return an object, which is being displayed as an issue in VSCode instead of just returning a warning and let VSCode deal with the display of the warning. |
@bergmeister gotcha, thank you for explaining. |
Steps to reproduce
Expected behavior
Actual behavior
If an unexpected error was thrown then please report the full error details using e.g.
$error[0] | Select-Object *
Environment data
The text was updated successfully, but these errors were encountered: