Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Use LibGit2Sharp v0.24.0 + fix crash when viewing PRs #1330

Merged
merged 2 commits into from
Nov 22, 2017

Conversation

jcansdale
Copy link
Collaborator

The crash when viewing PRs was still happening in the GHfVS v2.3.5 bugfix release. This PR moves back to LibGit2Sharp v0.24.0 (because moving to v0.23.1 didn't fix it).

I've cherry-picked the fix from #1311. This wrapps the Repository object in a using statement. This appears to fix the issue, but I'm not convinced the fix is anything to do with disposing the Repository object (it can crash before the object has been disposed).

I'm not sure why the fix works, but it doesn't harm anything and it's worth getting out ASAP while we're working for a more concrete solution.

Fixes #1306

Use the latest "stable" version of LibGit2Sharp.
Somehow putting the `repo` object in a `using` avoids the following issue:
#1306
@jcansdale
Copy link
Collaborator Author

I haven't been able to this build crash using VS 2017 and the Avalonia solution. Went up and down the list of PRs and nothing. Please beat on it and see if you can make it crash!

@meaghanlewis
Copy link
Contributor

this is looking great to me. tested in both VS2015 and VS2017 with multiple repositories and haven't experienced a crash when viewing PRs.

Copy link
Contributor

@grokys grokys left a comment

Choose a reason for hiding this comment

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

LGTM! Tried it and don't seem to be getting the crashes any more.

@jcansdale jcansdale merged commit 0bb831f into release/2.3.6 Nov 22, 2017
@jcansdale jcansdale deleted the release/2.3.6-packages branch November 22, 2017 14:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants