Skip to content
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

Incorrect link generated, possibly tied to memory constrained system. #13

Open
Alexandre-Nourissier opened this issue Sep 7, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@Alexandre-Nourissier
Copy link

While it usually performs admirably, I encountered a surprising bug today :

Environment

CopyGitLink Version 1.4.1
Microsoft Visual Studio Enterprise 2019 Version 16.11.1

What happened?

Generated a link without the first character of the file path :
https://github.com/Hectre/WebApp/blob/36fcd13a995694de4ffa440ba270d6d75711afd8/ectre.AspNetCore.Utilities.Tests/ApplicationFactory/CustomWebApplicationFactory.cs#L91-L91

Notice ectre.AspNetCore

What did you expect?

Generate a link with the complete file path :
https://github.com/Hectre/WebApp/blob/36fcd13a995694de4ffa440ba270d6d75711afd8/Hectre.AspNetCore.Utilities.Tests/ApplicationFactory/CustomWebApplicationFactory.cs#L91-L91

Notice Hectre.AspNetCore

Additional information

I was able to reproduce it with every type of link generation, on multiple files of various depths in this repository.

I was running short on memory due to a RoslynAnalyzer memory leak. After restarting Visual Studio, the link generation generated the files properly again.

@Alexandre-Nourissier Alexandre-Nourissier changed the title Incorrect link generated, possible tied to memory constrained system. Incorrect link generated, possibly tied to memory constrained system. Sep 7, 2021
@veler
Copy link
Owner

veler commented Sep 7, 2021

It is indeed very surprising! Thanks for reporting it. I will look at how the URL is generated to see if there's an obvious mistake that could cause this.

@veler veler added the bug Something isn't working label Sep 7, 2021
@hammond13
Copy link

I ran into this issue as well. The first letter of the file path in the link was missing. It didn't seem to be related to a memory issue, but restarting Visual Studio did fix it.

@AaronSchares
Copy link

I'm seeing the same issue. The first letter after the blob ID is missing. Restarting fixed it for a while, but it came back after an hour or so.

@Alexandre-Nourissier
Copy link
Author

It happened again, on a totally different device, on Visual Studio 2022 and in another private org/repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants