-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Restarting the pty host breaks logging completely #185875
Comments
@sandy081 some help would be appreciated here. When the process is restarted the logging just stops working completely. Here's where the utility process environment is created:
Here's the logger initialization on the pty host proc: vscode/src/vs/platform/terminal/node/ptyHostMain.ts Lines 64 to 67 in 92921a0
If you try repro you'll need this change #185882 |
I can reproduce it. 👀 |
Weird. Thanks, I'll look into that |
This is causing following regression - only last 5 log sessions are being retained instead of 10. Hence moved it to current milestone and prepared a fix for it. |
so the logs do show up, but the terminal doesn't seem to get created correctly - I cannot type in it. EDIT: after restarting the pty host, I cannot type in any of the terminals. Screen.Recording.2023-06-29.at.11.29.30.AM.mov
|
the terminal created before the pty host restarted receives input but does not display it. the one created after it restarted does not receive it. input.mov |
I don't see this log vscode/src/vs/workbench/contrib/terminal/electron-sandbox/localTerminalBackend.ts Line 85 in 1e4479d
|
As long as the regression @sandy081 fixed in #185875 (comment) is good, this is low priority. Will check it out again in July. |
I'm closing this issue off again as the logging problem was fixed in the linked commit. I investigated the problem @meganrogge hit and created some more targeted issues to fix: |
Needs #185254 to be fixed to reproduce the issue
Repro:
The text was updated successfully, but these errors were encountered: