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
ghci> findExecutable "ghc-9.10.1"
Nothing
ghci> findExecutable "ghc-9.10.1.exe"
Just "C:\\ghcup\\bin\\ghc-9.10.1.exe"
This is because "ghc-9.10.1" is considered to contain a file extension. The documentation on SearchPathW states under lpExtension:
The extension to be added to the file name when searching for the file. The first character of the file name extension must be a period (.). The extension is added only if the specified file name does not end with an extension.
The text was updated successfully, but these errors were encountered:
I don't see a way to work around this quirk of SearchPathW without breaking existing use cases. I think the caller will just have to intentionally add the .exe suffix in this situation.
This is because "ghc-9.10.1" is considered to contain a file extension. The documentation on
SearchPathW
states underlpExtension
:The text was updated successfully, but these errors were encountered: