Title: Get-Module -ListAvailable prints errors from Format file · Issue #12896 · PowerShell/PowerShell · GitHub
Open Graph Title: Get-Module -ListAvailable prints errors from Format file · Issue #12896 · PowerShell/PowerShell
X Title: Get-Module -ListAvailable prints errors from Format file · Issue #12896 · PowerShell/PowerShell
Description: Steps to reproduce Get-Module -ListAvailable Expected behavior No errors Actual behavior Output: > Get-Module -ListAvailable Directory: /Users/felix/.local/share/powershell/Modules ModuleType Version PreRelease Name PSEdition ExportedCom...
Open Graph Description: Steps to reproduce Get-Module -ListAvailable Expected behavior No errors Actual behavior Output: > Get-Module -ListAvailable Directory: /Users/felix/.local/share/powershell/Modules ModuleType Versi...
X Description: Steps to reproduce Get-Module -ListAvailable Expected behavior No errors Actual behavior Output: > Get-Module -ListAvailable Directory: /Users/felix/.local/share/powershell/Modules ModuleType Ve...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/12896
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Get-Module -ListAvailable prints errors from Format file","articleBody":"\u003c!--\r\n\r\nFor Windows PowerShell 5.1 issues, suggestions, or feature requests please use the following link instead:\r\nWindows PowerShell [UserVoice](https://windowsserver.uservoice.com/forums/301869-powershell)\r\n\r\nThis repository is **ONLY** for PowerShell Core 6 and PowerShell 7+ issues.\r\n\r\n- Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\r\n- Search the existing issues.\r\n- Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\r\n- Refer to the [known issues](https://docs.microsoft.com/powershell/scripting/whats-new/known-issues-ps6).\r\n\r\n-->\r\n\r\n## Steps to reproduce\r\n\r\n```powershell\r\nGet-Module -ListAvailable\r\n```\r\n\r\n## Expected behavior\r\n\r\nNo errors\r\n\r\n## Actual behavior\r\n\r\nOutput:\r\n\r\n```none\r\n> Get-Module -ListAvailable\r\n\r\n\r\n Directory: /Users/felix/.local/share/powershell/Modules\r\n\r\nModuleType Version PreRelease Name PSEdition ExportedCommands\r\n---------- ------- ---------- ---- --------- ----------------\r\nScript 1.0.5 #ERR Base64 Desk {ConvertTo-Base64String, ConvertFrom-Base64String}\r\nFailed to evaluate expression \"\r\n if ($_.PrivateData -and $_.PrivateData.PSData)\r\n {\r\n $_.PrivateData.PSData.PreRelease\r\n }\".\r\n\r\n\r\nScript 1.3.1 #ERR Configuration Desk {Import-Configuration, Export-Configuration, Get-StoragePath, Add-MetadataConverter…}\r\nFailed to evaluate expression \"\r\n if ($_.PrivateData -and $_.PrivateData.PSData)\r\n {\r\n $_.PrivateData.PSData.PreRelease\r\n }\".\r\n\r\n\r\nScript 0.1.0 #ERR GcloudTabComplete Core,Desk Add-GcloudToProfile\r\nFailed to evaluate expression \"\r\n if ($_.PrivateData -and $_.PrivateData.PSData)\r\n {\r\n $_.PrivateData.PSData.PreRelease\r\n }\".\r\n\r\n\r\nScript 7.0.1 #ERR ImportExcel Desk {Add-ConditionalFormatting, Add-ExcelChart, Add-ExcelDataValidationRule, Add-ExcelName…}\r\nFailed to evaluate expression \"\r\n if ($_.PrivateData -and $_.PrivateData.PSData)\r\n {\r\n $_.PrivateData.PSData.PreRelease\r\n }\".\r\n\r\n\r\nBinary 0.4.1 #ERR Microsoft.PowerShell.ConsoleGuiToo… Core {Out-ConsoleGridView, ocgv}\r\nFailed to evaluate expression \"\r\n if ($_.PrivateData -and $_.PrivateData.PSData)\r\n {\r\n $_.PrivateData.PSData.PreRelease\r\n }\".\r\n\r\n\r\nScript 0.2.0 #ERR Microsoft.PowerShell.GraphicalTools Core {Out-GridView, ogv}\r\nFailed to evaluate expression \"\r\n if ($_.PrivateData -and $_.PrivateData.PSData)\r\n {\r\n $_.PrivateData.PSData.PreRelease\r\n }\".\r\n\r\n\r\nScript 2.4.0 #ERR nvm Desk {Set-NodeVersion, Install-NodeVersion, Remove-NodeVersion, Get-NodeVersions…}\r\nFailed to evaluate expression \"\r\n if ($_.PrivateData -and $_.PrivateData.PSData)\r\n {\r\n $_.PrivateData.PSData.PreRelease\r\n }\".\r\n\r\n\r\nScript 4.9.0 Pester Desk {Describe, Context, It, Should…}\r\nScript 1.2.3 #ERR posh-dotnet Desk\r\nFailed to evaluate expression \"\r\n if ($_.PrivateData -and $_.PrivateData.PSData)\r\n {\r\n $_.PrivateData.PSData.PreRelease\r\n }\".\r\n\r\n\r\nScript 0.4.1 powershell-yaml Desk {ConvertTo-Yaml, ConvertFrom-Yaml, cfy, cty}\r\nScript 1.3.0 #ERR PSBuildkite Desk {Get-BuildkiteBuild, Get-BuildkiteCruiseControlFeedUrl, Get-BuildkiteJobLog, Get-BuildkiteOrganization…}\r\nFailed to evaluate expression \"\r\n if ($_.PrivateData -and $_.PrivateData.PSData)\r\n {\r\n $_.PrivateData.PSData.PreRelease\r\n }\".\r\n\r\n\r\nScript 0.0.2 #ERR PSDefaults Desk {Get-DefaultsDomain, Get-DefaultsValue, Set-DefaultsValue, Remove-DefaultsDomain…}\r\nFailed to evaluate expression \"\r\n if ($_.PrivateData -and $_.PrivateData.PSData)\r\n {\r\n $_.PrivateData.PSData.PreRelease\r\n }\".\r\n\r\n\r\nScript 1.6.8 #ERR PSFolderSize Desk {Get-FileReport, Get-FolderSize}\r\nFailed to evaluate expression \"\r\n if ($_.PrivateData -and $_.PrivateData.PSData)\r\n {\r\n $_.PrivateData.PSData.PreRelease\r\n }\".\r\n\r\n\r\nScript 0.15.178 #ERR PSGitHub Desk {Get-GitHubRateLimit, Set-GitHubToken, Get-GitHubUser, Update-GitHubUser…}\r\nFailed to evaluate expression \"\r\n if ($_.PrivateData -and $_.PrivateData.PSData)\r\n {\r\n $_.PrivateData.PSData.PreRelease\r\n }\".\r\n\r\n\r\nScript 2.36.2 #ERR PSGSuite Desk {Add-GSCalendarEventReminder, Add-GSCalendarNotification, Add-GSCalendarSubscription, Add-GSChatButton…}\r\nFailed to evaluate expression \"\r\n if ($_.PrivateData -and $_.PrivateData.PSData)\r\n {\r\n $_.PrivateData.PSData.PreRelease\r\n }\".\r\n\r\n\r\nBinary 0.12.0 #ERR PSKubectl Core {Compare-KubeResource, ConvertFrom-KubeYaml, ConvertTo-KubeYaml, Get-KubeConfig…}\r\nFailed to evaluate expression \"\r\n if ($_.PrivateData -and $_.PrivateData.PSData)\r\n {\r\n $_.PrivateData.PSData.PreRelease\r\n }\".\r\n\r\n\r\nScript 0.0.8 #ERR PSmacOS Core {Get-Clipboard, Set-Clipboard, Out-GridView, Show-MessageBox}\r\nFailed to evaluate expression \"\r\n if ($_.PrivateData -and $_.PrivateData.PSData)\r\n {\r\n $_.PrivateData.PSData.PreRelease\r\n }\".\r\n\r\n\r\nScript 0.1.1 #ERR psmath Desk\r\nFailed to evaluate expression \"\r\n if ($_.PrivateData -and $_.PrivateData.PSData)\r\n {\r\n $_.PrivateData.PSData.PreRelease\r\n }\".\r\n\r\n\r\nScript 1.0.0 #ERR PSOpen Desk Open-Item\r\nFailed to evaluate expression \"\r\n if ($_.PrivateData -and $_.PrivateData.PSData)\r\n {\r\n $_.PrivateData.PSData.PreRelease\r\n }\".\r\n\r\n\r\nScript 2.1.0 beta1 PSReadLine Desk {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSReadLineOption…}\r\nScript 1.18.3 #ERR PSScriptAnalyzer Desk {Get-ScriptAnalyzerRule, Invoke-ScriptAnalyzer, Invoke-Formatter}\r\nFailed to evaluate expression \"\r\n if ($_.PrivateData -and $_.PrivateData.PSData)\r\n {\r\n $_.PrivateData.PSData.PreRelease\r\n }\".\r\n\r\n\r\nScript 1.0.1 #ERR PSSourcegraph Core {Get-Repository, Get-Hover, Get-Definition, Get-Reference…}\r\nFailed to evaluate expression \"\r\n if ($_.PrivateData -and $_.PrivateData.PSData)\r\n {\r\n $_.PrivateData.PSData.PreRelease\r\n }\".\r\n\r\n\r\nScript 0.0.1 #ERR PSTrackingIssue Desk Get-WorkStatusUpdate\r\nFailed to evaluate expression \"\r\n if ($_.PrivateData -and $_.PrivateData.PSData)\r\n {\r\n $_.PrivateData.PSData.PreRelease\r\n }\".\r\n\r\n\r\nScript 1.2.2 #ERR PSTravis Desk {Add-TravisEnvironmentVariable, Enable-TravisRepository, Get-TravisCruiseControlFeedUrl, Get-TravisEnvironmen…\r\nFailed to evaluate expression \"\r\n if ($_.PrivateData -and $_.PrivateData.PSData)\r\n {\r\n $_.PrivateData.PSData.PreRelease\r\n }\".\r\n\r\n\r\nScript 0.0.1 #ERR yarn-completion Desk\r\nFailed to evaluate expression \"\r\n if ($_.PrivateData -and $_.PrivateData.PSData)\r\n {\r\n $_.PrivateData.PSData.PreRelease\r\n }\".\r\n\r\n\r\n\r\n Directory: /usr/local/microsoft/powershell/7/Modules\r\n\r\nModuleType Version PreRelease Name PSEdition ExportedCommands\r\n---------- ------- ---------- ---- --------- ----------------\r\nManifest 1.2.5 Microsoft.PowerShell.Archive Desk {Compress-Archive, Expand-Archive}\r\nManifest 7.0.0.0 Microsoft.PowerShell.Host Core {Start-Transcript, Stop-Transcript}\r\nManifest 7.0.0.0 Microsoft.PowerShell.Management Core {Add-Content, Clear-Content, Clear-ItemProperty, Join-Path…}\r\nManifest 7.0.0.0 Microsoft.PowerShell.Security Core {Get-Credential, Get-ExecutionPolicy, Set-ExecutionPolicy, ConvertFrom-SecureString…}\r\nManifest 7.0.0.0 #ERR Microsoft.PowerShell.Utility Core {Export-Alias, Get-Alias, Import-Alias, New-Alias…}\r\nFailed to evaluate expression \"\r\n if ($_.PrivateData -and $_.PrivateData.PSData)\r\n {\r\n $_.PrivateData.PSData.PreRelease\r\n }\".\r\n\r\n\r\nScript 1.4.6 #ERR PackageManagement Desk {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource…}\r\nFailed to evaluate expression \"\r\n if ($_.PrivateData -and $_.PrivateData.PSData)\r\n {\r\n $_.PrivateData.PSData.PreRelease\r\n }\".\r\n\r\n\r\nScript 2.2.4 #ERR PowerShellGet Desk {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability…}\r\nFailed to evaluate expression \"\r\n if ($_.PrivateData -and $_.PrivateData.PSData)\r\n {\r\n $_.PrivateData.PSData.PreRelease\r\n }\".\r\n\r\n\r\nScript 2.0.5 #ERR PSDesiredStateConfiguration Core {Configuration, New-DscChecksum, Get-DscResource, Invoke-DscResource}\r\nFailed to evaluate expression \"\r\n if ($_.PrivateData -and $_.PrivateData.PSData)\r\n {\r\n $_.PrivateData.PSData.PreRelease\r\n }\".\r\n\r\n\r\nScript 2.1.0 beta1 PSReadLine Desk {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSReadLineOption…}\r\nBinary 2.0.3 ThreadJob Desk Start-ThreadJob\r\n\r\n```\r\n\r\n## Environment data\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```none\r\n> $PSVersionTable\r\n\r\nName Value\r\n---- -----\r\nPSVersion 7.0.1\r\nPSEdition Core\r\nGitCommitId 7.0.1\r\nOS Darwin 19.5.0 Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64\r\nPlatform Unix\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n```\r\n","author":{"url":"https://github.com/felixfbecker","@type":"Person","name":"felixfbecker"},"datePublished":"2020-06-04T11:11:53Z","url":"https://github.com/PowerShell/PowerShell/issues/12896"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b81f8a60-5c9f-4688-aef7-a0b68a0ac4c0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A9B2:9D8FF:12F58A:1B5614:6AFD5CB0 |
| html-safe-nonce | 76eb5852787232f3f184e47282f114e008ccb9f0f52d8c2f7f024089236a2e1e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOUIyOjlEOEZGOjEyRjU4QToxQjU2MTQ6NkFGRDVDQjAiLCJ2aXNpdG9yX2lkIjoiODkyOTkyNzk1NzcyMjc5OTg0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d1eb633746107206481fce9d7ed23a839bb0d61ae394eeb47308385d5fff9a3d |
| hovercard-subject-tag | issue:630730502 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/12896/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b8f734b0a1f8caf8a3f1a433327b982b7345707a0184a08cd0c68fff136f9bc5/PowerShell/PowerShell/issues/12896 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b8f734b0a1f8caf8a3f1a433327b982b7345707a0184a08cd0c68fff136f9bc5/PowerShell/PowerShell/issues/12896 |
| og:image:alt | Steps to reproduce Get-Module -ListAvailable Expected behavior No errors Actual behavior Output: > Get-Module -ListAvailable Directory: /Users/felix/.local/share/powershell/Modules ModuleType Versi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | felixfbecker |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width