-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Visual Studio operates on outdated cache after git pull again #73455
Comments
Here's the Repro.zip again |
Might related to workspace & PS. |
Is there any workaround beside restarting visual studio or reloading the solution after the pull operation? |
That is very annoying. Half the times I switch a branch I need to re-open VS for it to work again :( |
This also affects the quick code search feature that opens with |
Fixed with #75815 |
The issue is still present in VS 17.13 Preview 2. |
@CyrusNajmabadi please reopen, the issue still occurs exactly as described in the repro steps as of VS 17.13 Preview 4 |
@ToddGrun @jasonmalinowski ptal. Your fix doesn't seem to have addressed this according to users. |
This issue has been moved from a ticket on Developer Community.
[severity:It's more difficult to complete my work] [regression] [worked-in:a few versions ago, maybe 17.8]
This is the same issue as https://developercommunity.visualstudio.com/t/Visual-Studio-operates-on-outdated-cache/10161097 again since the same problem has come back:
When you git pull changes to files currently not opened in the editor and then run a codefix on project or solution level that will modify a file that was changed by the git pull, the codefix will undo the changes you’ve previously git pull’d.
In addition, if a file currently opened in the editor references members that are currently not open in the editor and were added in the latest git pull, those will have a red squiggly. The squiggly disappears if you open the file containing the added members.
In addition, even though the build worked fine, if you start debugging, halt at a breakpoint and then try to take a step, E&C will report errors due to changes you've supposedly made that cannot be applied.
To reproduce:
Original Comments
Feedback Bot on 5/1/2024, 09:03 PM:
(private comment, text removed)
Original Solutions
(no solutions)
The text was updated successfully, but these errors were encountered: