Skip to content

[Preview] Running F8 appears to be never ending #3794

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

Closed
5 tasks done
PrzemyslawKlys opened this issue Jan 28, 2022 · 1 comment
Closed
5 tasks done

[Preview] Running F8 appears to be never ending #3794

PrzemyslawKlys opened this issue Jan 28, 2022 · 1 comment
Labels
Issue-Bug A bug to squash. Resolution-Duplicate Will close automatically.

Comments

@PrzemyslawKlys
Copy link
Contributor

PrzemyslawKlys commented Jan 28, 2022

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues to ensure it has not already been reported.
  • I have read the troubleshooting guide.
  • I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
  • I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.

Summary

When you run your code with F8 on highlighted code it appears like it's "doing" something, when it actually is already done and pressing enter is all it requires.

This shows this problem when running F8 during F5 debug and stopping on breakpoint
image

Adding "new line" (as in going to prompt) should solve the issue.

PowerShell Version

Name                           Value
----                           -----
PSVersion                      5.1.22000.282
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.22000.282
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Visual Studio Code Version

1.63.2
899d46d82c4c95423fb7e10e68eba52050e30ba3
x64

Extension Version

Steps to Reproduce

  1. Highlight code
  2. Run it with F8
  3. Notice that it doesn't go to the prompt so it appears like it's running

Visuals

No response

Logs

No response

@PrzemyslawKlys PrzemyslawKlys added the Issue-Bug A bug to squash. label Jan 28, 2022
@ghost ghost added the Needs: Triage Maintainer attention needed! label Jan 28, 2022
@andyleejordan
Copy link
Member

Thanks @PrzemyslawKlys! This is (fortunately) a duplicate of #3685. So what's (wrongly) happening is that the prompt position isn't being updated, resulting in behavior that looks like this (also showed up in #3727 (comment)).

@andyleejordan andyleejordan added Resolution-Duplicate Will close automatically. and removed Needs: Triage Maintainer attention needed! labels Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug A bug to squash. Resolution-Duplicate Will close automatically.
Projects
None yet
Development

No branches or pull requests

2 participants