You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the possible fix wasn't this easy I would rather not bother filing this issue. However I think the purpose of adding BasePath.normalize was to address such issues under Windows. If the paths in Repository#files set are being normalized already, then paths that are being matched against the set should be normalized as well.
The text was updated successfully, but these errors were encountered:
royaltm
changed the title
Links to source files are not generated under Windows with older mingw
Links to source files are not generated under Windows with older MSYS (mingw)
Dec 9, 2022
Search terms
Links to source files are not generated under Windows under older mingw versions or non-standard configuration.
Expected Behavior
Typedoc should generate source links.
Actual Behavior
Typedoc does not generate source links because here
fileName
does not match the files produced bygit -C {path} ls-files
.For example:
"c:/Path/To/Repo"
files
start with"C:/Path/To/Repo"
because they are being run throughBasePath.normalize
andfileName
is not.Steps to reproduce the bug
This is actually hard, because I can not pinpoint why my MSYS is converting the windows path with the small drive letter.
Get MSYS (mingw version 1) on Windows, try to generate docs to any repository, check if the source links are being generated.
There are probably some other MSYS configurations that produce the windows path with the small drive letter.
Environment
How to fix
The bug can be fixed easily if you add:
before this line here
If the possible fix wasn't this easy I would rather not bother filing this issue. However I think the purpose of adding
BasePath.normalize
was to address such issues under Windows. If the paths inRepository#files
set are being normalized already, then paths that are being matched against the set should be normalized as well.The text was updated successfully, but these errors were encountered: