Open ilyagr opened 7 months ago
Thanks for letting me know! I noticed that rarely MacOS even in prior versions can get into a state where open
(CLI application) doesn't manage to open anything anymore until the machine is rebooted.
I also posted a bug on Bugzilla about this. I have no idea whether anybody will look at it.
Recently,
open::that
started failing often with the following error for me on Mac OS:Usually, it will work correctly on first invocation of the program that runs
open::that
, but fails afterwards.The program starts a local server at
http://127.0.0.1:17376
and then runsopen::that("http://127.0.0.1:17376")
insidetokio::task::spawn_blocking
:https://github.com/ilyagr/diffedit3/blob/54eecca2731a56478175c640564206b3a94d0344/src/local_server.rs#L171-L184
I don't know how to reliably reproduce this, unfortunately, but I wanted to post this just in case somebody has any advice.
I'm using Mac OS Sonoma 14.4.1:
My default browser is Firefox 124.0.2
Update: This can be reproduced more easily:
Strictly speaking, this seems like an issue in Mac OS interacting with Firefox issue rather than a library issue, but I'd still track it here since the library
open
uses the Mac OSopen
utility exclusively.See also https://github.com/cli/cli/issues/2871