-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug Bash][Unstable] An error “Attempted to divide by zero.” occurs when executing command “dotnet list [ProjectPath] package --vulnerable” #14122
Comments
I don't think this is a new feature. There's nothing in the scenario that makes it a new feature. Can you also post the project file you end up with? Unfortunately, I seem to be hitting the 30% where I can't repro it. NuGet/NuGet.Client@38f10f6 is the likely root cause if it's a recent regression. |
Hi @nkolev92, we nerver encountered this issue in the regular Dotnet list Test before Dev\6.14.0.27, it is started to repro when the new feature I have attatched the project to this path |
I was able to reproduce the issue on 8.0.3 and 9.0.1. I don't think this is a regression |
I think the config file you have in the repro description is different from the one you have in the attached project. For me, this repros only when a nuget.config file has no |
I don't think it is related to NuGet/NuGet.Client@38f10f6 either. |
@CiciLi1 |
Great catch @Nigusu-Allehu This should be a quick fix. |
Hi @nkolev92 & @Nigusu-Allehu, thanks for your reply! We were previously able to repro this issue when adding Today we can reproduce it 100% when the nuget.config file is not configured with |
Thanks for confirming. Up to you @CiciLi1 We know the root cause now, this is an easy fix. |
I was taking a look at this again. I noticed |
NuGet Product Used
dotnet.exe
Product Version
.NET SDK Version: 9.0.300-preview.0.25119.12
Worked before?
It’s not a regression since it reproes on .NET SDK 8.0.406.
Impact
It bothers me. A fix would be nice
Repro Steps & Context
Notes:
The repro rate is 100%.
The error never reproes when executing “dotnet restore”.
This error will not repro after switching to execute “.\dotnet.exe list [ProjectPath] package --vulnerable”.
Repro Steps:
Expected:
The command was executed successfully.
Actual:
An error “Attempted to divide by zero.” occur as below screenshot:
Verbose Logs
The text was updated successfully, but these errors were encountered: