Title: $PSVersionTable.PSVersion throws error System.ArgumentOutOfRangeException,Microsoft.PowerShell.Commands.OutLineOutputCommand · Issue #6482 · PowerShell/PowerShell · GitHub
Open Graph Title: $PSVersionTable.PSVersion throws error System.ArgumentOutOfRangeException,Microsoft.PowerShell.Commands.OutLineOutputCommand · Issue #6482 · PowerShell/PowerShell
X Title: $PSVersionTable.PSVersion throws error System.ArgumentOutOfRangeException,Microsoft.PowerShell.Commands.OutLineOutputCommand · Issue #6482 · PowerShell/PowerShell
Description: $PSVersionTable.PSVersion.ToString() and $PSVersionTable still works. The error can be reproduced on master branch. Steps to reproduce $PSVersionTable.PSVersion out-lineoutput : Index was out of range. Must be non-negative and less than ...
Open Graph Description: $PSVersionTable.PSVersion.ToString() and $PSVersionTable still works. The error can be reproduced on master branch. Steps to reproduce $PSVersionTable.PSVersion out-lineoutput : Index was out of ra...
X Description: $PSVersionTable.PSVersion.ToString() and $PSVersionTable still works. The error can be reproduced on master branch. Steps to reproduce $PSVersionTable.PSVersion out-lineoutput : Index was out of ra...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/6482
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"$PSVersionTable.PSVersion throws error System.ArgumentOutOfRangeException,Microsoft.PowerShell.Commands.OutLineOutputCommand","articleBody":"\u003c!--\r\n\r\nFor Windows PowerShell 5.1 issues, suggestions, or feature requests please use the following link instead:\r\n- Windows PowerShell [UserVoice](https://windowsserver.uservoice.com/forums/301869-powershell)\r\n\r\nIf it is a bug report:\r\n- make sure you are able to repro it on the latest released version. \r\nYou can install the latest version from 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://github.com/PowerShell/PowerShell/blob/master/docs/KNOWNISSUES.md).\r\n- Fill out the following repro template:\r\n\r\nIf it's not a bug, please remove the template and elaborate the issue in your own words.\r\n--\u003e\r\n \r\n$PSVersionTable.PSVersion.ToString() and $PSVersionTable still works.\r\n\r\nThe error can be reproduced on master branch.\r\n\r\nSteps to reproduce\r\n------------------\r\n\r\n```powershell\r\n\r\n$PSVersionTable.PSVersion\r\nout-lineoutput : Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index\r\n+ CategoryInfo : NotSpecified: (:) [out-lineoutput], ArgumentOutOfRangeException\r\n+ FullyQualifiedErrorId : System.ArgumentOutOfRangeException,Microsoft.PowerShell.Commands.OutLineOutputCommand\r\n\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\n\r\n```none\r\nGet the PSVersion string\r\n```\r\n\r\nActual behavior\r\n---------------\r\nError - System.ArgumentOutOfRangeException,Microsoft.PowerShell.Commands.OutLineOutputCommand\r\n\r\n```none\r\n\r\n```\r\n\r\nEnvironment data\r\n----------------\r\n\r\n\u003c!-- provide the output of $PSVersionTable --\u003e\r\n\r\n```powershell\r\n\u003e $PSVersionTable\r\n\r\nName Value\r\n---- -----\r\nPSVersion 6.0.1\r\nPSEdition Core\r\nGitCommitId v6.0.1-290-g942832c13a3c325851e9873bd25036775c85a18c\r\nOS Microsoft Windows 10.0.16299\r\nPlatform Win32NT\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```\r\n","author":{"url":"https://github.com/adityapatwardhan","@type":"Person","name":"adityapatwardhan"},"datePublished":"2018-03-23T22:35:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/6482/PowerShell/issues/6482"}
| 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:6cc247f6-6989-a5e9-0867-3f519f730271 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D97A:2ABD2F:1E6ED:2849B:6A5514DE |
| html-safe-nonce | 1c49c144b238cf74a2c9ce6962b0e3d3b49c99185751551360d7b5cce19f7773 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTdBOjJBQkQyRjoxRTZFRDoyODQ5Qjo2QTU1MTRERSIsInZpc2l0b3JfaWQiOiI1NTExNTYyMTgyMTgwMjc5NTE4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 73bd7cdc29cf6700e9fcb9b785b4c3787d55c3c762135020ca2db7fbbb1a8c51 |
| hovercard-subject-tag | issue:308197804 |
| 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/6482/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a678fee2079d1bef479fee6e8390e35931c6eea0a1a99783d6e230df1415c0e8/PowerShell/PowerShell/issues/6482 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a678fee2079d1bef479fee6e8390e35931c6eea0a1a99783d6e230df1415c0e8/PowerShell/PowerShell/issues/6482 |
| og:image:alt | $PSVersionTable.PSVersion.ToString() and $PSVersionTable still works. The error can be reproduced on master branch. Steps to reproduce $PSVersionTable.PSVersion out-lineoutput : Index was out of ra... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | adityapatwardhan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 682d273eacb2ac51680c6eb9c0b270f029f7ce74c32090f319083c34497e28a5 |
| 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 | 3b6d37c6470adadff4194742daaab9a817cc4980 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width