-
Notifications
You must be signed in to change notification settings - Fork 255
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
dotnet restore hangs indefinitely #5583
Comments
From @MathiasKowoll on July 3, 2017 22:45 I looked that while having many libs in the folder wwwroot\lib dotnet restore takes a while to restore the files, If I remove that folder it restores immediately. This happens with al dotnet commands. CLI and Visual Studio 2017 Preview 3 |
From @dsyme on July 4, 2017 22:22 I put a full process dump of a hung dotnet.exe here: https://1drv.ms/u/s!Aq5gXOPBI5HdiroRLPy1hDY3yK80kQ
|
From @dsyme on July 4, 2017 23:5 I eventually realised that I had a very large number of files in the subdirectories under the Now, it's my belief that the presence of these files shouldn't have caused problems for a simple I tried to procmon.exe the activity of dotnet.exe but the trace was large. The screenshot below showed that it is indeed accessing all the subdirectories, In this case, it seemed like the thing just never terminated, I don't know what it was doing though o all those blocked threads Anyway, I think the bug here is that running Now I know that I can get on with the rest of my work :) |
From @Petermarcu on July 7, 2017 7:43 @rrelyea should this get moved to the nuget repo to get tracked? |
From @Lanayx on July 7, 2017 9:1 I got the same issue. For me the problem was that new dotnet restore (from dotnet-sdk-2.0.0-preview2-006497-win-x64) ignores disabledPackageSources configuration in NuGet.Config, and I had some of them unreachable. Removing these sources helped. |
From @richlander on July 7, 2017 13:53 @Petermarcu I was going to make @ https://github.com/NuGet/NuGet.Client but issues are not enabled. |
From @Petermarcu on July 7, 2017 15:24 @richlander you make it on the nuget/home repo |
From @forki on July 7, 2017 18:0 Same issue here: fable-compiler/Fable#1042 |
From @rrelyea on July 7, 2017 18:22 Working on creating NuGet/home issues ... will link when created. |
From @rrelyea on July 7, 2017 18:24 @dsyme - in dotnet cli v1 previews, we used to walk all the sub directories. I had thought we changed that when we switched to make restore recursive (across project references) by defeault. do you have the same problem if you do a "dotnet restore --no-dependencies" in that same directory? |
From @rrelyea on July 7, 2017 18:25 @MathiasKowoll - can you please give me repro steps for your problem (full details), and how you avoided it. |
From @rrelyea on July 7, 2017 18:34 @forki - I am unable to repro. |
From @MathiasKowoll on July 7, 2017 18:49 @rrelyea create mvc app with individual authentication. replace bower.sjon with the following. { make bower install run dotnet restore. |
From @forki on July 7, 2017 19:24 Seems that things worked with preview1 see fable-compiler/Fable#1042 |
I don't think it's nuget issue since we also see slow behavior in dotnet build. |
If I install "kendo-ui-core" through bower "dotnet build" will hang indefinitely. If I delete "wwwroot/lib/kendo-ui-core/" it will build again. Please fix this ASAP, so we can get on with development. |
Tagging @emgarten for restore visibility. @forki @mikkeljohnsen : Are you seeing an indefinite hang in |
@mishra14 dotnet restore is not indefinitely but takes about 5 minutes. |
The same is happening on azure now. This issue spreads.dotnet/core#724 (comment) |
This appears to be an issue with msbuild file globbing in the project on dotnet CLI. MSBuild in desktop does not have this issue. I also don't see any changes to the SDK around the props including these. Using the bower.json file above here are the numbers I am getting:
Restore appears to make the existing problem worse, there may be a target that is changing properties and causing things to be evaluated additional times. I'll take a look at what can be improved there. The main issue appears to be the time globbing takes, the project should not take this long to evaluate just to return the project and package references that restore needs. Workaround
EnableDefaultItems=false will disable globbing for project directory files during restore. |
EnableDefaultItems=false. Will also disable all items in VS (Mac). So not really useful. And VS (Mac 7.1 build 1281) Still hangs on "Run" (Build) |
@mikkeljohnsen |
@emgarten is there a fix to see on the horizon? |
@forki not yet, it is still being investigated. I'll keep you posted. |
@emgarten "dotnet build --no-restore" still takes more than 1 minute for a simple project with kendo-ui-core installed. And from VS (Mac) it is not able to compile at all. Hope there will be a fix very soon. Because only solution is to downgrade to preview1 |
I think I've figured out what is causing this, and you should be able to workaround it for now by setting the |
@dsplaisted is there an issue tracking the work needed for this? Is it going to be on the SDK side? |
@dsplaisted Thanks that works. |
This issue was moved to dotnet/sdk#1434 |
From @richlander on July 3, 2017 20:57
See:
/cc @rrelyea
Copied from original issue: dotnet/core#724
The text was updated successfully, but these errors were encountered: