Author |
Topic  |
|
derceg
New Member

3 Posts |
Posted - Feb 22 2025 : 3:14:09 PM
|
Hi, I've encountered an odd issue when enabling Source Links for GitHub. Both the tooltips and click-to-open functionality work, however, it appears that if the issue number is 430 or above, the tooltip only contains the text "Value was either too large or too small for an Int32". If the issue number is below 430, the tooltip correctly contains information about the issue.
I've tested it with about 10 or 15 issues below 430 and the tooltip consistently displays correctly. I've also tried various issues above 430 and it always displays the error above. The only exception appears to be when the issue doesn't exist, in which case a "Not Found" message will be properly displayed.
Edit: In this case, the repository is public, so I can provide the repository URL, if that will help. |
Edited by - derceg on Feb 22 2025 3:17:35 PM |
|
feline
Whole Tomato Software
    
United Kingdom
19147 Posts |
Posted - Feb 24 2025 : 09:06:48 AM
|
The repository URL would be useful please.
I have just configured Source Links for GitHub like this:
Authentication type = Unauthenticated URL = https://github.com/microsoft/PowerToys
On the comment:
// issue:=30000
I am getting a tooltip just fine, while I get "not found" on the tooltip:
// issue:=40000
which is reasonable since the issue count doesn't seem to have reached 40,000 yet. |
zen is the art of being at one with the two'ness |
 |
|
derceg
New Member

3 Posts |
|
derceg
New Member

3 Posts |
Posted - Feb 24 2025 : 10:33:54 AM
|
From looking at the response returned from the GitHub API, it appears the problem may be the issue ID. In my repository, issue 429 has an ID of 2125481376, while issue 430 has an ID of 2152892580, which is outside the range of a 32-bit signed integer.
If I switch to the PowerToys repository, the tooltip is displayed correctly for issue 30000, which has an ID of 2008711158, but the "Value was either too large or too small for an Int32" error is displayed for issue 36000, which has an ID of 2671416391, which is again outside the range of a 32-bit signed integer. |
 |
|
feline
Whole Tomato Software
    
United Kingdom
19147 Posts |
Posted - Feb 27 2025 : 09:32:05 AM
|
After a bit of digging, it looks like the library we are using to get Github issues has recently, in the last month, been updated to change the type of the issue ID from int to long, for this very problem. I have put in a bug report for this:
case=165584
So much for my theory it was going to be as simple as change the internal type from int to long in VA's code. Although a library update will, hopefully, be simple. |
zen is the art of being at one with the two'ness |
 |
|
|
Topic  |
|
|
|