-
Notifications
You must be signed in to change notification settings - Fork 389
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
Synchronise language service project updates #8895
base: main
Are you sure you want to change the base?
Synchronise language service project updates #8895
Conversation
78eadfe
to
411953b
Compare
...crosoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/LanguageServices/Workspace.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but I think we need to make the same change to the WriteAsync
methods.
@drewnoakes @tmeschter So this meant you were potentially updating a project while it was being disposed at the same time? I wonder if that explains a bunch of bugs I've been seeing that I haven't been able to track down.... |
@jasonmalinowski Possibly. More likely if the issues you were seeing involved ObjectDisposedExceptions. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@drewnoakes We've been hitting concurrency issues with the agent pool all day. If you look at the graph here and add the currently running jobs + queued jobs, it'll be around 820, which is the max for the agent pool. We'll just have to wait. |
Nothing specifically with object disposed exceptions, but we were seeing bugs where we'd potentially try creating references to projects that are missing, or things like that. If it's possible you were removing a project from the workspace and also adding/removing output paths for it at the same time, we might have gotten into those bad states. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Ensures a workspace will not be disposed during an update by wrapping the update in `ExecuteUnderLockAsync`.
6746fff
to
259709b
Compare
I think the failure is actually related to this PR somehow. Other PRs are building. I will investigate later as it's late here now. FYI @tmeschter |
@drewnoakes A quick review of the build output does look like it could be hanging in the unit test run. :-( |
Ensures a workspace will not be disposed during an update by wrapping the update in
ExecuteUnderLockAsync
.Diff looks worse than it is. Recommend viewing without white space changes.
Microsoft Reviewers: Open in CodeFlow