-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
async stdin/stdout errors (compiling nimlsp on Windows) #121
Comments
Oh sorry, it wasn't @haxscramper, it was @bung87 who did the async stuff for NimLSP.. |
get it , for now fallback to v0.3.2 |
@bung87, did you have a chance to look into this further? It's not great that Windows users can't run the latest version. |
have not found any handy lib to archive this? do you have any recommend lib? |
Unfortunately it appears that standard input on Windows is not possible to read asynchronously. The only way to do this that I'm aware of is to spawn a second thread to read input. |
copy author original post from nim forum here.
|
@bung87 any ideas how to fix this? |
I think the best way to handle this for now is to make it use async on Linux and the old synchronous behaviour on Windows. @bung87 would you be able to implement this? |
am able to do this , I'll first make sure the error whether or not cause by async logic, the error message is coming from windows os error, as @PMunch said there is only one commen on nim repo contains "The parameter is incorrect' in compiler file. |
I've search a lot repos , found no perfect lib match the requires. |
yeah, windows is not support when fd.Handle is std io
|
https://github.com/bung87/nimlsp/actions/runs/2359268373 I try to use mutisync but encounter various kind of error @PMunch @veksha have time to check ? |
@bung87 have you tried |
it does not work on my MBP I still get |
error now is consistent , see https://github.com/bung87/nimlsp/runs/6528943601?check_suite_focus=true |
in the end I change to stream api. |
Hello. I get exception at runtime (on Windows 11 x64). following lines seem to be the culprit:
exception
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]
PMunch's comment on nim forum:
@haxscramper
The text was updated successfully, but these errors were encountered: