Closed ms-ati closed 6 years ago
Things I notice here, in no particular order:
That "rror" logging is just because of the weird filename that MacOS uses for its hidden icon files -- it is "Icon\r", so while printing it out we carriage return and overwrite the first part of the line again. We could print the command as a string literal #{command.inspect}
to fix.
I'm not sure why this is killing fsevents_to_vm completely though, since it is catching the error and calling SShExec#disconnect!
as we'd expect. I'd expect to at least see more error logging, if that subsequent SSH reconnect fails. I'll have to see if I can repro and debug.
I was able to repro a very similar error by simply stopping dinghy while running an independent fsevents_to_vm process. The hard failure is in the @ssh.close
line which fails when the SSH connection has already failed, so I've added error handling to that.
It appears the reason that second error wasn't getting logged is because the rb-fsevents
library we're using to monitor FS events is swallowing that type of error and silently failing, which is disturbing. I'll see if I can do anything about that.
But this particular failure should be fixed by https://github.com/codekitchen/fsevents_to_vm/commit/9a32dbcc2589cea0cbc105b237290b54e17b215a which will be included with the next Dinghy release.
Thanks once again @codekitchen !
Hi @codekitchen ping on this -- this really makes tools like guard
, as well as rails server
not as useful, since we must restart dinghy after every laptop sleep? When do you think you might be able to release a new Dinghy version that has this fix?
Yeah, I've been waiting for another PR to be completed but I'm not sure where it's at so I just published version 4.6.5.
This appears to be a similar issue to #262, however the current behavior is on
4.6.4
on High Sierra and with a slightly different error log, please see below.On Mac OS High Sierra, using Dinghy version 4.6.4, nearly every time that my laptop wakes from sleep, I see the following:
Dinghy status
FsEvents Error Log