Skip to content
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

Feedback/Data?? -- Auto-restore fails multiple times until all projects are loaded #4577

Closed
alpaix opened this issue Feb 11, 2017 · 5 comments
Labels
Milestone

Comments

@alpaix
Copy link

alpaix commented Feb 11, 2017

Details about Problem

Auto-restore will fail multiple times when opening a solution containing more than one project with following error:

Error occurred while restoring NuGet packages: The operation failed as details for project WebApplication3 could not be loaded.

Eventually when all of projects get nominated the last auto-restore will succeed:

Restoring NuGet packages...
Time Elapsed: 00:00:14.5134111
========== Finished ==========

The problem lies in the fact of irregular nomination intervals. It leads to sporadic triggering of auto-restore before all necessary project data is placed into a cache.

Proposal

Provide better mechanism for combining requests:

  1. Increase idle interval
  2. Hide known errors from user
  3. Put a barrier blocking auto-restore from running.
  4. ...

Update from Rob: Also seen in Internal bug 382293

@rrelyea rrelyea added this to the 4.0.1 milestone Feb 13, 2017
@emgarten
Copy link
Member

Here is the output from opening NuGet.Core.sln

Error occurred while restoring NuGet packages: The operation failed as details for project NuGet.XPlat.FuncTest could not be loaded.
Error occurred while restoring NuGet packages: The operation failed as details for project NuGet.XPlat.FuncTest could not be loaded.
Error occurred while restoring NuGet packages: The operation failed as details for project NuGet.XPlat.FuncTest could not be loaded.
Error occurred while restoring NuGet packages: The operation failed as details for project NuGet.XPlat.FuncTest could not be loaded.
Error occurred while restoring NuGet packages: The operation failed as details for project NuGet.XPlat.FuncTest could not be loaded.
Error occurred while restoring NuGet packages: The operation failed as details for project NuGet.XPlat.FuncTest could not be loaded.
Error occurred while restoring NuGet packages: The operation failed as details for project NuGet.XPlat.FuncTest could not be loaded.
Error occurred while restoring NuGet packages: The operation failed as details for project NuGet.XPlat.FuncTest could not be loaded.
Error occurred while restoring NuGet packages: The operation failed as details for project NuGet.XPlat.FuncTest could not be loaded.
Error occurred while restoring NuGet packages: The operation failed as details for project NuGet.XPlat.FuncTest could not be loaded.
Error occurred while restoring NuGet packages: The operation failed as details for project NuGet.XPlat.FuncTest could not be loaded.
Error occurred while restoring NuGet packages: The operation failed as details for project NuGet.XPlat.FuncTest could not be loaded.
Error occurred while restoring NuGet packages: The operation failed as details for project NuGet.XPlat.FuncTest could not be loaded.
Error occurred while restoring NuGet packages: The operation failed as details for project NuGet.XPlat.FuncTest could not be loaded.
Error occurred while restoring NuGet packages: The operation failed as details for project NuGet.XPlat.FuncTest could not be loaded.
Error occurred while restoring NuGet packages: The operation failed as details for project NuGet.XPlat.FuncTest could not be loaded.
Error occurred while restoring NuGet packages: The operation failed as details for project NuGet.XPlat.FuncTest could not be loaded.
Error occurred while restoring NuGet packages: The operation failed as details for project NuGet.XPlat.FuncTest could not be loaded.
Error occurred while restoring NuGet packages: The operation failed as details for project NuGet.XPlat.FuncTest could not be loaded.
Error occurred while restoring NuGet packages: The operation failed as details for project NuGet.XPlat.FuncTest could not be loaded.
Error occurred while restoring NuGet packages: The operation failed as details for project NuGet.XPlat.FuncTest could not be loaded.
Error occurred while restoring NuGet packages: The operation failed as details for project NuGet.XPlat.FuncTest could not be loaded.
Error occurred while restoring NuGet packages: The operation failed as details for project NuGet.XPlat.FuncTest could not be loaded.
Error occurred while restoring NuGet packages: The operation failed as details for project NuGet.XPlat.FuncTest could not be loaded.
Error occurred while restoring NuGet packages: The operation failed as details for project NuGet.XPlat.FuncTest could not be loaded.
Error occurred while restoring NuGet packages: The operation failed as details for project NuGet.XPlat.FuncTest could not be loaded.
Error occurred while restoring NuGet packages: The operation failed as details for project NuGet.Packaging.Core.Test could not be loaded.
Error occurred while restoring NuGet packages: The operation failed as details for project NuGet.Packaging.Core.Test could not be loaded.
Restoring NuGet packages...

I think we should consider this for RTM

@emgarten
Copy link
Member

This looks the same as #4307

@emgarten
Copy link
Member

Moving to 4.1 based on user feedback

@emgarten
Copy link
Member

Based on dotnet/project-system#1725 (comment) it sounds like this error isn't always benign and sometimes means the project isn't actually restored until the solution is reloaded.

@rrelyea rrelyea changed the title Auto-restore fails multiple times until all projects are loaded Feedback/Data?? -- Auto-restore fails multiple times until all projects are loaded Mar 15, 2017
@rrelyea
Copy link
Contributor

rrelyea commented Mar 21, 2017

Dupe of #4307

@rrelyea rrelyea closed this as completed Mar 21, 2017
@rrelyea rrelyea added Resolution:Duplicate This issue appears to be a Duplicate of another issue and removed Triage:NeedsTriageDiscussion Type:DCR Design Change Request labels Mar 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants