-
Notifications
You must be signed in to change notification settings - Fork 46
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
println and Failed to push! #153
Comments
I am just now reading
from the docs, here, |
That error message sucks and needs to be fixed - it's happening because the signal is of a specific type and you're pushing (or it gets updated to) a value of a different type. The error message is very unintuitive. Not 100% sure but probably with the initial value of your input, your map block/function was returning nothing, then with a new value it returned a Asides: Note the numbers aren't line numbers they're the signal's id. |
@JobJob , your theory about the reason for the error is spot on. After reading your comment though it wasn't initially clear how to solve the problem, so I put together the following toy example that replicates the issue.
My underlying use case is that I am generating data, then using a button to trigger a computation. I would then like to be able to view the computation results before deciding whether or not to export them. After looking at the above example for a while, I realize I am abusing the language. If anyone else happens to come across this same problem, the solution I found is to define the
|
If you want your signal to have value
alternately you could just use Alternately it might make more sense to just set your |
I have a bit of code composed of a call to
foreach(signal(A)) do...
. Inside this there is a simple call to another function. If I include aprintln
statement at the end of theforeach
block, it executes fine, however if I remove theprintln
statement I get,The text was updated successfully, but these errors were encountered: