DonJayamanne / vscode-python-manager

Python Environment & Package Manager
MIT License
117 stars 20 forks source link

Update All Packages doesn't work #72

Open ClipLee opened 10 months ago

ClipLee commented 10 months ago

Type: Bug

Behaviour

Expected vs. Actual

Expected: After activating the Update All Packages function the extension updates all packages with available updates.

Actual: Extension refreshes packages list but does not update any packages,

Steps to reproduce:

  1. Activate the Update All Packages function when package updates are available

Diagnostic data

User Settings

``` languageServer: "Pylance" ```

Extension version: 1.2.4 VS Code version: Code 1.83.1 (f1b07bd25dfad64b0167beb15359ae573aecd2cc, 2023-10-10T23:48:05.904Z) OS version: Windows_NT x64 10.0.22621 Modes:

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 7 5800X 8-Core Processor (16 x 3800)| |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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|31.93GB (17.58GB free)| |Process Argv|--crash-reporter-id ec00bb3e-8018-4d6f-839f-ea81a0d8f0e6| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vsdfh931:30280409 vshan820:30294714 vstes263:30335439 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 pythonvs932:30410667 py29gd2263cf:30856253 vscaat:30438848 vsclangdf:30486550 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyonecf:30548226 3biah626:30602489 89544117:30613380 a9j8j154:30646983 showlangstatbar:30737416 962ge761:30841074 pythonfmttext:30731395 fixshowwlkth:30771522 showindicator:30805244 pythongtdpath:30769146 i26e3531:30792625 pythonnosmt12:30797651 pythonidxpt:30866567 pythonnoceb:30805159 dsvsc013:30795093 dsvsc014:30804076 pythonmhint1:30842940 dsvsc015:30845448 pyreplss1:30865275 pythoncet0:30866520 h48ei257:30870396 pythontbext0:30864172 ```
OxQwerty commented 7 months ago

Also got same problem. One by one updates work. Updates all packages only refresh list of packages 123

Zeilden commented 3 weeks ago

Having this same issue; Looking at the Python environments output, the script gets a list of outdated packages in a Json format, but then the next command it runs is trying to update the packages by only the version number IE: "./.venv/bin/python -m pip install -U 2.16.0 3.5.2 1.35.4 1.35.4 1.17.0 1.8.5 3.8 8.1.5 4.2.4 3.0.13". It looks like tools/pip.ts utilizes 'outdatedPackages?.values()', however the code for getOutdatedPipPackages puts the package names into the keys: 'map.set(pkg.name, pkg.latest_version))'