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

add proper additional document update change handler in incremental s… #16628

Merged
merged 1 commit into from
Jan 23, 2017

Conversation

heejaechang
Copy link
Contributor

@heejaechang heejaechang commented Jan 19, 2017

…olution updater

unit test added

Customer scenario

Customer add or modify additional documents to a C#/VB project then VS crashes.

Bugs this fixes:

https://devdiv.visualstudio.com/web/wi.aspx?pcguid=011b8bdf-6d56-4f87-be0d-0092136884d9&id=370095

Workarounds, if any

add/modify additional file manually and then load solution. or turn off out of proc through internal registry key.

Risk

areas that have changed are covered by unit tests so I would say risk is low.

Performance impact

code change is not related to any area where performance is concerned.

Is this a regression from a previous update?

Yes.

Root cause analysis:

unit test missed this area. only covered initial additional file, not modification of the file once solution is loaded. the regression happened while improving performance of updating solution in Roslyn out of proc

How was the bug found?

Testing and Dogfooding.

@heejaechang heejaechang added PR For Personal Review Only The PR doesn’t require anyone other than the developer to review it. and removed cla-already-signed labels Jan 19, 2017
@heejaechang heejaechang changed the base branch from master to dev15-rc3 January 19, 2017 21:35
@heejaechang heejaechang removed the PR For Personal Review Only The PR doesn’t require anyone other than the developer to review it. label Jan 19, 2017
@heejaechang
Copy link
Contributor Author

@srivatsn @mavasani @panopticoncentral @dotnet/roslyn-ide can you take a look?


var solution = workspace.CurrentSolution;
var service = await GetSolutionServiceAsync(solution, map);
private static async Task VerifySolutionUpdate(TestWorkspace workspace, Func<Solution, Solution> newSolutionGetter)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is just extract method. there is actually no change here. not sure why github think there is change here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess some whitespace changes. Diffing with ?w=1 in the URL looks clean.

@heejaechang
Copy link
Contributor Author

@aakash-johari can you let us know whether the fix fixed your issue.

@aakash-johari
Copy link

@heejaechang The fix works for us. Thanks!

@heejaechang heejaechang changed the base branch from dev15-rc3 to master January 20, 2017 05:19
@heejaechang
Copy link
Contributor Author

moved bug back to master.

@heejaechang
Copy link
Contributor Author

ping? can I get code review?

@heejaechang
Copy link
Contributor Author

@MattGertz can I get approval for RTW for monday shiproom?

Copy link
Member

@jasonmalinowski jasonmalinowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What other things have we not tested with additional documents?

@heejaechang
Copy link
Contributor Author

@jasonmalinowski ya, looks like when I changed OOP to be incrementally updated, I forgot to add additional file change tests and missed issues there.

except OOP, I believe additional files are covered by tests pretty well.

@jasonmalinowski
Copy link
Member

@heejaechang Clearly we had a test hole, so are we trying other exploratory testing here to make sure we got everything for realz?

@heejaechang
Copy link
Contributor Author

@jasonmalinowski yes, we had testing hole with OOP. can't say covered 100% cases. I made OOP to crash right way if there is any inconsistency. so if there is more issue, we will know :) but so far, all cases reported, when tested no longer reproed.

@natidea
Copy link
Contributor

natidea commented Jan 23, 2017

@heejaechang please redirect this to RC3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants