hatch is not discovered in shell or default Python (OS=Windows) #23819
Labels
info-needed
Issue requires more information from poster
triage-needed
Needs assignment to the proper sub-team
Type: Bug
Behaviour
On Windows, VSCode only finds
hatch
when it's installed with the hatch installer https://hatch.pypa.io/1.12/install/#gui-installer_1This could be a barrier as it requires admin privileges.
Other methods of installing hatch are not discovered by VSCode and prevent VSCode from suggesting Hatch environments.
https://code.visualstudio.com/updates/v1_88#_hatch-environment-discovery
Steps to reproduce:
pip install --user hatch
hatch
should work in PowerShell.if not, user may need to
code $profile
and add:I would expect VSCode to use
hatch
installations in this orderhatch
in PowerShell PATHhatch
in the default Python installationAlternatively, there should be Setting to specify path to hatch. Currently, search Settings for "hatch" shows nothing.
Extension version: 2024.10.0
VS Code version: Code 1.91.1 (f1e16e1e6214d7c44d078b1f0607b2388f29d729, 2024-07-09T22:06:49.809Z)
OS version: Windows_NT x64 10.0.19045
Modes:
python.languageServer
setting: DefaultUser Settings
Installed Extensions
System Info
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
A/B Experiments
The text was updated successfully, but these errors were encountered: