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

The term 'Show-DeprecationMessage' is not recognized #3405

Closed
se35710 opened this issue Apr 28, 2019 · 3 comments · Fixed by #3406
Closed

The term 'Show-DeprecationMessage' is not recognized #3405

se35710 opened this issue Apr 28, 2019 · 3 comments · Fixed by #3406

Comments

@se35710
Copy link
Contributor

se35710 commented Apr 28, 2019

[...]
Running installer script...
Show-DeprecationMessage : The term 'Show-DeprecationMessage' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At ~\scoop\apps\scoop\current\lib\decompress.ps1:191 char:5
+     Show-DeprecationMessage $MyInvocation 'Expand-7ZipArchive'
+     ~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Show-DeprecationMessage:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
[...]
@Ash258
Copy link
Contributor

Ash258 commented Apr 28, 2019

lib\decompress.ps1 is missing import of $PSScriptRoot\core.ps1

@chawyehsu
Copy link
Member

@Ash258 No that's not true. The reason is that the function name in core.ps1 is Show-DeprecatedWarning...

@niheaven
Copy link
Member

Wow, since @Ash258 notify me of adding these function and in his comment it is 'Show-DeprecationMessage'... It looks like 'Show-DeprecationWarning' too much and I took a glance of #3341 and didn't noticed the exact spelling. 😭

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

Successfully merging a pull request may close this issue.

4 participants