NuGet / Home

Repo for NuGet Client issues
Other
1.49k stars 250 forks source link

Trim the input in the search box for “Installed” and “Updates” tab #12030

Open v-longmin opened 2 years ago

v-longmin commented 2 years ago

NuGet Product Used

NuGet.exe

Product Version

Dev\6.4.0.47

Worked before?

No response

Impact

It bothers me. A fix would be nice

Repro Steps & Context

Installation steps:

  1. Install VS Main\32916.354 from: Pipelines - Run main-32816.354 (visualstudio.com)
  2. Install NuGet Client Dev\6.4.0.47 from: Pipelines - Run 6.4.0.47 (visualstudio.com)

Repro steps:

  1. Create a C# Class Library (.Net Core) project.
  2. Build the solution and make sure compilation succeeds.
  3. Right-click the project in Solution Explorer and select “Manage NuGet Packages…” menu item to open PM UI.
  4. Click “Browse” tab and select the “nuget.org” from Package source drop-down list.
  5. Search 'Microsoft.NETCore.Platforms' package in the filter of “Browse” tab, select version 6.0.1 in the “Version” drop-down box and click the ‘Install’ button on the right panel.
  6. Switch to the “Installed” and “Updates” tab.

Expected:

The package should show on “Installed” and “Updates” tab.

Actual:

No package found on “Installed” and “Updates” tab as below screenshot. image image image

Note:

The issue reproes when the project is first created.

Verbose Logs

No response

nkolev92 commented 2 years ago

@v-longmin I tried to repro this 5 times and no luck :(

How often does this issue repro? Have you attempted reproing it with Visual Studio 17.3 or 17.2?

v-longmin commented 2 years ago

@nkolev92 The issue repro ratio is 60% and reproes and reproes when installing the first package into a new project, and the issue does not repro on 17.3 & 17.2.

nkolev92 commented 2 years ago

Ok, so just to confirm, 17.2 - OK 17.3 - OK 17.4 with latest NuGet - 60% repro.

I'll update everything and try to repro again.

nkolev92 commented 2 years ago

I'm having trouble reproing this at all. I'll leave it for next week's hotseat to try again.

@v-longmin Any chance you can record the repro? I wonder if the machine performance is a big factor.

v-longmin commented 1 year ago

@nkolev92 The repro screenshot as below. Animation

nkolev92 commented 1 year ago

@v-longmin

You have a space at the end of your search query.

nuget.org's search works differently from the search on the updates/installed tab.

image

nkolev92 commented 1 year ago

For triage, a possible solution would be trimming the input into the search? Should we even be doing that? Alternatively, we can just say no fix to this one.

nkolev92 commented 1 year ago

Team Triage: We think we should be trimming the input.

v-longmin commented 1 year ago

Verified the issue on Dev\6.6.0.27, it's not repro, so close it, thanks.

nkolev92 commented 1 year ago

Reopening as there's a still a change we want to make client side.

@v-longmin You don't need to verify this issue anymore. Thanks.

SueSu01 commented 3 days ago

It still reproes on VS Main\35222.175 + NuGet Client Dev\6.12.0.82.