Title: Some rows are invisible in output of long string of «Select-String» · Issue #19231 · PowerShell/PowerShell · GitHub
Open Graph Title: Some rows are invisible in output of long string of «Select-String» · Issue #19231 · PowerShell/PowerShell
X Title: Some rows are invisible in output of long string of «Select-String» · Issue #19231 · PowerShell/PowerShell
Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerShell 5.1 and PowerShell. Steps to reprodu...
Open Graph Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
X Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/19231
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Some rows are invisible in output of long string of «Select-String»","articleBody":"### Prerequisites\r\n\r\n- [X] Write a descriptive title.\r\n- [X] Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\r\n- [X] Search the existing issues.\r\n- [X] Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\r\n- [X] Refer to [Differences between Windows PowerShell 5.1 and PowerShell](https://docs.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\r\n\r\n### Steps to reproduce\r\n\r\n```\r\nHost\r\n\r\nName : ConsoleHost\r\nVersion : 7.3.3\r\nInstanceId : b895a510-c2ac-4215-92f1-de9fcfe0c309\r\nUI : System.Management.Automation.Internal.Host.InternalHostUserInterface\r\nCurrentCulture : ru-RU\r\nCurrentUICulture : ru-RU\r\nPrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy\r\nDebuggerEnabled : True\r\nIsRunspacePushed : False\r\nRunspace : System.Management.Automation.Runspaces.LocalRunspace\r\n\r\n\r\n\"12\" + \"1\"*((((Host).UI.RawUI.WindowSize.Width - 1) * 3) - 2) | Select-String -Pattern \"2\"\r\n\r\n12111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111\r\n11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111\r\n11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111\r\n\r\n\"12\" + \"1\"*((((Host).UI.RawUI.WindowSize.Width - 1) * 3) - 1) | Select-String -Pattern \"2\"\r\n\r\n12111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111\r\n11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111\r\n\r\n1\r\n```\r\n\r\n### Expected behavior\r\n\r\n```console\r\nAll rows are visible.\r\n```\r\n\r\n\r\n### Actual behavior\r\n\r\n```console\r\nAll rows are invisible except the first, second, and last rows.\r\n```\r\n\r\n\r\n### Error details\r\n\r\n```console\r\nException :\r\n Type : System.InvalidOperationException\r\n Message : You must specify an object for the Get-Member cmdlet.\r\n HResult : -2146233079\r\nCategoryInfo : CloseError: (:) [Get-Member], InvalidOperationException\r\nFullyQualifiedErrorId : NoObjectInGetMember,Microsoft.PowerShell.Commands.GetMemberCommand\r\nInvocationInfo :\r\n MyCommand : Get-Member\r\n ScriptLineNumber : 1\r\n OffsetInLine : 18\r\n HistoryId : 31\r\n Line : (Host).UI.Name | Get-Member\r\n PositionMessage : At line:1 char:18\r\n + (Host).UI.Name | Get-Member\r\n + ~~~~~~~~~~\r\n InvocationName : Get-Member\r\n CommandOrigin : Internal\r\nScriptStackTrace : at \u003cScriptBlock\u003e, \u003cNo file\u003e: line 1\r\nPipelineIterationInfo :\r\n```\r\n\r\n\r\n### Environment data\r\n\r\n```powershell\r\nName Value\r\n---- -----\r\nPSVersion 7.3.3\r\nPSEdition Core\r\nGitCommitId 7.3.3\r\nOS Microsoft Windows 10.0.19045\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\r\n### Visuals\r\n\r\n\r\n","author":{"url":"https://github.com/u20221022","@type":"Person","name":"u20221022"},"datePublished":"2023-02-26T23:46:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":34},"url":"https://github.com/19231/PowerShell/issues/19231"}
| 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:d4e74a9a-71a3-bdf5-4140-20481082b88b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E424:1F7C65:15BD8A9:1D8F6E6:6A546420 |
| html-safe-nonce | 71ef23bb58a4f428425ed6abfd64fda3c3b44bfeed75ae0b301c45b76f4df4e7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDI0OjFGN0M2NToxNUJEOEE5OjFEOEY2RTY6NkE1NDY0MjAiLCJ2aXNpdG9yX2lkIjoiOTEwOTI1NzA1OTY4NjQ0MjAxNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 25396e8f09a753ba984a4bd707cafa55f87b587456586f040bdbbbce61292fb6 |
| hovercard-subject-tag | issue:1600248341 |
| 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/19231/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f2f05620bbd535e69313d1572adbfc624a838ae0d2b5b35f097e75ff7f115452/PowerShell/PowerShell/issues/19231 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f2f05620bbd535e69313d1572adbfc624a838ae0d2b5b35f097e75ff7f115452/PowerShell/PowerShell/issues/19231 |
| og:image:alt | Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | u20221022 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 6d28624802c2f7d9500239dd6870ed7031b7353b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width