Hello, All.
I found a problem while compiling nimlsp project.
this lines don't compile for me. (I'm on Windows 11 x64.)
import asyncfile, asyncdispatch
var ins = newAsyncFile(stdin.getOsFileHandle().AsyncFD)
D:\Programm\Nim\nim-inject\test.nim(8) test
D:\Programm\Nim\Nim-devel\lib\pure\asyncfile.nim(90) newAsyncFile
D:\Programm\Nim\Nim-devel\lib\pure\asyncdispatch.nim(341) register
D:\Programm\Nim\Nim-devel\lib\pure\includes\oserr.nim(94) raiseOSError
Error: unhandled exception: The parameter is incorrect
[OSError]
I have the latest Nim devel version. 1.7.1 dc4cc2dca53e3772efb3654a4ddbbe8350d1db43
Please help.
Please report nimlsp errors on the GitHub issue tracker, posting them here is a great way for me to miss your problem (you got lucky this time).
I think the error here is that the standard input on Windows isn't capable of async reads, and somehow the devel version of Nim detects this (although in the async runtime code, not as a limited type on the getOsFileHandle procedure). When you post this on GitHub please make sure to tag haxscramper as well, they're the one who implemented the async logic.