Closed JamesPHoughton closed 9 months ago
This occured because I am piping logs to a file. You can replicate the error by starting the template experiment with the following command, and then making a display change.
> empirica 2>&1 | tee ./.empirica/empirica.log
The file doesn't have a column width, so the value mentioned above was going negative.
Taking out the extra log piping solves the problem, so this is low priority.
Is there an existing issue for this?
What happened?
When make a change to the code in dev, the server crashes instead of successfully propagating changes to the page:
Looks like there needs to be a check on this line to make sure that the passed parameter is positive: https://github.com/empiricaly/empirica/blob/1d91ea7b31b3164083f62c45fff39fda84bf06f5/internal/term/term.go#L89C3-L89C3
Steps To Reproduce
No response
Empirica Version
What OS are you seeing the problem on?
macOS
What browser are you seeing the problem on?
Chrome
Relevant log output
No response
Anything else?
I'm having trouble recreating the bug in a clean environment, partly because i don't know what log attempt is trying to display. @npaton, sent this to you in slack, but just moving it here to make tracking easier. I'll take a crack at a patch.
Code of Conduct