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 upTime.delay (Native.Signal.delay) has no kids #295
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
AlexNisnevich
Aug 1, 2015
Contributor
Oh interesting. I had been wondering why the debugger stopped working for https://github.com/AlexNisnevich/kalevala after I started using delay.
I second that the debugger should account for this somehow. Or at least it should be documented somewhere that using delay breaks the debugger.
|
Oh interesting. I had been wondering why the debugger stopped working for https://github.com/AlexNisnevich/kalevala after I started using I second that the debugger should account for this somehow. Or at least it should be documented somewhere that using |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
evancz
Aug 2, 2015
Member
Thanks for the report! I think it may make sense to move this to the elm-reactor repo. cc @vilterp to confirm or deny :)
|
Thanks for the report! I think it may make sense to move this to the elm-reactor repo. cc @vilterp to confirm or deny :) |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
evancz
Aug 2, 2015
Member
I am trying to be more intense about closing issues. I think the resolution here is "move the issue to this repo" so I'm just gonna commit to it. Thanks again for reporting this!
|
I am trying to be more intense about closing issues. I think the resolution here is "move the issue to this repo" so I'm just gonna commit to it. Thanks again for reporting this! |
evancz
closed this
Aug 2, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
vilterp
Aug 2, 2015
Signal.delay creates an input and an output; I think if the output gets registered as a kid of the given node the reactor will be fine. I'll submit a PR; it should be like a one line change.
vilterp
commented
Aug 2, 2015
|
Signal.delay creates an input and an output; I think if the output gets registered as a kid of the given node the reactor will be fine. I'll submit a PR; it should be like a one line change. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
wetmore
Aug 3, 2015
I didn't see your reply Pete and posted this.
Feel free to close it if you'd like.
wetmore
commented
Aug 3, 2015
|
I didn't see your reply Pete and posted this. Feel free to close it if you'd like. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
vilterp
Aug 3, 2015
Replied there, thanks!
Re: my earlier comment: this was already happening; the problem was that the new output node had no children. This is accounted for in my new reactor code.
vilterp
commented
Aug 3, 2015
|
Replied there, thanks! Re: my earlier comment: this was already happening; the problem was that the new output node had no children. This is accounted for in my new reactor code. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Thanks for working through this together! :D |
wetmore commentedJul 14, 2015
The delay function creates a node in the signal graph with no kids. This means any module using delay cannot be opened in the reactor debugger, because the following code in
debug.jswill throw an error:node.kidsis undefined for an output-delay-output-n node (where n is the delay in millis).I don't know much about the signal implementation so I don't know if the lack of kids is intentional, but if it is the debugger code should account for this. Otherwise it's impossible to use the debugger on code with
delaywhich is a bummer.