-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
"StrictFilePathMarshaler must be used on a FilePath" error #14
Comments
Hi @martinskuta, are you still able to reproduce the error? If so, can you give this updated version 1.0.1.1 of Diff All Files a try and see if it resolves the issue. All I've done here is updated to use the latest version of LibGit2Sharp, and the release notes did mention some bug fixes around file paths in the library, so I'm hoping it solves the issue. Let me know, thanks. VS.DiffAllFiles.VS2017-v1.0.1.1.zip Oh, and you'll need to rename the file extension from |
Ah, now I noticed you have created #15 for it :) |
Thanks for the confirmation @martinskuta. I'm glad LibGit2Sharp was able to get at least one of their problems resolved. I tried looking into the |
I just updated the VS 2017 extension to v1.0.2 which includes the latest version of LibGit2Sharp (v0.26). I had a git repo where I could reliably reproduce the "The given key was not present in the dictionary." error, and it looks to have fixed it. I'm not certain if it also fixes the "StrictFilePathMarshaler must be used on a FilePath" error however as I do not have a git repo where I can reliably reproduce it anymore. If you guys do, I'd appreciate you testing it out and letting me know if it seems to be fixed with the new version or not. Thanks! |
Thanks @ErikvO , it seems this error is unrelated to the "key not present in dictionary error" I guess. Would you be willing to zip up and send me your repository so that I can reproduce this issue and try and debug it? If so, send it to my email address deadlydog AT hotmail.com. Thanks! |
Unfortunately I cannot share the repository. |
Thanks @ErikvO . I've found that same reported issue in the past, and is actually what lead me down the road of self-signing the libgit2sharp.dll that gets included with DiffAllFiles to prevent Visual Studio from mixing up the same dll from the 2 different sources/versions. I've had the You're saying that you removed the |
Yes, I indeed removed the |
@ErikvO I'm also curious if you saw that error on ALL of your git repos when you had the |
I saw the error in all of them. We use multiple repositories and they all had it. |
I have this issue on vs2019 with |
@maxisam I'm not entirely surprised, as my extension and that one are both using the LibGit2Sharp library which is where this error is originating from. I'm curious, are you getting that error in |
it was fine with |
I have this issue on vs2019 without I just made my first 'publish' of my project using VS2019 'Publish to Github' provider, and Diff All Files give me the same error as OP (I don't have the problem with other projects that are using a normal git repository - non github) |
The following error was reported on the VS Marketplace:
I've experienced this problem in the VS 2015 version of the Diff All Files, but not the VS 2017 version, so it will still need to be investigated. In VS 2015 this error was thrown from the gitlib2sharp library, and the workaround was to re-clone the repository (to a different directory, or delete your current directory and re-clone). I'm not sure if that workaround will work in VS 2017 or not though, so if we could get confirmation on that it would be nice.
We still need to see if there's some way we can have Diff All Files handle this error more gracefully, and ideally have additional logic in code to get it working without the user having to re-clone the Git repository.
The text was updated successfully, but these errors were encountered: