-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Transcription for the host stops, when ANY runspace in the host get closed #2334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
due to the issue PowerShell#2334
@vors - does this issue account for the undesired behaviour documented in this uservoice post? https://windowsserver.uservoice.com/forums/301869-powershell/suggestions/14745750-ps-5-0-bug-transcript-stops-after-restarting-a-re I posted that bug on uservoice sometime ago. I have since had to edit all my scripts to include a wrapper around restart-computer in order to start a prematurely terminated transcript upon completion of restarting a remote computer. Most frustrating as this behaviour was not exhibited prior to WMF 5.0. |
@Fitzroy87 my wild guess is yes. These two are likely related. |
@vors Thank you. Apologies for polluting the discussion with a novice question - but in order for me to test the fix should I use WMF 5.1 or a 6.0 alpha build? |
@Fitzroy87 the issue is still open, which mean that it's still present in the |
@chunqingchen I'm assigning this to you since you're already touching the transcription code |
This issue has been resolved fixed and verified |
omg uh, i have no idea how i unassigned anyone 😐 sorry @chunqingchen ! |
I saw it was fixed in 6, just hoping it could mayyyybe get fixed in the version that most of our people use 🤞 |
From what I've been told there's going to be basically no more fixes backported to PS5.1, I'm afraid. Your best bet is to submit a request on the uservoice site for Windows PowerShell, but from what I've heard there are no guarantees anything more will be done with Windows PowerShell. 🙁 |
Yes! There's no guarantees, but it helps identify bugs for PowerShell Core. Bugs found in Windows PowerShell are been fix in PowerShell Core, as Windows PowerShell is complete. Microsoft was clear on this statement that they stop doing work in Windows PowerShell. So, 5.1 is the last version. So, if there's any bug found in Windows PowerShell, it should repro in Core so it can be fix moving forward. I have to say, now is a good time to truly test PowerShell Core, alongside Windows PowerShell, to help cleaning up what's missing. As, down the road, PowerShell Core will substitute Windows PowerShell. |
Indeed, no argument there, but as has already been mentioned, this particular issue seems to have been fixed for Core already. 😄 |
Since this specific issue is security related, we did make a fix in Windows PowerShell 5.1, but it'll only be available in newest Win10 builds. |
@SteveL-MSFT Could you define the "newest Win10 build"? The issue is still present. PS Could someone explain to me |
The last two digits in the version are updated automatically by the build system. You should just consider it magic and not rely on it. "Newest" here specifically means I believe the fix was checked in late last week so unless whenever that builds goes out to the Insider flights. Without going into details, it's complicated how a fix we make in our working branch in Windows ends up into a flighted build. It can take weeks. |
I hope PowerShell team is aware how very confusing all this is. And, if it's confusing to someone who is involved as much as I am, I don't understand how regular PowerShell users can keep track on all this. |
That is good news, thank you @SteveL-MSFT! I will let people know. |
@alexandair Yes, this is unfortunately a confusing process. The fix was ported to a low level internal branch on 12/12 last week, and as @SteveL-MSFT mentioned, will propagate to a vNext flighting branch in a few weeks. I doubt the fix would meet the bar for back porting to servicing branches (i.e., a patch), especially since the change in behavior can be viewed as a breaking change. |
@PaulHigin How is fixing it a breaking change when in fact the introduction of this issue was a breaking change for scripts written against all versions of Powershell prior to 5.0 (which is when it was first introduced)? The particular effect of this issue that I'm referring to is documented here (a UserVoice issue I raised in 2016): https://windowsserver.uservoice.com/forums/301869-powershell/suggestions/14745750-ps-5-0-bug-transcript-stops-after-restarting-a-re |
@thecliguy Good point. But the new behavior is not exactly the same as before, although I believe it is now correct. Probably unlikely, but I worry about possible regressions when patching to live systems. |
Steps to reproduce
Expected behavior
No errors, the whole transcript (including "After Dispose") should be in the
foo.txt
fileActual behavior
"After Dispose" is not in the
foo.txt
fileEnvironment data
Windows.
Also verfied in inbox
cc @adityapatwardhan @LeeHolmes @PaulHigin
The text was updated successfully, but these errors were encountered: