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.

Don't activate Python extension until needed (Tests Needed)

See original GitHub issue

Issue Type: Bug

When I startup VS Code I get this in a workspace that exclusively contains markdown files. This is the only window I have open. Why?

image

Extension version: 2021.2.636928669 VS Code version: Code - Insiders 1.55.0-insider (Universal) (9b2ee7fb7d970b9a628fdb3545bdd01d67078d16, 2021-03-11T05:15:23.749Z) OS version: Darwin arm64 20.3.0

System Info
Item Value
CPUs undefined
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 2, 3, 2
Memory (System) 16.00GB (0.28GB free)
Process Argv –enable-proposed-api lszomoru.lszomoru-proposed-api-sample --crash-reporter-id ef10dfea-3602-4c74-ba1a-109ce7da7825
Screen Reader no
VM 0%
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368:30146709
vsreu685:30147344
python383:30185418
pythonvspyt602:30263608
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstry244:30244315
pythonvsdeb440:30224570
pythonvsded773:30223139
pythonvspyt875:30259475
pythonvsnew554:30265444
pythontb:30258533
vscoresta800:30265947
vspre833:30267464

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:33 (33 by maintainers)

github_iconTop GitHub Comments

1reaction
luabudcommented, Mar 20, 2021

I’d strongly prefer for it not to be a separate extension. I believe there are other ways we can solve that (e.g. through an npm package?).

My main concern regarding the separate extension is that it IMO adds unnecessary complexity to the UX of installation of the Python extension.

Suppose we did have a “Python Environments” extension. We’d need other functionality like the start page, start REPL and things like that be somewhere else. What would we call that extension, and how would users understand how that is different from the Python environments one? We have some users complaining about the extra entry for the Jupyter extension in their installed extensions view, I imagine a lot of people would be annoyed and confused about this extra one too.

I can see us breaking the extension down into formatters and linters and even having a pytest extension instead of a built-in solution. But I’m struggling to see the user value in having a “Python Environments” and a “Python core” extension.

1reaction
rchiodocommented, Mar 18, 2021

Notebook seems okay to load the python extension. It just shouldn’t load in a directory with markdown files.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python testing in Visual Studio Code
By default, the Python extension attempts to discover tests once you enable a framework. You can trigger test discovery at any time using...
Read more >
VSCode pytest test discovery fails - python - Stack Overflow
Once those requirements are set correctly, run tests discovery and its output ... In my case, it was the vscode python extension problem....
Read more >
Code Running Assistance | PyCharm Documentation - JetBrains
Each script or test you wish to run or debug from within PyCharm, needs a special profile that specifies the script name, working...
Read more >
1. Extending Python with C or C++ — Python 3.11.1 ...
The compilation of an extension module depends on its intended use as well ... You don't need to Py_INCREF() the objects passed to...
Read more >
2. Writing the Setup Script — Python 3.11.1 documentation
The Distutils' own setup script, shown here, is used to install the package into ... If you need to include header files from...
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