Handle overlapped restore when build is triggered#7470
Conversation
Restore logs to the PackageManager output console and status bar both. The confirmed issue on the other side is more about restore winning before build. #7431 will fix that. I think this would theoretically make things better by putting restore logs in the build output isntead of just the package manager console, but it's a different problem. |
Could you clarify what you mean? I think we might be seeing two separate issues. The delay I'm referring to is where build appears to be stalled with no progress indication:
The Package Manager output isn't even available as an option yet:
The build is awaiting for |
|
I am referring to https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2901003. When talking about the bug you're seeing you mentioned a linked issue, so that's why I said the linked issue is different. |
Ah, I understand what you meant now. I did some additional digging and found out that there are a few things going on. It's technically true that build is waiting on a restore to finish, but the implicit restore is also blocked on the project system. The restore is waiting for all the projects to be nominated inside the loop in |
|
This PR has been automatically marked as stale because it has no activity for 7 days. It will be closed if no further activity occurs within another 7 days of this comment. If it is closed, you may reopen it anytime when you're ready again, as long as you don't delete the branch. |


Bug
Fixes:
Description
On solution open, an implicit restore is triggered. If the user then immediately triggers a build, a second restore is queued after the implicit restore, and since there are no outward signals that a restore is in progress, the build appears to be stuck. This change adds a message to the output window indicating that a restore is in progress and avoids scheduling a second restore if the results of the first are valid.
PR Checklist