Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up"notify function called synchronously" message appears when it shouldn't #344
Comments
jconti
referenced this issue
Aug 12, 2015
Closed
Error: The notify function has been called synchronously! #1014
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
rtfeldman
Aug 13, 2015
Member
This can also happens when JS code being invoked via a port crashes, which happens a lot in my line of work.
Unfortunately I've had trouble reproducing it minimally, but one way to reliably reproduce it is:
- Check out the repro-notify branch of Dreamwriter (which induces a runtime exception in a port)
- Build it.
- Click "new chapter" (the big plus sign in the lower left) twice.
The first time you click it, it will error out with "Uncaught Error: kaboom!" but subsequent clicks will result in notify being triggered synchronously.
|
This can also happens when JS code being invoked via a port crashes, which happens a lot in my line of work. Unfortunately I've had trouble reproducing it minimally, but one way to reliably reproduce it is:
The first time you click it, it will error out with "Uncaught Error: kaboom!" but subsequent clicks will result in notify being triggered synchronously. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
evancz
Sep 22, 2016
Member
There is no such thing as a notify function anymore with 0.17, so it's resolved by removing signals.
|
There is no such thing as a |

vilterp commentedAug 11, 2015
The following message shows up for every event after
Debug.crash(i.e. a bug in the developer's code)When, according to Evan, "That error is only supposed to show up in development if I do something weird (or when someone is doing crazy stuff with Native modules and ports)":
Thus, the vast majority of the time this message is inappropriate because it's a bug in your Elm code or a native module, not a bug in the Elm runtime that you should report to core or the compiler.
Perhaps on a
Debug.crashor JS exception from a native module, the runtime should print out a message such as "this module has stopped working because of a Debug.crash" or "this module has stopped working because of a native module exception" once, and then go into a crashed state in which it doesn't process any more events or print out any more messages.