Correct ways to restart dead sessions from live mode and restore side-panel in non-live mode #175
Replies: 2 comments 3 replies
|
Well that's a hell of a report (in the valuable sense). I'll look into it the best I can, but some things you describe are expressely designed against, meaning that they should never happen. I hope that's just an edge case triggered by your strange config (it can be simplified a lot). It'll probably help if you can send me a log (you can find the file at ~/.cache/sniprun/sniprun.log or if you're on a Mac (?) $XDG_CACHE/sniprun/sniprun.log) after a problematic crash. |
|
Hey! It's been a while but I finally found the time! In order: a corrected configM.setup = function()
last point about your config. A combination of VirtualText* and (LongTempFloatingWindow OR TempFloatingWindow) is probably what you want. * yeah the important thing. Another user reported an issue on their MBP, also ARM. A nasty race condition happened and while I couldn't debug or reproduce, I have a long-shot guess at the cause. This bug could cause total unresponsiveness like you described but is strictly limited to REPL-enabled interpreters, which may discriminate: if you've had issues even with interpreters that had no/disabled REPL, the incoming fix won't cure magically your bug, otherwise, it just may. finger crossed. Said fix will be included in the next release if confirmed working. |
Uh oh!
There was an error while loading. Please reload this page.
Often when using any language in live mode, sniprun will just die without giving me any way to restart it. It's hard for me to produce cases that are reproducible - e.g. below can't reproduce the bug, but it's what caused it. I do face this quite frequently across languages
e.g.
somehow made it die. I then
SnipReplMemoryClean. Didn't help. None of SnipClose, SnipTerminate, SnipReset, toggling Live mode seemed to help. It also doesn't appear to help to SnipTerminate, disable livemode and SnipRun again which I would've possibly expected to restart with a new sniprun process.I also get this sometimes get issues in non-live mode where the "TerminalWithCode" view becomes unresponsive - closing it seems insurrectable, none of the above commands will close/reopen it.
Closing and reopening is cumbersome but so far the only solution.
As an aside - also don't get sniprun to report errors - e.g.
(a)will not report any error, despite
VirtualTextErrmy config if relevant
All reactions