Skip to content
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

Handle infinite loops that generate output #7

Open
davidgranstrom opened this issue Feb 2, 2019 · 1 comment
Open

Handle infinite loops that generate output #7

davidgranstrom opened this issue Feb 2, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@davidgranstrom
Copy link
Owner

An infinite loop (in SuperCollider) that also generate output to the post window hangs both sclang and nvim since there is too many calls that write to the post window buffer. Infinite loops with no output is fine (doesn't hang nvim) since the sclang process is spawned as an asynchronous job.

One way of handling this is to implement some kind of throttling mechanism which detect high density output from sclang and limits the output to the post window temporarily, possibly with some informative info message.

Until this is solved, it could be good to know that calling killall sclang on *nix systems in a another terminal and then pressing <C-c> in nvim will make it unfreeze so that you can save your work and restart SuperCollider.

@davidgranstrom davidgranstrom added the enhancement New feature or request label Feb 2, 2019
@davidgranstrom davidgranstrom self-assigned this Feb 2, 2019
@davidgranstrom davidgranstrom added this to the 0.9.x milestone Feb 2, 2019
@davidgranstrom davidgranstrom removed this from the 0.9.x milestone Jun 7, 2020
@davidgranstrom
Copy link
Owner Author

Depends on #88

@davidgranstrom davidgranstrom added this to the 1.1.0 milestone Jun 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant