-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
asyncCheck works fine on Linux and Windows - not on Mac. #15019
Comments
Reproduced this with Nim 1.2.2 on macOS 10.15.5. |
@snej you need jester devel for nim devel :) initInterval -> initDuration (due to removed deprecated stuff from stdlib) |
Looks like the main thread is blocked in
|
Ooh, thanks for trying this out @snej. I didn't get a chance to yet. My guess from looking at this though is that this may be a httpbeast bug. Can you try compiling with |
If I use |
@sergiotapia yes, it'll avoid using httpbeast. dom96 is trying to determine if it's a nim async bug, jester bug or httpbeast bug |
Trying now. |
@dom96 What should I do here? Does this mean I can't ship my app with it using httpbeast until the bug is fixed in that project? |
Yep. What kind of app is this? |
You can make your config conditional like so:
|
This is a small app that is meant to always be running on your machine, and regularly crawl html websites and rss feeds, and import records into a sqlite database. A self-hosted torrent search engine. |
Hi @Yardanico was this ever fixed? Coming back to my app now and using Nim 1.4.2. Should I remove the -d:useStdlib? thanks for the info |
Supposedly problem was with httpbeast, |
@dom96 asked me to create a small sample illustrating the issue.
https://github.com/sergiotapia/async-check
The code runs well on Linux and Windows, the echos in the {.async} function are seen as expected.
On Mac, we see no echos, despite Jester serving responses.
I hope this is just an error in my code, but if it's a Nim bug I'm sure you guys will be able to tackle it. I love Nim so far!
The text was updated successfully, but these errors were encountered: