Revise.jl icon indicating copy to clipboard operation
Revise.jl copied to clipboard

Feature Request: Option to automatically run revise in a parallel task

Open schlichtanders opened this issue 1 year ago • 3 comments

Hello, I am using Revise with a Webserver and found this discourse thread with the hint that one needs to execute something on the REPL in order to trigger revise().

It would be great if Revise.jl had a mode where this update is done automatically without the need of another execution in the REPL. This would simplify the workflow massively when working with an ongoing process like a webserver.

schlichtanders avatar Apr 25 '24 09:04 schlichtanders

FWIW, here is how it is done in another webserver:

https://github.com/JuliaComputing/FemtoCleaner.jl/blob/384815c983609275ae8bdc0aa0dcc67a287d1768/src/FemtoCleaner.jl#L507-L514

KristofferC avatar Apr 25 '24 10:04 KristofferC

adding an explicit revise() call to the webserver is a workaround, but requires the Webserver package to depend on Revise (even package extensions don't work, as this would involve type piracy against its own main package, which recently got raised to error status in julia 1.10).

Hence, it would be great if the auto updates could be done by Revise itself in an async task.

schlichtanders avatar Apr 25 '24 12:04 schlichtanders