NuGet / Home

Repo for NuGet Client issues
Other
1.5k stars 253 forks source link

[Bug Bash] [Unstable] The first removing of a source mapping from the ‘Package Source Mappings’ list in ‘Package Source Mapping’ dialog doesn’t work #13520

Open v-luzh opened 4 months ago

v-luzh commented 4 months ago

NuGet Product Used

Visual Studio Package Management UI

Product Version

Dev\6.11.0.87

Worked before?

It is not regression since it can be reproduced on D17.9\34601.282.

Impact

It bothers me. A fix would be nice

Repro Steps & Context

Repro Steps:

  1. Create a C# Console App (.NET 8.0) project and open the PMC.
  2. Click the ‘settings’ button on the top of PMC window and click ‘NuGet Package Manager->Package Source Mapping’ tab.
  3. Click the ‘Add’ button, add several package source mappings and click ‘OK’ button.
  4. Click the ‘settings’ button on the top of PMC window and click ‘NuGet Package Manager->Package Source Mapping’ tab.
  5. Select a package source in the ‘Package Source Mappings’ list, click the ‘Remove’ button and click ‘OK’ button.
  6. Click the ‘settings’ button on the top of PMC window, click ‘NuGet Package Manager->Package Source Mapping’ tab and observe the the ‘Package Source Mappings’ list.

Expected Results:

The removed package source mapping in step5 disappears in the ‘Package Source Mappings’ list.

Actual Result:

The removed package source mapping in step5 still shows in the ‘Package Source Mappings’ list as below record. FailToRemoveSourceMapping

Notes:

1.Repro rate: 30%. 2.Removing the source mapping will work at the second time. 3.It is easy to repro at the first operation in ‘Options->NuGet Package Manager->Package Source Mapping’ dialog. If you cannot repro anymore, please restart your VM and follow the steps above.

Verbose Logs

No response

jeffkl commented 3 months ago

Team Triage: @donnie-msft can you please triage this issue? If its worth fixing, we can set Priority and add it to the Project for future addition to the backlog.

donnie-msft commented 3 months ago

It seems like the code writing to settings is flaky, perhaps only from the PMC. Based on what I see and low repro rate, the current priority seems appropriate.

SueSu01 commented 1 month ago

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