question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Restart Pylance without reload prompt once it is detected

See original GitHub issue

This shows the experience when creating a sample python dev container: https://cln.sh/KBwsUa (wait to the end of the recording…)

That I need to reload the window is not what I’d expect from a sample dev container (or in general). Since the Python extension activates on the existence of requirements.txt (see here) the language server change listener (see here is active.

It’s unclear to why we need to reload the window if there is no open file at all. Also, we should make an effort to not require a reload. For example, the TS extension can recover from language server crashes/restarts without any reload.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
rzhao271commented, May 2, 2022

Looks like one of the endgame queries forgot to exclude on-testplan items for bugs. I’ll label this issue as verified just to kick it off the query.

0reactions
alexanderluiscampinocommented, Mar 1, 2022

Throwing my hat in the ring. I have adevcontainer post create command that install my reqs (poetry install) and it takes some time. By the time it is done, the pylance reload window disappeared and nothing gets done. It’s a non-starter, since I won’t be able to reload the window, and if I do, same happens, cycle repeats itself.

What is the purpose of this window reload upon installing pylance?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pylance does not recognise newly installed pip packages
This question will happen when Pylance doesn't detect the module immediately. You may Reload Window from Command Palette to refresh the current project....
Read more >
Pylance - Visual Studio Marketplace
Used to parse the source code for a package when a typestub is not found. Accepted values: true (default); false. python.analysis.indexing. Used ...
Read more >
Visual Studio Code (Windows) - Setting up a ... - YouTube
In this Python Programming Tutorial, we will be learning how to set up a Python development environment in VSCode on Windows.
Read more >
Have you tried Pylance for VS Code? If not, here's why you ...
If you work with Python and Visual Studio Code, go ahead and do yourself a favor: download the Pylance extension (preview) and try...
Read more >
Reload / Restart Visual Studio Code Window
This post & video explained to Reload or Restart the Visual Studio Code. ... visual studio code in the market place, if some...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found