question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I’m using octave_kernel, but I’m now certain there is no (easy) way to fix my problem without changing process_metakernel in Calysto. When I run a command that takes a long time to return a prompt, or any kind of text for that matter, I get the dreaded pexpect 30-second default timeout.

A “fix” for this was committed almost a year ago (8b4429ffafbc201b4e8af5bcbe00ac647a8176f0). However, the critical part (timeout=None) was reverted barely a week later (timeout=-1, d9c975538b30061a7a6a62bedc4e8b2fc4447f88), along with changes to pexpect itself that changed the behavior of timeout=None to just use the default timeout of 30 seconds.

I have to admit I understand very little of this, but I suspect the author(s) of these changes consider the original bug to be only an issue when there is a continuous stream of output from a long-running process. I would ask that they consider the case when a process runs quietly for a long time. I realize this is probably an edge case, but at least for the kind of work I do with Octave, it is not all that uncommon.

Maybe there is a “fix” that at least allows the child kernel (octave_kernel in this case) to specify the timeout. As it stands, my only options are to manually modify the pexpect files, or to modify my Octave code to spit out a stream of output that prevents the timeout from triggering. Neither of these are very satisfying.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
blink1073commented, Dec 8, 2016

I’ve been meaning to update the semantics of the %plot magic similarly, I will try and do both this weekend.

0reactions
blink1073commented, Dec 19, 2016

I was in the process of adding this, and realized we should not have a timeout at all. I am going to look into using pexpect 4.2 as a dependency, which has Windows support.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is Time-Out? | Essentials | Parenting Information - CDC
Time-out is when your child is removed from where the misbehavior happened. Your child is away from all things that are fun.
Read more >
Do Time-Outs Work or Are They Harmful For Toddlers?
Most experts recommend "time-ins" instead of time-outs as a discipline practice for kids, but the science doesn't necessarily back that up.
Read more >
Timeouts don't improve behavior. With many kids, they incite ...
So, not surprisingly, research shows that timeouts, like other punishments, don't necessarily improve behavior. A study done by the National Institute of Mental ......
Read more >
Are Time Outs Harmful to Children? - Child Mind Institute
Time outs have been a go-to technique for managing problem behavior for decades, and are a staple of many parent training programs. They...
Read more >
Timeout (computing) - Wikipedia
An event that occurs at the end of a predetermined period of time that began at the occurrence of another specified event. The...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found