-
Notifications
You must be signed in to change notification settings - Fork 4
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
xworker events does not get populated #39
Comments
this is how we set the |
@bugzpodder is this still an issue or you changed anything and now it's all good? Thanks! |
it's unclear to me. I haven't gotten either onmessage and onerror working but I understand for onmessage you can do something like [edit] tested again js.postMessage works as a proxy to |
ok was able to get 'pyodide:done' and 'pyodide:ready' customevent on a div with target id from a worker. I was listening to postMessage so nothing was there. now need to figure out onerror.. |
hopefully in inverted order 😅
I'll try to figure out what is it that doesn't work |
it was a bit convoluted to run your example locally and understand what's going on ... I'd love to have issues with no home-made bootstrap logic, if possible, simply to speedup possible investigations and fixes, thanks. that being said, I think this is a classic case where in pyodide we can't handle those errors: until that bug is fixed and we work to understand how to benefit eventually from that fix, I am afraid there's not much I can do in here as I can't catch that error myself so it's a bit of a gotcha we need to live with for the time being, but at least the I will flag this as 3rd party issue and work once that gets resolved. |
Thanks. what does is it trapping stderr (i don't see it being invoked either) |
It’s meant for plugins but it’s not triggered unless stderr is explicitly used via print file=stderr |
demo: https://bugzpodder.pyscriptapps.com/xworker-sync-hangs-when-raise-error-copy-copy-copy/latest/
I have specified
onmessage
(expecting pyodide:ready) andonerror
(exepectng error to get passed here) callback and they does not get called in the code.Let me know if I am doing something wrong.
The text was updated successfully, but these errors were encountered: