Open HertzDevil opened 1 week ago
On 23H2 build 22631.4317 File.info?("README.md/")
returns nil
. So it seems to be a new error message.
For reference, this is the error message for Get-Content README.md/
:
Get-Content : Cannot find path 'C:\crystal\crystal\README.md\' because it does not exist.
At line:4 char:1
+ Get-Content README.md/
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\crystal\crystal\README.md\:String) [Get-Content], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand
On Wine I found something probably related to this: https://gitlab.winehq.org/wine/wine/-/merge_requests/5737
If
README.md
is a file in the current directory, then this raises an exception:It is raised here:
https://github.com/crystal-lang/crystal/blob/dacd97bccc80b41c7d6c448cfad19d37184766e9/src/crystal/system/win32/file.cr#L115-L128
The error message suggests a
WinError.value
ofERROR_DIRECTORY
, which does not count as an expected failure. I have definitely never seen this before, and I am sure our Windows CI would have caught it, but I also recently upgraded to Windows 24H2 (10.0.26100.1742). Could anyone else confirm this?