Title: Get-FormatData doesn't report formatting data for some types for which formatting data ships with PowerShell. · Issue #4237 · PowerShell/PowerShell · GitHub
Open Graph Title: Get-FormatData doesn't report formatting data for some types for which formatting data ships with PowerShell. · Issue #4237 · PowerShell/PowerShell
X Title: Get-FormatData doesn't report formatting data for some types for which formatting data ships with PowerShell. · Issue #4237 · PowerShell/PowerShell
Description: I haven't looked into the logic behind which types' formatting data isn't being reported, but two examples are below. A counter example is Get-FormatData System.Management.Automation.AliasInfo, which works as expected. Steps to reproduce...
Open Graph Description: I haven't looked into the logic behind which types' formatting data isn't being reported, but two examples are below. A counter example is Get-FormatData System.Management.Automation.AliasInfo, whi...
X Description: I haven't looked into the logic behind which types' formatting data isn't being reported, but two examples are below. A counter example is Get-FormatData System.Management.Automation.Al...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/4237
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Get-FormatData doesn't report formatting data for some types for which formatting data ships with PowerShell.","articleBody":"I haven't looked into the logic behind which types' formatting data isn't being reported, but two examples are below.\r\n\r\nA counter example is `Get-FormatData System.Management.Automation.AliasInfo`, which works as expected.\r\n\r\nSteps to reproduce\r\n------------------\r\n\r\n```powershell\r\nGet-FormatData System.IO.DirectoryInfo, System.IO.FileInfo\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\n\r\n`[System.Management.Automation.ExtendedTypeDefinition]` instances describing the formatting, as usual.\r\n\r\nActual behavior\r\n---------------\r\n\r\nNo output is produced; `$?` indicates `$True`.\r\n\r\nYet, formatting data is clearly in effect.\r\n\r\nIn _Windows PowerShell_, it can be discovered as follows:\r\n\r\n```powershell\r\nSelect-String -List System.IO.DirectoryInfo, System.IO.FileInfo $PSHOME/*.ps1xml \r\n```\r\n\r\nEnvironment data\r\n----------------\r\n\r\n```powershell\r\nPowerShell Core v6.0.0-beta.3 on macOS 10.12.5\r\nPowerShell Core v6.0.0-beta.3 on Ubuntu 16.04.1 LTS\r\nPowerShell Core v6.0.0-beta.3 on Microsoft Windows 10 Pro (64-bit; v10.0.14393)\r\nWindows PowerShell v5.1.15063.413 on Microsoft Windows 10 Pro (64-bit; v10.0.15063)\r\n```\r\n","author":{"url":"https://github.com/mklement0","@type":"Person","name":"mklement0"},"datePublished":"2017-07-12T22:19:42Z","url":"https://github.com/PowerShell/PowerShell/issues/4237"}
| 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:438707d5-091a-44b4-6a59-96a2295e0ff3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C010:158418:185B16:212485:6AFD4E44 |
| html-safe-nonce | a9e9320df99afabe2e4165d1c4646b32df77e3cf2e1f0991faa20d1f18439654 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDEwOjE1ODQxODoxODVCMTY6MjEyNDg1OjZBRkQ0RTQ0IiwidmlzaXRvcl9pZCI6Ijc4OTE4NzA3ODQ2MjcyMzIzMjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 05617542ee646098080495cec38b7a2820a712e19591dcb9b24710bb84a1f8b5 |
| hovercard-subject-tag | issue:242532740 |
| 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/4237/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b37ef1b0df56d751367bb8bdddd13a39b1a7fd512503cdc32cfac6048cc2a94c/PowerShell/PowerShell/issues/4237 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b37ef1b0df56d751367bb8bdddd13a39b1a7fd512503cdc32cfac6048cc2a94c/PowerShell/PowerShell/issues/4237 |
| og:image:alt | I haven't looked into the logic behind which types' formatting data isn't being reported, but two examples are below. A counter example is Get-FormatData System.Management.Automation.AliasInfo, whi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mklement0 |
| 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