Skip to content

Unapproved verbs warning in latest preview #2626

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

Closed
nohwnd opened this issue Apr 10, 2020 · 4 comments · Fixed by PowerShell/PowerShellEditorServices#1258
Closed

Unapproved verbs warning in latest preview #2626

nohwnd opened this issue Apr 10, 2020 · 4 comments · Fixed by PowerShell/PowerShellEditorServices#1258
Labels
Resolution-Fixed Will close automatically.

Comments

@nohwnd
Copy link
Contributor

nohwnd commented Apr 10, 2020

System Details

System Details Output


### VSCode version: 1.44.0 2aae1f26c72891c399f860409176fe435a154b13 x64

### VSCode extensions:
atomiks.moonlight@0.10.3
bierner.github-markdown-preview@0.0.2       
bierner.markdown-checkbox@0.1.3
bierner.markdown-emoji@0.0.9
bierner.markdown-preview-github-styles@0.1.6
bierner.markdown-yaml-preamble@0.0.4        
DennisVash.summer-time@3.0.4
DotJoshJohnson.xml@2.5.0    
humao.rest-client@0.23.2
konradkeska.outerspace-next@1.15.0
mechatroner.rainbow-csv@1.6.0
ms-python.anaconda-extension-pack@1.0.1
ms-python.python@2020.3.71659
ms-vscode-remote.remote-wsl@0.44.2
ms-vscode.cpptools@0.27.0
ms-vscode.powershell-preview@2020.4.1
redhat.vscode-yaml@0.7.2
telesoho.vscode-markdown-paste-image@0.12.3
yzane.markdown-pdf@1.4.4
yzhang.markdown-all-in-one@2.8.0


### PSES version: 2.1.0.0

### PowerShell version:

Name                           Value
----                           -----
PSVersion                      6.2.4
PSEdition                      Core
GitCommitId                    6.2.4
OS                             Microsoft Windows 10.0.19041 
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Issue Description

I see this after update, maybe you renamed something or do not provide the suppress warning switch on load anymore?

WARNING: The names of some imported commands from the module 'PowerShellEditorServices' include unapproved verbs that might make
them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.

Expected Behaviour

No warnings are output into my console.

Actual Behaviour

A warning is shown.

Attached Logs

Follow the instructions in the troubleshooting docs
about capturing and sending logs.

@ghost ghost added the Needs: Triage Maintainer attention needed! label Apr 10, 2020
@nohwnd nohwnd changed the title Unaproved verbs warning in latest preview Unapproved verbs warning in latest preview Apr 10, 2020
@rjmholt
Copy link
Contributor

rjmholt commented Apr 10, 2020

That's from PowerShell/PowerShellEditorServices#1255. Ideally we can either import the module with -DisableNameChecking or hide the command in some other way.

@SeeminglyScience
Copy link
Collaborator

@TylerLeonhardt FYI if you wanted to go with my suggestion from the PR, you could skip all the ALC problems by just resolving the cmdlet type with Type.GetType("CmdletName, HostAssembly"). I think you're already doing similar with PSConsoleReadLine, and it works for non-public types as well.

@TylerLeonhardt
Copy link
Member

Ugh

@TylerLeonhardt
Copy link
Member

fix out for this

@SydneyhSmith SydneyhSmith added Resolution-Fixed Will close automatically. and removed Needs: Triage Maintainer attention needed! labels Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Fixed Will close automatically.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants