Skip to content

"Select Interpreter" leads to flickering command prompt and repeating same command #19574

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
bamurtaugh opened this issue Jul 27, 2022 · 10 comments · Fixed by #19579
Closed

"Select Interpreter" leads to flickering command prompt and repeating same command #19574

bamurtaugh opened this issue Jul 27, 2022 · 10 comments · Fixed by #19579
Assignees
Labels
area-environments Features relating to handling interpreter environments bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@bamurtaugh
Copy link
Member

Testing #19550

  • rm my instance of Python that was shown through Python: Select Interpreter
  • Reload VS Code
  • Use run button to run a simple Python app, get expected case 1 error message
  • Click button in case 1 notification to Select Interpreter
  • The same command is presented many times, and Enter interpreter path is flickering

Recording 2022-07-27 at 07 59 01

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Jul 27, 2022
@bamurtaugh
Copy link
Member Author

I see the same kind of repeating if I select Enter interpreter path...

image

@bamurtaugh
Copy link
Member Author

If I select Python is not installed, please download..., nothing happens for ~10 seconds, but then the Microsoft store opens to install Python, and I get a flickering Select Interpreter entry in the status bar: #19576.

@karrtikr
Copy link

@bamurtaugh Thanks for testing it out. I'm able to reproduce the issue if I have an invalid interpreter selected but do no have Python installed. Can you try the following:

@karrtikr
Copy link

  • Use Python: Clear Internal Extension cache to clear the storage.
  • Reload Window.

and see if you're able to reproduce the issue.

@karrtikr
Copy link

Note to test the second case out: Case 2: Invalid Python selected. You need to have Python installed in the system, and then select an invalid interpreter.

@bamurtaugh
Copy link
Member Author

Thanks for the guidance. I cleared the extension cache, reloaded the window, and tested case 1 again (no Python installed). I still get the repeating command prompt:

image

@karrtikr
Copy link

karrtikr commented Jul 27, 2022

I see, then please use https://python.org/ to install a Python in the system, to test out case 2: #19574 (comment).

I reproduce the bug in a slightly different scenario, fixing which would hopefully solve the other issues as well. Appreciate the time you're spending on this.

@bamurtaugh
Copy link
Member Author

I already tested cases 2 and 3 (using a dev container with Python installed), and they worked as expected. I'm only seeing this repeating and flickering behavior in case 1. Please let me know if I'm misunderstanding something.

@karrtikr karrtikr added bug Issue identified by VS Code Team member as probable bug needs PR area-environments Features relating to handling interpreter environments and removed triage-needed Needs assignment to the proper sub-team labels Jul 27, 2022
@karrtikr karrtikr added this to the July 2022 milestone Jul 27, 2022
@karrtikr
Copy link

karrtikr commented Jul 28, 2022

Fix should be out in the pre-release version of the extension in a few minutes, use the following to try it out:

image

Make sure to #19574 (comment).

@bamurtaugh
Copy link
Member Author

The fix is working for me! Marking as verified.

@bamurtaugh bamurtaugh added the verified Verification succeeded label Jul 28, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-environments Features relating to handling interpreter environments bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
2 participants