-
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
LocalHistory sometimes saves backup files within wrong path #1
Comments
The wrong path is created when it thinks the file is outside the current solution. Are you opening/closing/changing solutions after opening visual studio? |
No to both questions. It happens very random, today saves about 10 "abnormal" history and about 100 "normal". My guess is something inside (maybe Windows internal) returning lowercased path. |
It looks like there is problem with opened file path saved in solution (suo files).
Closing tab/file and opening bring back correct backup path. PS. My Visual Studio version is 2013. |
Just tested with disabled extensions and also SafeMode and it looks like Visual Studio save wrong (lowercased) paths in SUO file and then use it after solution reopening. |
Maybe it has to do with the Resharper extension because for me most files are saved in the wrong path which makes them not show up in the Local History tab. Would be awesome to get this fixed! |
More testing shows it is very weird because reopened solutions shows lowercased paths for all files besides the one which was current when closing solution. Check for path by hovering over opened file tab shows lowercased path. I do not use ReSharper. |
Sometimes LocalHistory saves backup files with absolute path and not relative and with small letters.
These backup files is not visible in Local History window.
Normally backup files are stored like (for solution in d:/Projects/MySolution and MyProject):
d:/Projects/MySolution/.localhistory/MyProject/SubDirectory/1448363004$MyFile.cs but sometimes it creates directories like:
d:/Projects/MySolution/.localhistory/d/projects/mysolution/myproject/subdirectory/1448363004$myfile.cs`It happens very random, sometimes many times a day, sometimes many days without problem...
The text was updated successfully, but these errors were encountered: