Title: Start/Stop-Transcript does not capture everything written to the console · Issue #10994 · PowerShell/PowerShell · GitHub
Open Graph Title: Start/Stop-Transcript does not capture everything written to the console · Issue #10994 · PowerShell/PowerShell
X Title: Start/Stop-Transcript does not capture everything written to the console · Issue #10994 · PowerShell/PowerShell
Description: Start/Stop-Transcript does not always capture everything written to the console. I created a github repo with code, repro steps and more context: https://github.com/zammitt/PowerShellTranscriptIssue Steps to reproduce In a script file (....
Open Graph Description: Start/Stop-Transcript does not always capture everything written to the console. I created a github repo with code, repro steps and more context: https://github.com/zammitt/PowerShellTranscriptIssu...
X Description: Start/Stop-Transcript does not always capture everything written to the console. I created a github repo with code, repro steps and more context: https://github.com/zammitt/PowerShellTranscriptIssu...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/10994
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Start/Stop-Transcript does not capture everything written to the console","articleBody":"Start/Stop-Transcript does not always capture everything written to the console.\r\n\r\nI created a github repo with code, repro steps and more context: https://github.com/zammitt/PowerShellTranscriptIssue\r\n\r\n# Steps to reproduce\r\n\r\nIn a script file (.ps1)\r\n1) Start-Transcript\r\n2) Run a Cmdlet that outputs data with WriteObject\r\n3) Stop-Transcript\r\n4) Observe that the output was not written to the transcript\r\n\r\nHere is a script to repro:\r\n\r\n```\r\nInstall-Module TranscriptIssue\r\nImport-Module TranscriptIssue\r\n\r\nStart-Transcript -Path transcript.txt -UseMinimalHeader\r\n\r\nWrite-Output \"Hello from Write-Output\"\r\nWrite-Host \"Hello from Write-Host\"\r\n\r\nTest-TranscriptIssue\r\n\r\nWrite-Output \"Goodbye from Write-Output\"\r\nWrite-Host \"Goodbye from Write-Host\"\r\n\r\nStop-Transcript\r\n\r\n# Write out the transcript to the console\r\ncat ./transcript.txt\r\n```\r\nThe code for Test-TranscriptIssue can be found here: https://github.com/zammitt/PowerShellTranscriptIssue/blob/master/TestIssueOnPowerShellCore/Test-TranscriptIssue.cs\r\n\r\n# Expected behavior\r\n\r\nThe contents of the transcript match what was written to the console while the transcript was active.\r\n\r\n```\r\nTranscript started, output file is transcript.txt\r\nHello from Write-Output\r\nHello from Write-Host\r\n\r\nGoodbye from Write-Host\r\nTestProperty\r\n------------\r\nTestValue\r\nGoodbye from Write-Output\r\nTranscript stopped, output file is D:\\code\\PowerShellTranscriptIssue\\TestIssueOnPowerShellCore\\bin\\Debug\\netcoreapp3.0\\transcript.txt\r\n**********************\r\nPowerShell transcript start\r\nStart time: 20191105180138\r\n**********************\r\nHello from Write-Output\r\nHello from Write-Host\r\n\r\nGoodbye from Write-Host\r\nTestProperty\r\n------------\r\nTestValue\r\nGoodbye from Write-Output\r\n**********************\r\nPowerShell transcript end\r\nEnd time: 20191105180138\r\n**********************\r\n\r\n```\r\n\r\n# Actual behavior\r\n\r\nThe transcript is missing data that was written to the console while the transcript was active.\r\n\r\n```\r\nTranscript started, output file is transcript.txt\r\nHello from Write-Output\r\nHello from Write-Host\r\n\r\nGoodbye from Write-Host\r\nTestProperty\r\n------------\r\nTestValue\r\nGoodbye from Write-Output\r\nTranscript stopped, output file is D:\\code\\PowerShellTranscriptIssue\\TestIssueOnPowerShellCore\\bin\\Debug\\netcoreapp3.0\\transcript.txt\r\n**********************\r\nPowerShell transcript start\r\nStart time: 20191105180138\r\n**********************\r\nTranscript started, output file is transcript.txt\r\nHello from Write-Output\r\nHello from Write-Host\r\n\r\nGoodbye from Write-Host\r\n**********************\r\nPowerShell transcript end\r\nEnd time: 20191105180138\r\n**********************\r\n\r\n```\r\n\r\n# Environment data\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```\r\nName Value\r\n---- -----\r\nPSVersion 6.2.3\r\nPSEdition Core\r\nGitCommitId 6.2.3\r\nOS Microsoft Windows 10.0.17134\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","author":{"url":"https://github.com/zammitt","@type":"Person","name":"zammitt"},"datePublished":"2019-11-05T23:06:50Z","url":"https://github.com/PowerShell/PowerShell/issues/10994"}
| 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:a3c42093-55f1-b526-3eae-f727f0e1d1bd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E81A:AFD2E:9320B:C47E3:6AFD0C21 |
| html-safe-nonce | 1e7c32e4bf775d5a4500652188020e1c6765b81072a6a72a4d356d19f23386cc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODFBOkFGRDJFOjkzMjBCOkM0N0UzOjZBRkQwQzIxIiwidmlzaXRvcl9pZCI6IjUyMjg5MjA2OTIzNjMwMzc3MjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2eeb0c3132c38e18eb195653e8ad4b177ad83159443c7b8729cb985b67cd22db |
| hovercard-subject-tag | issue:518111292 |
| 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/10994/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9de951ccebdf007a484bb02efde61eb381552ab84a161eacd3e1c3cf99add85e/PowerShell/PowerShell/issues/10994 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9de951ccebdf007a484bb02efde61eb381552ab84a161eacd3e1c3cf99add85e/PowerShell/PowerShell/issues/10994 |
| og:image:alt | Start/Stop-Transcript does not always capture everything written to the console. I created a github repo with code, repro steps and more context: https://github.com/zammitt/PowerShellTranscriptIssu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zammitt |
| hostname | github.com |
| expected-hostname | github.com |
| None | b29de2abb97b6307b16270785efeb58b51a117d5a9b659acf00b77aa00e7043b |
| 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 | 8c9e619def6d670dc18a45d3b02cea938c1c7e47 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width