Title: Bug in Formatting while being without console · Issue #11776 · PowerShell/PowerShell · GitHub
Open Graph Title: Bug in Formatting while being without console · Issue #11776 · PowerShell/PowerShell
X Title: Bug in Formatting while being without console · Issue #11776 · PowerShell/PowerShell
Description: Hello, running pwsh 7.0.0-rc2 on my build server the following happens when my own cmdlet raises an exception: ` 05-Feb-2020 10:35:56 05-Feb-2020 10:35:56 OperationStopped: 05-Feb-2020 10:35:56 Line | 05-Feb-2020 10:35:56 161 | … if ([Co...
Open Graph Description: Hello, running pwsh 7.0.0-rc2 on my build server the following happens when my own cmdlet raises an exception: ` 05-Feb-2020 10:35:56 05-Feb-2020 10:35:56 OperationStopped: 05-Feb-2020 10:35:56 Lin...
X Description: Hello, running pwsh 7.0.0-rc2 on my build server the following happens when my own cmdlet raises an exception: ` 05-Feb-2020 10:35:56 05-Feb-2020 10:35:56 OperationStopped: 05-Feb-2020 10:35:56 Lin...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/11776
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug in Formatting while being without console","articleBody":"Hello,\r\nrunning pwsh 7.0.0-rc2 on my build server the following happens when my own cmdlet raises an exception:\r\n`\r\n\r\n05-Feb-2020 10:35:56 | \r\n-- | --\r\n05-Feb-2020 10:35:56 | OperationStopped:\r\n05-Feb-2020 10:35:56 | Line \\|\r\n05-Feb-2020 10:35:56 | 161 \\| … if ([Console]::WindowWidth -gt 0 -and ($message.Length - $pre …\r\n05-Feb-2020 10:35:56 | \r\n05-Feb-2020 10:35:56 | \\| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n05-Feb-2020 10:35:56 | \\| Das Handle ist ungültig.\r\n`\r\n\r\nYou are trying to read WindowWidth but there is no window. So you get Invalid Handle for the non existing console window.\r\n\r\nHappens here on line 1154: https://github.com/PowerShell/PowerShell/blob/master/src/System.Management.Automation/FormatAndOutput/DefaultFormatters/PowerShellCore_format_ps1xml.cs \r\n\r\nPlease fix.\r\n\r\nThanks!","author":{"url":"https://github.com/inf9144","@type":"Person","name":"inf9144"},"datePublished":"2020-02-05T09:47:15Z","url":"https://github.com/PowerShell/PowerShell/issues/11776"}
| 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:a0716037-5d9a-8f2f-978c-22f29d58b46c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C27C:27FCA3:2B4F390:3C60C9E:6AFD5D29 |
| html-safe-nonce | 4c6a8c0c54b056955637edb4e9d183346c227da8df1de732c66ddf793901afdd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjdDOjI3RkNBMzoyQjRGMzkwOjNDNjBDOUU6NkFGRDVEMjkiLCJ2aXNpdG9yX2lkIjoiNTYwOTc0MzM1MjE2NjQ0MDIzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 619f818683fb5a44bc77d8e9cddccb7fd4622e5aa5c8dbf5c7c55ee011952aa8 |
| hovercard-subject-tag | issue:560253866 |
| 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/11776/issue_layout |
| twitter:image | https://opengraph.githubassets.com/653c1a89ac5eecdf510773061fb02b9fb5c1a6c5b941fa26f7f758ee6ad41853/PowerShell/PowerShell/issues/11776 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/653c1a89ac5eecdf510773061fb02b9fb5c1a6c5b941fa26f7f758ee6ad41853/PowerShell/PowerShell/issues/11776 |
| og:image:alt | Hello, running pwsh 7.0.0-rc2 on my build server the following happens when my own cmdlet raises an exception: ` 05-Feb-2020 10:35:56 05-Feb-2020 10:35:56 OperationStopped: 05-Feb-2020 10:35:56 Lin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | inf9144 |
| 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