question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Source Link fails due to wrong filename casing

See original GitHub issue

Debugging into WPF’s source code fails for some files due to wrong/mismatched filename casing. For example debugging into the source for ToolTip yields:

ToolTip.cs not found: Source Link authentication failed

You need to find ToolTip.cs to view the source for the current call stack frame

Source Link Error:
git-credential-manager-core.exe: Could not obtain credentials. Process failed with exit code -1.
ERROR: The request failed with code 404 : "Not Found". Treating 404 as authentication failure. Some services return 404 instead of 401 for authentication failures.

Source Link URL: https://raw.githubusercontent.com/dotnet/wpf/dabcf2041548f7594b21e9bf865463abdfd14307/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolTip.cs

Note that the embedded URL uses ToolTip.cs (because PresentationFramework.csproj specifies <Compile Include="System\Windows\Controls\ToolTip.cs" />). But the file in the repository is named tooltip.cs (all lowercase), and such GitHub-URLs are case-sensitive.

There may be more files that have the wrong casing (I haven’t checked).

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ThomasGoulet73commented, Jul 7, 2022

I made a quick tool to check if the casing of the file in the csproj is the same as in the file system or if multiple projects reference the same files with different casing and I found more files with the wrong casing. I opened #6762 which fixes casing for more files.

1reaction
dipeshmsftcommented, Jun 29, 2022

@gix @lindexi There may be some other files that may have the same issue. I think we can go ahead and fix them along with this PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

'File name differs from already included file name only in ...
As far as I can tell, this is solely because the relative path uses incorrect casing, or perhaps it's just because of the...
Read more >
Git is case-sensitive and your filesystem may not be
I've encountered this when renaming from within Visual Studio where changing the file name capitalization only (i.e. ClassDTO => ClassDto). It ...
Read more >
Adjust case sensitivity - WSL
Learn how case sensitive file names are handled between Windows and Linux file systems, how to adjust these settings by directory with WSL, ......
Read more >
Linker Tools Error LNK1104
This error is reported when the linker fails to open a file, either for reading or for writing. The two most common causes...
Read more >
TSConfig Reference - Docs on every TSConfig option
A TSConfig file in a directory indicates that the directory is the root of a TypeScript or ... An error occurs if any...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found