UI.WPF.Modern icon indicating copy to clipboard operation
UI.WPF.Modern copied to clipboard

Missing TabItemHelper.cs file referenced in Source Link – causes debugging issues

Open grimmiegramm opened this issue 8 months ago • 1 comments

Describe the bug

On iNKORE.UI.WPF 1.28 and iNKORE.UI.WPF.Modern 0.10.0,

While debugging an application that uses the iNKORE.UI.WPF.Modern NuGet package, Visual Studio attempts to locate the source file:

E:\Yoojun Products\iNKORE.UI.WPF.Modern\source\Inkore.UI.WPF.Modern\Controls\Helpers\TabItemHelper.cs

The debugger uses Source Link and tries to access the file at:

https://raw.githubusercontent.com/iNKORE-NET/UI.WPF.Modern/0c069985a218b616994b5193516eae2c73fd896a /source/Inkore.UI.WPF.Modern/Controls/Helpers/TabItemHelper.cs

Commit: 0c069985a218b616994b5193516eae2c73fd896a

However, the request fails with a 404 error because the file does not exist in the repository or is not publicly accessible at that commit.

Impact: This results in:

  • NullReferenceException stack traces pointing to source files that cannot be inspected
  • Debugger failing to step into or decompile library code
  • Degraded debugging experience for users relying on Source Link

Exception thrown at:

Image

Thanks in advance.

Reproduction

  1. Create a new WPF application.
  2. Install the iNKORE.UI.WPF.Modern NuGet package.
  3. Add a TabControl with one or more TabItem elements using the default iNKORE styles.
  4. Run the application in Debug mode.
  5. When a NullReferenceException is thrown from TabItemHelper.UpdateTabGeometry, open the Call Stack and attempt to navigate to the source file.
  6. Visual Studio will attempt to fetch: https://raw.githubusercontent.com/iNKORE-NET/UI.WPF.Modern/0c069985a218b616994b5193516eae2c73fd896a/source/Inkore.UI.WPF.Modern/Controls/Helpers/TabItemHelper.cs

which results in a 404 error.

Expected Behavior: Visual Studio should locate and display the source file for better debugging support.

Actual Behavior: Debugger cannot locate the source file due to missing commit or missing file in public repo, causing Source Link failure.

Image

Suggested Solution

No response

Library Version

1.2.8

Operating System

Windows 11

Framework

.NET Framework

Framework Version

8.0

Source of Package

NuGet.org (Package)

Additional Notes

No response

Validations

  • [x] Check that there isn't already an issue that reports the same or similar problem.
  • [x] Check that this is a bug in the library that should be fixed, not a feature, also this is not about the documentation. (Or please choose the right repo and template.)
  • [x] This is one single problem, or a few problems with the same cause. (If you want to report multiple problems, please create one issue for every single problem.)
  • [x] You've checked that this problem still exists in the latest version. (Keep in mind that we don't provide any support for old versions.)
  • [x] You know that we can't guarantee that we will satisfy your request. This is not really our duty to do everything anyone asks for. Also, you will treat our staff, contributors, and other users with respect and kindness.
  • [x] You're sure there's something wrong with the library itself, not how you're using it. (If you are having issues using it and need help, please go to discussion.)

grimmiegramm avatar Jun 11 '25 08:06 grimmiegramm

It doesn't exist because somehow the casing of the path is changed. It should be:

source/iNKORE.UI.WPF.Modern/Controls/Helpers/TabItemHelper.cs

You should be able to view the file at: https://raw.githubusercontent.com/iNKORE-NET/UI.WPF.Modern/0c069985a218b616994b5193516eae2c73fd896a/source/iNKORE.UI.WPF.Modern/Controls/Helpers/TabItemHelper.cs

But somehow iNKORE became Inkore and git is not ignoring cases so 404 happened. 'Inkore' was the form that we used years ago before we changed everything to 'iNKORE', but I don't know who is ignoring the changes and still using the old crappy one.

I tried to re-clone the repository, but that didn't work.

NotYoojun avatar Jun 11 '25 09:06 NotYoojun