-
Notifications
You must be signed in to change notification settings - Fork 12
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
Pending changes window sometimes not showing all modified files #15
Comments
Hi Phil, Hi Johannes. Regards, |
Hi Phil, Thank you so much for your work on AnkhSVN. |
I have the same issue in VS 2019 Professional when working on C++ MFC project. It shows some of changes in 'Pending changes', but not all of them. For me re-starting VS2019 doesn't help so much. I have a feeling this was working at the beginning better - so I relied on 'Pending changes' window in January-February 2020. Now have been using TortoiseSVN to commit changes because of this. It can be it's nothing to do with AnkhSVN2019 version, but my project gets somehow 'contaminated' and stops updating 'Pending changes' properly. Now today when tested this again, 'Pending changes' didn't get updated and when pressed the button 'Refresh Pending Changes' it just fired the following error message: System.InvalidOperationException: Collection was modified; enumeration operation may not execute. |
I have also received this Email report on 4-June-2020 which appears to be identical to the above error:
|
And this very similar error report on 13-June-2020
|
And this one on 13.October.2020
and on 3-November-2020
and on 27-January-2021
and on 16-March-2021
|
The original post in Issue #15 is about the pending changes not updating correctly. This change probably does not fix that. Later posts, initially from jeholsa, but later multiple errors from email reports are an InvalidOperationException in the function RefreshDirtyState(). I think that this change will fix that error.
Hello, since this renders SVN in Visual Studio unusable for us I tried debugging the issue, but I am not able to attach to services codes, so I cannot get to the bottom of this fully, but I still managed to get some useful info. The problem only affects files that are added under filter in c++ projects. E.g. I have a project g5_plugin_storm_new which contains file g5_JobTaskNode_STORMAcq.cpp. If the file is added directly under g5_plugin_storm_new in solution explorer there is no problem, it is registered with Ankh. When it is added under a filter "g5_plugin_storm_new\Tasks" it is ignored. Real path of the cpp does not seem to matter. When debugging I came across function Same goes for void InnerRefresh() where most such files (not all of them though) are not in the list returned by Mapper.GetAllFilesOfAllProjects(). The file is listed in vcxproj as and loaded without issues and has an entry in vcxproj.filters. This problem does not seem to affect header files as heavily (or at all) as cpp. Any ideas? Thanks, |
All filtered files are also not listed under ProjectMap in IProjectFileMapper.ContainsPath |
Managed to get the services symbols working. Found out that |
I have noticed that when a file doesn't appear on 'Pending Changes' list, it do can be added there by going to tab-header (with the filename on it) right-mouse click and choose 'Subversion'-'Add to Pending Changes'. Files without changes don't have this choice available. |
@jeholsa Very nice catch, this could potentially save us in the end as Microsoft is silent on the issue, thanks! |
Hi Phil,
first of all a big thank you for continuing AnkhSVN for VS2019. Unfortunately sometimes the pending changes window doesn't list all the modified files. So sometimes a modified file is missing in this list while in the project explorer the icon shows the file is modified and also the Source Control Info window show it as modified. When I restart VS2019 in such a situation the pending changes window is also correct again.
Thanks and again and best regards,
Johannes
The text was updated successfully, but these errors were encountered: