vscode-python: Missing package hints raised in error on requirements.txt

Type: Bug

Behaviour

Open a project that does not have an associated virtual environment - i.e. my system-wide Python installation is the interpreter.

View requirements.txt, which contains the following:

numpy==1.26.0
pandas==2.1.1
pytest==7.4.4
rapidfuzz==3.5.2
streamlit==1.31.0

Missing package hints are raised for all packages, despite them being installed. Hints are e.g.

Package `streamlit` is not installed in the selected environment. Python-InstalledPackagesChecker(not-installed)

Expected

No missing package hints are raised.

Extension version: 2024.0.1 VS Code version: Code 1.86.0 (05047486b6df5eb8d44b2ecd70ea3bdf775fd937, 2024-01-31T10:28:19.990Z) OS version: Windows_NT x64 10.0.19045 Modes:

System Info
Item Value
CPUs Intel® Core™ i5-8365U CPU @ 1.60GHz (8 x 1896)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 7.82GB (0.83GB free)
Process Argv –folder-uri file:///c%3A/Users/nyep/OneDrive%20-%20Institute%20for%20Government/Documents/Development/st_fuzzy_match --crash-reporter-id 9caa3fea-c07d-4c78-9e6c-cc9cdf50faa9
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
vscoreces:30445986
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
vscrpc:30673769
a9j8j154:30646983
962ge761:30951796
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
dsvsc019bcf:30953938
7j2b6412:30949929
ccp2r6:30958158

About this issue

  • Original URL
  • State: closed
  • Created 5 months ago
  • Comments: 20 (13 by maintainers)

Commits related to this issue

Most upvoted comments

@TylerLeonhardt - Karthik is gone on vacation so he won’t be able to provide steps. I understand most of it other than ll execute is turned off when running something from node. which I am not sure how to do this step