From f1357484e8f47ed4b687d6542b99750d00aa9ffe Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Tue, 25 Jun 2024 17:47:01 +0200 Subject: [PATCH] Warning about relative depot path, fix #2586 --- src/Pluto.jl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Pluto.jl b/src/Pluto.jl index 5054456c3a..bc6ea932f0 100644 --- a/src/Pluto.jl +++ b/src/Pluto.jl @@ -123,6 +123,16 @@ function __init__() # create empty file to indicate that we've shown the banner write(fn, ""); end + + bad_depots = filter(d -> !isabspath(expanduser(d)), DEPOT_PATH) + if !isempty(bad_depots) + @error """Pluto: The provided depot path is not an absolute path. Pluto will not be able to run correctly. + + Did you recently change the DEPOT path setting? Change your setting to use an absolute path. + + Do you not know what this means? Please get in touch! https://github.com/fonsp/Pluto.jl/issues + """ bad_depots DEPOT_PATH + end end end