jmrog / vscode-nuget-package-manager

An extension for Visual Studio Code that lets you easily add or remove .NET Core 1.1+ package references to/from your project's .csproj file using Code's Command Palette.
MIT License
34 stars 17 forks source link

Versioning information could not be retrieved from the NuGet package repository. Please try again later. #48

Open winzig opened 2 years ago

winzig commented 2 years ago

Issue Type: Bug

Lately in vscode I'm receiving this error message:

Versioning information could not be retrieved from the NuGet package repository. Please try again later.

This happens right after I select a nuget package I would like to install through the command-P system of vscode. It seems to happen with every Nuget package I've tried, so I don't think it's a package-specific issue. Googled, but not seeing others complain about this, so figured I'd post here.

Extension version: 1.1.6 VS Code version: Code 1.60.2 (7f6ab5485bbc008386c4386d08766667e155244e, 2021-09-22T11:59:27.195Z) OS version: Darwin x64 20.6.0 Restricted Mode: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-7920HQ CPU @ 3.10GHz (8 x 3100)| |GPU Status|2d_canvas: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled| |Load (avg)|3, 3, 3| |Memory (System)|16.00GB (1.81GB free)| |Process Argv|--crash-reporter-id 7fa3914a-6723-4a59-8df2-d01755446466| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 pythonvspyt602:30300191 vspor879:30202332 vspor708:30202333 vspor363:30204092 pythonvspyt639:30300192 pythontb:30283811 pythonvspyt551:30345470 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 pythondataviewer:30285071 pythonvsuse255:30340121 vscod805cf:30301675 pythonvspyt200:30340761 binariesv615:30325510 vsccppwt:30364497 pythonvssor306:30344512 bridge0708:30335490 pygetstartedt2:30371810 dockerwalkthrucf:30370837 bridge0723:30353136 pythonrunftest32:30373476 pythonf5test824:30373475 javagetstartedc:30364665 pythonvspyt187:30373474 pydsgsc2:30361791 vsqsis400:30374798 ```
kunlinyu commented 2 years ago

same issue. Extension version: v1.1.6 VS Code version: Code 1.63.2 OS version: Ubuntu 20.04.3 package need to be install: NetTopologySuite

winzig commented 2 years ago

I still experience this issue to this day...

winzig commented 2 years ago

I've created a PR that I think fixes this issue: https://github.com/jmrog/vscode-nuget-package-manager/pull/49

Basically, lowercases the selectedPackageName in the fetchPackageVersions method. This is based on this stack overflow answer, which did help me resolve the issue locally: https://stackoverflow.com/a/63087568/650558

winzig commented 2 years ago

Does @jmrog still monitor this repo?

AlFalahTaieb commented 2 years ago

Same not working for me too ...

@winzig any update ?

winzig commented 2 years ago

My patch is working fine for me. My pull request hasn't been accepted however.

jmrog commented 2 years ago

Hi everyone, and apologies to all for the delays. I do not really check or maintain this repo any longer, nor do I use the extension itself. @winzig I will approve and merge the patch, and try to get an updated version released as soon as I can.

justclint commented 2 years ago

in the meantime, this work around is working: https://stackoverflow.com/questions/58108809/versioning-information-could-not-be-retrieved-from-the-nuget-package-repository

node_fetch_1.default(`${versionsUrl}${selectedPackageName.toLowerCase()}/index.json`
LPDaVinci commented 2 years ago

thanks the toLowerCase fixes the issue. finally no manually add the packagereference :)

y0f0 commented 2 years ago

how much more time should pass for this bug to be fixed?

MijanurAli commented 1 year ago

Almost a year later and this issue still exists. Any chance @jmrog can get a new version pushed?

asolopovas commented 1 year ago

+1

UmakanthOS commented 1 year ago

+1 The _node_fetch1.default(${versionsUrl}${selectedPackageName.toLowerCase()}/index.json workaround still works thankfully but would nice to get a proper fix please, @jmrog

alexandrenolla commented 1 year ago

2023 apr 14, still bugged.

sprudel79 commented 1 year ago

Having the same issues I have switched to this extensions: https://github.com/adrian-pavel/visual-nuget

boeingbus commented 1 year ago

Having the same issues I have switched to this extensions: https://github.com/adrian-pavel/visual-nuget

THANK YOU!