Skip to content

Commit

Permalink
Warning about relative depot path, fix #2586
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Jun 25, 2024
1 parent 05b5e34 commit f135748
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Pluto.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f135748

Please sign in to comment.