You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Exit code isn't shown for the last run command in Python's shell integration enabled REPL #23016
E should come after C (executing) of the command, but it's part of the following command because it's after D (command finished). Since Python adds C early, this should go just before the D sequence.
I followed your recommendation and injected E sequence right before D sequence, and it solved both the exit code being back up issue , and the rerun command being backed up issue as well :)
Thank you!
Activity
Tyriar commentedon Mar 1, 2024
This is happening because it's considered executing at the time:
https://github.com/microsoft/vscode/blob/5a9a7ac5892fdfacbe9150511ee43197b6c3faa7/src/vs/workbench/contrib/terminal/browser/terminalRunRecentQuickPick.ts#L71-L75
Tyriar commentedon Mar 1, 2024
The reason it's executing is because the
Esequence is in the next command:Eshould come afterC(executing) of the command, but it's part of the following command because it's afterD(command finished). Since Python addsCearly, this should go just before theDsequence.Tyriar commentedon Mar 1, 2024
This is also why the command would be 1 off; since the command line for the proceeding command is used.
anthonykim1 commentedon Mar 1, 2024
Hello, Daniel Imms (@Tyriar). Thank you so much for looking into this!!
I followed your recommendation and injected E sequence right before D sequence, and it solved both the exit code being back up issue , and the rerun command being backed up issue as well :)

Thank you!
Screen.Recording.2024-03-01.at.2.02.56.PM.mov
Fix backed up command and false exit code (#23025)
anthonykim1 commentedon Mar 22, 2024
Verification step:
Rerun command.Fix backed up command and false exit code (microsoft/vscode-python#23025
Fix backed up command and false exit code (microsoft/vscode-python#23025