Caution: BeanShell at console can hang jEdit 4.2final
Submitted by Friday, 11 March, 2005 - 15:43
on
I accidentally hit Enter when typing "while (i < 20)" at the Console and jEdit hung, doing an infinite loop, since i was not being incremented.
Luckily, the autosave recovered my document, but thought I'd warn you all about this danger.
An execution-terminate key would be nice. As of right now, the documentation shows no terminate key for infinite BeanShell loops. I think this is possible by running BeanShell in a separate thread, and killing that thread on the execution-terminate key?
If there is an execution-terminate key, please have that documented.
(Windows version of jEdit 4.2final, using Console plugin downloaded as of yesterday from inside the editor.)
Luckily, the autosave recovered my document, but thought I'd warn you all about this danger.
An execution-terminate key would be nice. As of right now, the documentation shows no terminate key for infinite BeanShell loops. I think this is possible by running BeanShell in a separate thread, and killing that thread on the execution-terminate key?
If there is an execution-terminate key, please have that documented.
(Windows version of jEdit 4.2final, using Console plugin downloaded as of yesterday from inside the editor.)